Integrate with your OAuth server to enable user login via the Authorization Code flow
Configure your Authentication settings
Configure your OAuth client
Create your Info API (Optional)
foo.com/docs
.
To set up authentication with Mintlify, I create an endpoint api.foo.com/docs/user-info
which requires an OAuth access token with the docs-user-info
scope, and responds with the user’s custom data according to Mintlify’s specification.
I then go to the dashboard settings, navigate to the Authentication settings, select OAuth, and enter the relevant values for the OAuth flow and Info API endpoint:
https://auth.foo.com/authorization
ydybo4SD8PR73vzWWd6S0ObH
['docs-user-info']
https://auth.foo.com/exchange
https://api.foo.com/docs/user-info