steep-finland-24780
08/10/2022, 12:17 AMCaused by: com.nimbusds.oauth2.sdk.ParseException: The scope must include an "openid" value
at com.nimbusds.openid.connect.sdk.AuthenticationRequest.parse(AuthenticationRequest.java:1378)
at com.nimbusds.openid.connect.sdk.AuthenticationRequest.parse(AuthenticationRequest.java:1312)
at org.pac4j.oidc.redirect.OidcRedirectActionBuilder.buildAuthenticationRequestUrl(OidcRedirectActionBuilder.java:110)
It seems it's not parsing properly the AUTH_OIDC_SCOPE
env var.
I opened an interactive shell inside the container and it seems the variables are being set accordingly.
Here's the output from the front-end container:
ubuntu@host-name:~$ docker exec -it <CONTAINER_ID_FRONT-END> /bin/sh
/ $ env
ELASTIC_CLIENT_HOST=elasticsearch
HOSTNAME=datahub-frontend-react
SHLVL=1
HOME=/home/datahub
AUTH_OIDC_DISCOVERY_URI=<https://accounts.google.com/.well-known/openid-configuration>
ELASTIC_CLIENT_PORT=9200
AUTH_OIDC_CLIENT_ID=<correct_OIDC_CLIENT>
AUTH_OIDC_CLIENT_SECRET=<correct_OIDC_SECRET>
AUTH_OIDC_ENABLED=true
AUTH_OIDC_USER_NAME_CLAIM=email
AUTH_OIDC_SCOPE="openid profile email"
TERM=xterm
Does anyone had a similar problem?
How are you guys setting those variables?echoing-airport-49548
08/10/2022, 12:39 AMsteep-finland-24780
08/11/2022, 3:20 PM.env
file how the guide shows:
AUTH_OIDC_ENABLED=true
AUTH_OIDC_CLIENT_ID=<ID>
AUTH_OIDC_CLIENT_SECRET=<SECRET>
AUTH_OIDC_DISCOVERY_URI=<https://accounts.google.com/.well-known/openid-configuration>
AUTH_OIDC_BASE_URL=<https://my-datahub-url>
AUTH_OIDC_SCOPE="openid profile email"
AUTH_OIDC_USER_NAME_CLAIM=email
AUTH_OIDC_USER_NAME_CLAIM_REGEX=([^@]+)
I think is something about not properly parsing the env variables. tried removing the quotes and replace them to single quotes but no luck there.
If a set the AUTH_OIDC_ENABLED=false
everything works and I can log in the datahub portal using my username+password. So I believe is something on the front-end container.steep-finland-24780
08/11/2022, 3:24 PMechoing-airport-49548
08/11/2022, 4:48 PMAUTH_OIDC_SCOPE = "openid email profile"
instead of "openid profile email"
echoing-airport-49548
08/11/2022, 4:49 PMsteep-finland-24780
08/11/2022, 7:25 PMechoing-airport-49548
08/12/2022, 1:14 AM