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
2. Select **Full Authentication** or **Partial Authentication**. 3. Select
35
-
**JWT**. 4. Enter the URL of your existing login flow and select **Save
36
-
changes**. 5. Select **Generate new key**. 6. Store your key securely where
37
-
it can be accessed by your backend.
30
+
1. In your dashboard, go to[Authentication](https://dashboard.mintlify.com/settings/deployment/authentication).
31
+
2. Select **Full Authentication** or **Partial Authentication**.
32
+
3. Select **JWT**.
33
+
4. Enter the URL of your existing login flow and select **Save changes**.
34
+
5. Select **Generate new key**.
35
+
6. Store your key securely where it can be accessed by your backend.
38
36
</Step>
39
37
<Steptitle="Integrate Mintlify authentication into your login flow.">
40
-
Modify your existing login flow to include these steps after user
41
-
authentication: * Create a JWT containing the authenticated user's info in
42
-
the `User` format. See [Sending
43
-
Data](/authentication-personalization/sending-data) for more information. *
44
-
Sign the JWT with your secret key, using the EdDSA algorithm. * Create a
45
-
redirect URL back to the `/login/jwt-callback` path of your docs, including
46
-
the JWT as the hash.
38
+
Modify your existing login flow to include these steps after user authentication:
39
+
40
+
* Create a JWT containing the authenticated user's info in the `User` format. See [Sending Data](/authentication-personalization/sending-data) for more information.
41
+
* Sign the JWT with your secret key, using the EdDSA algorithm.
42
+
* Create a redirect URL back to the `/login/jwt-callback` path of your docs, including the JWT as the hash.
47
43
</Step>
48
44
</Steps>
49
45
@@ -54,16 +50,15 @@ Your documentation is hosted at `docs.foo.com` with an existing authentication s
54
50
Create a login endpoint at `https://foo.com/docs-login` that extends your existing authentication.
55
51
56
52
After verifying user credentials:
57
-
58
-
- Generate a JWT with user data in Mintlify's format.
59
-
- Sign the JWT and redirect to `https://docs.foo.com/login/jwt-callback#{SIGNED_JWT}`.
53
+
* Generate a JWT with user data in Mintlify's format.
54
+
* Sign the JWT and redirect to `https://docs.foo.com/login/jwt-callback#{SIGNED_JWT}`.
1. In your dashboard, go to [Authentication](https://dashboard.mintlify.com/settings/deployment/authentication).
133
+
2. Select **Full Authentication** or **Partial Authentication**.
134
+
3. Select **OAuth** and configure these fields:
135
+
***Authorization URL**: Your OAuth endpoint.
136
+
***Client ID**: Your OAuth 2.0 client identifier.
137
+
***Client Secret**: Your OAuth 2.0 client secret.
138
+
***Scopes**: Permissions to request. Use multiple scopes if you need different access levels.
139
+
***Token URL**: Your OAuth token exchange endpoint.
140
+
***Info API URL** (optional): Endpoint to retrieve user info for personalization. If omitted, the OAuth flow will only be used to verify identity and the user info will be empty.
To enable personalization features, create an API endpoint that:
149
+
* Accepts OAuth access tokens for authentication.
150
+
* Returns user data in the `User` format. See [Sending Data](/authentication-personalization/sending-data) for more information.
151
+
152
+
Add this endpoint URL to the **Info API URL** field in your [authentication settings](https://dashboard.mintlify.com/settings/deployment/authentication).
164
153
</Step>
165
154
</Steps>
166
155
@@ -169,7 +158,6 @@ When an unauthenticated user tries to access a protected page, their intended de
169
158
Your documentation is hosted at `foo.com/docs` and you have an existing OAuth server at `auth.foo.com` that supports the Authorization Code Flow.
170
159
171
160
**Configure your OAuth server details** in your dashboard:
Your documentation is hosted at `docs.foo.com` and you need basic access control without tracking individual users. You want to prevent public access while keeping setup simple.
251
237
252
238
**Create a strong password** in your dashboard. **Share credentials** with authorized users. That's it!
0 commit comments