You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Info API URL**: `https://api.foo.com/docs/user-info`
166
166
167
+
**Create a user info endpoint** at `api.foo.com/docs/user-info`, which requires an OAuth access token with the `docs-user-info` scope, and returns:
167
168
168
-
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.
169
-
170
-
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:
171
-
169
+
```json
170
+
{
171
+
"content": {
172
+
"firstName": "Jane",
173
+
"lastName": "Doe"
174
+
},
175
+
"groups": ["engineering", "admin"]
176
+
}
177
+
```
172
178
173
-
Finally, I copy the Redirect URL displayed in the dashboard settings and add it as an authorized redirect URL in my OAuth client configuration settings.
179
+
**Configure your OAuth server to allow redirects** to your callback URL.
174
180
</Tab>
175
181
<Tabtitle="Mintlify Dashboard">
176
182
### Prerequisites
177
183
178
-
- Your documentation readers are also your documentation editors.
184
+
* Your documentation users are also your documentation editors.
179
185
180
186
### Implementation
181
187
182
-
### Example
183
-
184
-
I want to set up authentication for my docs hosted at `docs.foo.com`. I want my docs
185
-
to be internal, and the people that will be viewing my docs are the same people that
186
-
contribute to my docs.
187
-
188
-
To set up authentication with Mintlify, I can go to my [dashboard settings](https://dashboard.mintlify.com/products/authentication)
189
-
and enable Authentication with the Mintlify Auth Handshake.
190
-
191
-
I can then ensure that anyone that should be able to read the docs has been added as a user in
192
-
my [dashboard settings](https://dashboard.mintlify.com/settings/organization/members).
193
-
194
-
## Implementation
195
-
196
188
<Steps>
197
-
<Steptitle="Configure your Authentication settings">
198
-
Go to your [Mintlify dashboard
199
-
settings](https://dashboard.mintlify.com/products/authentication) and select
0 commit comments