Skip to content

OneDrive Channel சேர்க்கவும்

தொடங்குவதற்கு முன் தேவையானவை

தேவைஏன் தேவை
Microsoft accountMicrosoft admin pages அணுகவும் OneDrive authorize செய்யவும்
உங்கள் ImgBed domainOAuth callback URL-க்கு
App registrationClient ID மற்றும் Client Secret உருவாக்க
OneDrive accountஉண்மையான file storage location ஆக

Setup Steps

Step 1: Microsoft Entra ID திறக்கவும்

  1. portal.azure.com திறக்கவும்.
  2. மேலே search-ல் Microsoft Entra ID தேடவும்.
  3. target page dropdown-ல் தெரியவில்லை என்றால்:
text
Continue searching in Microsoft Entra ID
  1. Microsoft Entra ID திறக்கவும்.
  2. App registrations திறக்கவும்.
  3. New registration கிளிக் செய்யவும்.

Step 2: App Register செய்யவும்

New registration page-ல்:

FieldWhat To Enter
Nameஅறியக்கூடிய பெயர், உதா. imgbed-onedrive
Supported account typesகீழே உள்ள table படி தேர்வு செய்யவும்
Redirect URI typeWeb
Redirect URIhttps://your-domain.com/api/oauth/onedrive/callback

Account type வழிகாட்டி:

உங்கள் ScenarioSupported Account Types
Personal OneDrive மட்டும்personal Microsoft account option தேர்வு செய்யவும்.
personal மற்றும் work/school accounts இரண்டும்இரண்டையும் support செய்யும் option தேர்வு செய்யவும்.
Company அல்லது school OneDrive மட்டும்organizational account option தேர்வு செய்யவும்.

form நிரப்பிய பிறகு register கிளிக் செய்யவும்.

Create OneDrive app

Step 3: App Information Copy செய்யவும்

app உருவான பிறகு overview page-ல் இருந்து:

Microsoft FieldImgBed Field
Application (client) IDClient ID
Directory (tenant) IDorganizational accounts-க்கு Tenant ID

Application and tenant IDs

Step 4: Client Secret உருவாக்கவும்

  1. Certificates & secrets திறக்கவும்.
  2. New client secret கிளிக் செய்யவும்.
  3. description உள்ளிடவும்.
  4. expiration period தேர்வு செய்யவும்.
  5. உருவானதும் Value உடனே copy செய்யவும்.

Save client secret value

Step 5: API Permissions சேர்க்கவும்

  1. API permissions திறக்கவும்.
  2. Add a permission கிளிக் செய்யவும்.
  3. Microsoft Graph தேர்வு செய்யவும்.
  4. Delegated permissions தேர்வு செய்யவும்.
  5. இந்த permissions சேர்க்கவும்:
PermissionPurpose
Files.ReadWrite.Allfiles upload, folders create, files delete செய்ய
offline_accessImgBed Refresh Token பெற அனுமதி
User.Readaccount மற்றும் quota information படிக்க

Step 6: ImgBed-ல் OneDrive Channel நிரப்பவும்

Upload Settings-ல் OneDrive தேர்வு செய்து:

ImgBed FieldWhat To Enter
Channel nameஅறியக்கூடிய பெயர், உதா. Main OneDrive
Client IDMicrosoft Application (client) ID
Client Secretcopy செய்த Client Secret Value
Tenant IDகீழே உள்ள table படி
Refresh Tokenஇப்போது காலியாக விடவும்
Root directoryOptional. default imgbed.
NoteOptional

Fill OneDrive channel config

Tenant ID நிரப்புவது:

நீங்கள் தேர்வு செய்த Account TypeImgBed Tenant ID
Personal accountsconsumers
Personal + organizational accountscommon
Current organization onlyDirectory (tenant) ID

Step 7: Refresh Token பெறவும்

  1. ImgBed-ல் Get Token கிளிக் செய்யவும்.
  2. connect செய்ய வேண்டிய Microsoft account-ல் sign in செய்யவும்.
  3. authorization prompt approve செய்யவும்.
  4. callback page Refresh Token காட்டும்.
  5. அதை copy செய்யவும்.
  6. ImgBed-க்கு திரும்பி Refresh Token field-ல் paste செய்யவும்.

Copy refresh token

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

  1. Microsoft Entra app registration: https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app
  2. Microsoft identity platform authorization code flow: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow
  3. Microsoft Graph user authentication: https://learn.microsoft.com/en-us/graph/auth-v2-user

Released as user documentation for CloudFlare ImgBed.