mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-11 05:11:49 +01:00
Restack the OAuth backend from PR #5584 onto current master for PAP-9233, preserving the provider registry, OAuth routes, refresh worker, resolver integration, tests, and docs. Co-Authored-By: Paperclip <noreply@paperclip.ing>
30 lines
791 B
YAML
30 lines
791 B
YAML
id: microsoft-graph
|
|
displayName: Microsoft Graph
|
|
docUrl: https://learn.microsoft.com/en-us/graph/auth-overview
|
|
clientCredentials:
|
|
clientIdEnv: MICROSOFT_OAUTH_CLIENT_ID
|
|
clientSecretEnv: MICROSOFT_OAUTH_CLIENT_SECRET
|
|
endpoints:
|
|
authorize: https://login.microsoftonline.com/common/oauth2/v2.0/authorize
|
|
token: https://login.microsoftonline.com/common/oauth2/v2.0/token
|
|
accountInfo: https://graph.microsoft.com/v1.0/me
|
|
scopes:
|
|
default: [User.Read, offline_access]
|
|
offered:
|
|
- User.Read
|
|
- offline_access
|
|
- Mail.Read
|
|
- Mail.Send
|
|
- Files.Read.All
|
|
- Calendars.Read
|
|
- Sites.Read.All
|
|
pkce: required
|
|
authMethod: post
|
|
responseFormat: json
|
|
accountIdField: id
|
|
accountLabelField: displayName
|
|
refresh:
|
|
supported: true
|
|
rotatesRefreshToken: true
|
|
shape: microsoft
|