-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Auth0 Logout not working properly when using a custom domain at auth0 #22020
Comments
If you contact Auth0 support, you can get the end_session_endpoint turned on. Or just remove the conditional so it always uses Auth0. |
Well, ideally, it would not be needed to remove any generated code to avoid issues when there are new versions. |
@OmarHawk I agree we should have a better solution. I'll add a bug bounty and try to look into this before the end of the month. |
@OmarHawk Would it be okay to configure the auth0 domains in jhipster? Which by default contains only |
I think so. In the end it is about reducing the amount of changes to generated code :D |
I will take care of it (except @mraible you have another idea). It is similar to what we have for the csp policies, which are configurable via spring properties. |
Overview of the issue
Hi,
in our set-up we are using auth0 as identity provider, where auth0 is having a custom host name configured. The default LogoutResource detects auth0 by checking the issuerUri, see here in the imperative sample:
generator-jhipster/generators/server/templates/src/main/java/package/web/rest/LogoutResource_imperative.java.ejs
Lines 56 to 60 in 28005f0
Since we are having a custom host name (enterprise...) where auth0.com is not mentioned at all, we fall back into the else branch, where there is the call
this.registration.getProviderDetails().getConfigurationMetadata().get("end_session_endpoint").toString()
.Since auth0 is seemingly not publishing this as part of the
/.well-known/openid-configuration
endpoint, the.toString()
produces aNullPointerException
... in any case auth0 seems to require some special handling when it comes to Logouts, so we would probably require a different detection mechanism for auth0...Motivation for or Use Case
Auth0 detection not working in any case.
Reproduce the error
See above
Related issues
Suggest a Fix
Maybe allow to define auth0 as idp in a config when it is not possible to detect it implicitly... any ideas for other detection mechanisms welcome :-)
JHipster Version(s)
7.9.3
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
The text was updated successfully, but these errors were encountered: