Skip to content

Commit bba9997

Browse files
committed
add logout URL
1 parent 2ca2592 commit bba9997

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

authentication-personalization/authentication-setup.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ Your documentation is hosted at `docs.foo.com` and your team uses the dashboard
106106
* **Scopes**: Permissions to request. Use multiple scopes if you need different access levels.
107107
* **Token URL**: Your OAuth token exchange endpoint.
108108
* **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.
109+
* **Logout URL**: The native logout URL for your OAuth provider. If your provider has a `returnTo` or similar parameter, point it back to your docs URL.
109110
4. Select **Save changes**.
110111
</Step>
111112
<Step title="Configure your OAuth server.">
@@ -131,6 +132,7 @@ Your documentation is hosted at `foo.com/docs` and you have an existing OAuth se
131132
- **Scopes**: `['docs-user-info']`
132133
- **Token URL**: `https://auth.foo.com/exchange`
133134
- **Info API URL**: `https://api.foo.com/docs/user-info`
135+
- **Logout URL**: `https://auth.foo.com/logout?returnTo=https%3A%2F%2Ffoo.com%2Fdocs`
134136

135137
**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:
136138

0 commit comments

Comments
 (0)