OneDrive Channel சேர்க்கவும்
தொடங்குவதற்கு முன் தேவையானவை
| தேவை | ஏன் தேவை |
|---|---|
| Microsoft account | Microsoft admin pages அணுகவும் OneDrive authorize செய்யவும் |
| உங்கள் ImgBed domain | OAuth callback URL-க்கு |
| App registration | Client ID மற்றும் Client Secret உருவாக்க |
| OneDrive account | உண்மையான file storage location ஆக |
Setup Steps
Step 1: Microsoft Entra ID திறக்கவும்
portal.azure.comதிறக்கவும்.- மேலே search-ல்
Microsoft Entra IDதேடவும். - target page dropdown-ல் தெரியவில்லை என்றால்:
text
Continue searching in Microsoft Entra IDMicrosoft Entra IDதிறக்கவும்.App registrationsதிறக்கவும்.New registrationகிளிக் செய்யவும்.
Step 2: App Register செய்யவும்
New registration page-ல்:
| Field | What To Enter |
|---|---|
| Name | அறியக்கூடிய பெயர், உதா. imgbed-onedrive |
| Supported account types | கீழே உள்ள table படி தேர்வு செய்யவும் |
| Redirect URI type | Web |
| Redirect URI | https://your-domain.com/api/oauth/onedrive/callback |
Account type வழிகாட்டி:
| உங்கள் Scenario | Supported Account Types |
|---|---|
| Personal OneDrive மட்டும் | personal Microsoft account option தேர்வு செய்யவும். |
| personal மற்றும் work/school accounts இரண்டும் | இரண்டையும் support செய்யும் option தேர்வு செய்யவும். |
| Company அல்லது school OneDrive மட்டும் | organizational account option தேர்வு செய்யவும். |
form நிரப்பிய பிறகு register கிளிக் செய்யவும்.

Step 3: App Information Copy செய்யவும்
app உருவான பிறகு overview page-ல் இருந்து:
| Microsoft Field | ImgBed Field |
|---|---|
Application (client) ID | Client ID |
Directory (tenant) ID | organizational accounts-க்கு Tenant ID |

Step 4: Client Secret உருவாக்கவும்
Certificates & secretsதிறக்கவும்.New client secretகிளிக் செய்யவும்.- description உள்ளிடவும்.
- expiration period தேர்வு செய்யவும்.
- உருவானதும்
Valueஉடனே copy செய்யவும்.

Step 5: API Permissions சேர்க்கவும்
API permissionsதிறக்கவும்.Add a permissionகிளிக் செய்யவும்.Microsoft Graphதேர்வு செய்யவும்.Delegated permissionsதேர்வு செய்யவும்.- இந்த permissions சேர்க்கவும்:
| Permission | Purpose |
|---|---|
Files.ReadWrite.All | files upload, folders create, files delete செய்ய |
offline_access | ImgBed Refresh Token பெற அனுமதி |
User.Read | account மற்றும் quota information படிக்க |
Step 6: ImgBed-ல் OneDrive Channel நிரப்பவும்
Upload Settings-ல் OneDrive தேர்வு செய்து:
| ImgBed Field | What To Enter |
|---|---|
| Channel name | அறியக்கூடிய பெயர், உதா. Main OneDrive |
| Client ID | Microsoft Application (client) ID |
| Client Secret | copy செய்த Client Secret Value |
| Tenant ID | கீழே உள்ள table படி |
| Refresh Token | இப்போது காலியாக விடவும் |
| Root directory | Optional. default imgbed. |
| Note | Optional |

Tenant ID நிரப்புவது:
| நீங்கள் தேர்வு செய்த Account Type | ImgBed Tenant ID |
|---|---|
| Personal accounts | consumers |
| Personal + organizational accounts | common |
| Current organization only | Directory (tenant) ID |
Step 7: Refresh Token பெறவும்
- ImgBed-ல்
Get Tokenகிளிக் செய்யவும். - connect செய்ய வேண்டிய Microsoft account-ல் sign in செய்யவும்.
- authorization prompt approve செய்யவும்.
- callback page
Refresh Tokenகாட்டும். - அதை copy செய்யவும்.
- ImgBed-க்கு திரும்பி
Refresh Tokenfield-ல் paste செய்யவும்.

Step 8: Channel Save செய்யவும்
அனைத்து fields நிரப்பிய பிறகு channel save செய்யவும்.
Quick Flow
text
portal.azure.com திறக்கவும்
-> Microsoft Entra ID தேடவும்
-> App registrations திறக்கவும்
-> புதிய app register செய்யவும்
-> Name / Supported account types / Web redirect URI நிரப்பவும்
-> Register
-> Application (client) ID copy செய்யவும்
-> Authentication-ல் callback URL சரிபார்க்கவும்
-> Certificates & secrets-ல் Client Secret உருவாக்கவும்
-> API permissions சேர்க்கவும்
-> ImgBed-ல் Client ID / Client Secret / Tenant ID நிரப்பவும்
-> Get Token கிளிக் செய்யவும்
-> callback page-ல் இருந்து Refresh Token copy செய்யவும்
-> ImgBed-ல் paste செய்து save செய்யவும்References
- Microsoft Entra app registration: https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app
- Microsoft identity platform authorization code flow: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow
- Microsoft Graph user authentication: https://learn.microsoft.com/en-us/graph/auth-v2-user