Authenticating
OAuth 2.0
Enable user login with OAuth 2.0
Mintlify supports OAuth 2.0 authentication using the PKCE flow, allowing you to integrate with your existing OAuth server for user authentication.
Setup Guide
1
Set up your User Info endpoint
Create an API endpoint that:
- Accepts an OAuth access token
- Returns user information in the UserInfo format
2
Configure OAuth settings
Navigate to your Mintlify dashboard and configure:
- Authorization URL
- Client ID
- Required scopes
- Token URL
- Info API URL
3
Add the redirect URL
Copy the Redirect URL from your Mintlify dashboard and add it to your OAuth server’s allowed redirect URLs.
Example Configuration
Here’s a simple example for docs hosted at foo.com/docs
:
The user info endpoint (api.foo.com/docs/user-info
) requires an access token with the docs-user-info
scope and returns user data according to Mintlify’s specifications.
Was this page helpful?