You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this should be considered a bug, or if is maybe a missunderstanding. I have been using this library with Auth0 for years without problem, but since last week at least I detected a problem with the logout.
I am not sure but it seems that Auth0 has started returning end_session_endpoint on openid-configuration, this is important because until now he have been using this as:
exportconstauthConfig: AuthConfig={[...]// Logout URL, we have to log out from IdP (Identity Provider) also to remove cookies and so on// https://auth0.com/docs/api/authentication?javascript#logoutlogoutUrl: `https://${environment.AUTH_DOMAIN}/v2/logout?client_id=${environment.AUTH_CLIENT_ID}&returnTo=${returnTo}`,[...]}
Currently the end_session_endpoint param is no longer present on the openid-configuration, I will ask Auth0 about this.
EDIT: Auth0 says that the inclusion on the end_session_endpoint was an internal issue, they give an option to enable it under Settings > Advanced, and since you leave this toggled off this should be OK:
But leaves me with the question of why the library is not allowing me to override that URL if end_session_endpoint
is present in the openid-configuration, this could be a issue if in the future Auth0 enforces the usage of that param.
Alvaro948
changed the title
Allow to overide logoutUrl
Allow to override logoutUrl
Apr 10, 2025
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am not sure if this should be considered a bug, or if is maybe a missunderstanding. I have been using this library with Auth0 for years without problem, but since last week at least I detected a problem with the logout.
I am not sure but it seems that Auth0 has started returning
end_session_endpoint
on openid-configuration, this is important because until now he have been using this as:But if I am not wrong, if
end_session_endpoint
is provided by theopenid-configuration
it replaces the configuredlogoutUrl
see https://github.com/manfredsteyer/angular-oauth2-oidc/blob/master/projects/lib/src/oauth-service.ts#L558, causing the logout() method ot redirect to that URL, instead of the configured.As far as I have seen the key diference is:
openid-configuration
, is OIDC conformant. and needs anid_token
,sid
or similar.So, adding
postLogoutRedirectUri
could solve the issue:But in my use case when a user has an expired password, the login is denied via Auth0 Action. This causes:
id_token
provided to the client, only a redirect with an error messageThis Auth0 cookie disallows the user to entering the Auth0 login window, where the reset password is, and sends the to the error page once again.
So maybe the problem is Auth0, for now I have done the following in order to emulate what the library, I think, should do:
To Reproduce
Steps to reproduce the behavior:
logout()
, it will cause an error on Auth0 or say the that the url is not in the "Allowed logout URL"Desktop (please complete the following information):
If there is anything else I can help, just let me know, thanks!
The text was updated successfully, but these errors were encountered: