If you use OIDC for SSO, you can configure back-channel logout so the Dev Portal ends a developer’s session when their IdP session ends.
When back-channel logout isn’t enabled, a developer who logs out from the IdP (or an admin who terminates their IdP session, for example after offboarding) stays logged in to Dev Portal until their Dev Portal tokens expire.
By default, when a developer signs out of your IdP, they stay signed in to the Dev Portal until their Dev Portal session expires.
Before enabling back-channel logout, keep the following in mind:
- Back-channel logout only applies to sessions that start after you enable it.
- If your IdP doesn’t send a session ID, all of a developer’s Dev Portal sessions are ended.
- Some IdPs send a logout request only when a developer signs themselves out, or only end one session when an admin ends all of a developer’s sessions. Verify how your IdP behaves.
- If the request from your IdP is invalid, the Dev Portal ignores it and doesn’t sign anyone out.
- Encrypted logout tokens aren’t supported. Your IdP must send signed, unencrypted logout tokens.
- The Dev Portal rejects logout tokens that are more than 10 minutes old.
- Your Dev Portal uses OIDC for SSO.
- Your IdP supports OpenID Connect Back-Channel Logout 1.0.
- Your IdP can reach your Dev Portal over the internet.
- In your IdP, find the application you created for the Dev Portal and set its back-channel logout URL to one of the following:
- If you’re using a custom domain:
https://www.example.com/api/v3/developer/backchannel-logout
- If you aren’t using a custom domain:
https://abc123456789.us.kongportals.com/api/v3/developer/backchannel-logout
If your IdP has a setting that includes the session ID in the logout request (often called “session required”), turn it on. This lets the Dev Portal only end the session that signed out, instead of every session for that developer.
- In the Konnect sidebar, click Dev Portal.
- Click your Dev Portal.
- In the Dev Portal sidebar, click Settings.
- Click the Security tab.
- Next to your OIDC identity provider, click Configure.
- Enable Back-channel logout.