Update SSO Logout Settings for POST-Only Logout
For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append.mdto anykestra.io/docs/*URL for plain Markdown.
Available on: Enterprise EditionCloud
Kestra 2.1.0 accepts logout only as a POST request. A GET request to /logout or /oauth/access_token now returns 405 Method Not Allowed.
This closes a cross-site request forgery gap: before 2.1.0, any page could sign a user out of Kestra by embedding a link or image that pointed to /logout.
What changed
- Logout endpoint:
micronaut.security.endpoints.logout.get-allowedandmicronaut.security.endpoints.oauth.get-allowednow default tofalse. - UI: the Logout button sends a
POSTrequest. After logout, the browser is redirected to/ui, or to your identity provider’s end-session endpoint when you use OIDC SSO. - Post-logout redirect URI: unchanged since 2.0, Kestra sends
<your Kestra URL>/uias thepost_logout_redirect_urito your identity provider. Identity providers configured with/logoutfrom older guides must be updated, because/logoutno longer accepts the redirect.
Who is affected
- SSO users whose identity provider only allows
/logoutas a post-logout redirect URI. Register/uiinstead. The identity provider otherwise rejects the logout redirect, and a redirect to/logoutnow fails with405. - Configurations that set
get-allowed: true. Earlier versions of the Keycloak guide included this setting. It overrides the new default, soGETlogout keeps working, but the CSRF protection is lost. - Links, bookmarks, or portals that open
/logoutdirectly. These send aGETrequest and now fail with405.
Migrate
-
In your identity provider, set the post-logout redirect URI (called Valid post logout redirect URIs in Keycloak and Sign-out redirect URIs in Okta) to your Kestra URL followed by
/ui, for examplehttps://kestra.example.com/ui. -
Remove
get-allowed: truefrom your Kestra configuration:micronaut:security:endpoints:logout:get-allowed: true # remove this line -
Replace any direct links to
/logoutwith the Logout button in the Kestra UI.
Was this page helpful?