OAuth contract
The Auth0-based contract defines two alternatives:userOAuthuses the authorization-code flow for a person acting in one organization. Each operation includes the baselineorg:usescope plus its resource permissions.machineOAuthuses client credentials for an organization-bound service. Its grant must include every scope named by the operation.
Protected-resource metadata
OAuth clients can discover API resource metadata at:401 response, inspect the WWW-Authenticate header for the resource-metadata location.
Token handling
- Never put a bearer token in a query parameter.
- Never forward an API token to the MCP endpoint. MCP uses its own audience and exchanges delegated authority for an API token.
- Request only the scopes your integration needs.
- Keep user tokens and machine credentials in separate storage and rotation policies.
- Treat
401as an invalid or unusable credential and403as a verified credential without sufficient authority.