-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Describe the bug
Given the configuration :
quarkus.oidc.auth-server-url=https://myauthtenant.eu.auth0.com/
On start-up Quarkus tries to access URL : https://myauthtenant.eu.auth0.com//.well-known/openid-configuration
(see double //) which causes an exception
OIDC server is not available at the 'quarkus.oidc.auth-server-url' URL (...)
(...)
Cannot GET //.well-known/openid-configuration
Alternatively, when removing trailing slash:
quarkus.oidc.auth-server-url=https://myauthtenant.eu.auth0.com
an error is thrown
issuer validation failed: received [https://myauthtenant.eu.auth0.com/]
as the issuer field in the OIDC JSON has the trailing slash
"issuer": "https://myauthtenant.eu.auth0.com/",
I've tried adding
quarkus.oidc.introspection-path=.well-known/openid-configuration
quarkus.oidc.jwks-path=.well-known/jwks.json
with no effect
Expected behavior
Quarkus could be smart enough not to add another "/" before .well-known
when the auth-server-url ends with trailing /
Actual behavior
Quarkus start up error
To Reproduce
Steps to reproduce the behavior:
- Create a free Auth0 tenant
- Configure Quarkus as in https://quarkus.io/guides/security-openid-connect-web-authentication
- Configure properties to point to Auth0
- Start app
Configuration
quarkus.oidc.auth-server-url=https://myauthtenant.eu.auth0.com
quarkus.oidc.introspection-path=.well-known/openid-configuration
quarkus.oidc.jwks-path=.well-known/jwks.json
quarkus.oidc.client-id=XXX
quarkus.oidc.credentials.secret=XXX
quarkus.oidc.application-type=web-app
quarkus.oidc.authentication.scopes=email,profile,roles
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
- Output of
uname -a
orver
: - Output of
java -version
: - GraalVM version (if different from Java):
- Quarkus version or git rev:
Additional context
(Add any other context about the problem here.)