Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix redirect to logoutURI #34

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

JSurf
Copy link

@JSurf JSurf commented Jul 12, 2024

When a logout redirect uri is specified via LogoutDefinition

@OpenIdAuthenticationMechanismDefinition(
clientId = "${oidcConfig.clientId}",
providerURI = "${oidcConfig.providerUri}",
redirectURI = "${baseURL}/oidc/callback",
logout = @LogoutDefinition(
accessTokenExpiry = true,
notifyProvider = true,
identityTokenExpiry = true,
redirectURI = "${baseURL}/oidc/logout"
)
)
Then the logout URL is built as "org.jboss.resteasy.specimpl.ResteasyUriBuilderImpl@5396a321" since toString method of the UriBuilder is not guaranteed to return the URL. This might work in some implementations of UriBuilder but not when using the resteasy implementation.

A build() is missing to create a URI Object first.

The issue is also present in the upstream soteria project and should also be fixed there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant