Skip to main content
Glama

oauth_authorize

Handle OAuth 2.0 authorization for secure user-delegated access to Microsoft 365 files, managing tokens for OneDrive and SharePoint integration.

Instructions

Manage OAuth 2.0 authorization for user-delegated access to OneDrive and SharePoint files with secure token handling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesOAuth action: get authorization URL, exchange code for token, refresh token, or revoke access
scopesNoOAuth scopes to request (e.g., Files.ReadWrite, Sites.ReadWrite.All)
stateNoState parameter for CSRF protection
codeNoAuthorization code to exchange for access token
refreshTokenNoRefresh token to exchange for new access token

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DynamicEndpoints/m365-core-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server