Skip to content

Set default redirect in OidcClientInitiatedServerLogoutSuccessHandler #7842

Closed
@mraible

Description

@mraible

Summary

I ❤️ the new OidcClientInitiatedServerLogoutSuccessHandler in Spring Security 5.2! The only problem I see with it is you have to set a postLogoutRedirectUri property. This will likely vary between development, test, and production, so it seems like kind of a pain to have to maintain a new property that could be calculated.

By default, it'd be nice if the postLogoutRedirectUri defaulted to the current context path (/). If people wanted to override it, it'd be cool if they could use a relative URL (that starts with /) or an absolute URL (current behavior).

I'm entering this here as requested by @jgrandja on Stack Overflow.

Actual Behavior

You need to set a postLogoutRedirectUri.

Expected Behavior

I'd like this value to default to /.

Configuration

OIDC with Okta and Keycloak (because JHipster).

Version

Spring Security 5.2

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions