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

OIDC end_session_endpoint Property is Required #19844

Closed
Tomme opened this issue Nov 21, 2023 · 2 comments · Fixed by #20753
Closed

OIDC end_session_endpoint Property is Required #19844

Tomme opened this issue Nov 21, 2023 · 2 comments · Fixed by #20753

Comments

@Tomme
Copy link

Tomme commented Nov 21, 2023

Optional<URI> endSessionEndpoint = Optional.of(getRequiredField("end_session_endpoint", metadata.getEndSessionEndpointURI(), END_SESSION_URL, Optional.empty()));

If you set http-server.authentication.oauth2.oidc.discovery=true and your Authorization Server does not return a end_session_endpoint value you will get the error: Invalid response from OpenID Metadata endpoint. Missing required "end_session_endpoint" property

While I am unsure if the OpenID Connect RP-Initiated Logout 1.0 specification is required for a minimum compliant implementation of OpenID Connect, quite a lot of OAuth providers e.g. Google, do not implement it / provide a end_session_endpoint value: https://accounts.google.com/.well-known/openid-configuration

@oneonestar
Copy link
Member

DEX Idp also doesn't implement it: dexidp/dex#1697

In SSO(single sign on) system, after a user click the Log Out button on an application, there are different implementations:

Which one to use should be determined by the organization. Admin will then enforce it for all applications.
IMO, Trino should allow admin to choose what it means when a user click the Log Out button.
I propose to make end_session_endpoint optional with docs updates to explain the behavior.

@Praveen2112 What do you think?

@mosabua
Copy link
Member

mosabua commented Apr 9, 2024

Maybe @dain or @electrum can chime in here

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

Successfully merging a pull request may close this issue.

3 participants