acoustic-carpenter-78188
05/26/2025, 12:10 AMflyte-binary chart then looks like this:
auth:
enabled: true
oidc:
baseUrl: https://<keycloak-domain>/auth/realms/<realm>
clientId: flyte
clientSecret: <secret>
authorizedUris:
- https://flyte.<base_domain>
internal:
clientId: flyte-propeller
clientSecret: <secret>
clientSecretHash: <secretHash>
inline:
auth:
appAuth:
authServerType: External
externalAuthServer:
baseUrl: https://<keycloak-domain>/auth/realms/<realm>
metadataUrl: .well-known/openid-configuration
allowedAudience: https://flyte.<base_domain>
thirdPartyConfig:
flyteClient:
# Use the clientID generated by your IdP for the flytectl app registration
clientId: flytectl
redirectUri: http://localhost:53593/callback
scopes:
- offline
- all
userAuth:
openId:
# baseUrl: https://<keycloak-url>/auth/realms/<keycloak-realm> # Uncomment for Keycloak and update with your installation host and realm name
# baseUrl: https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/authorize # Uncomment for Azure AD
# For Okta, use the Issuer URI of the custom auth server:
baseUrl: https://<keycloak-domain>/auth/realms/<realm>
scopes:
- profile
- openid
# - offline_access # Uncomment if your IdP supports issuing refresh tokens (optional)
# Use the client ID and secret generated by your IdP for the first OIDC registration in the "Identity Management layer : OIDC" section of this guide
clientId: flyte
When we try to connect to flyte using flytectl we get the following error:
❯ flytectl create project --id "test" --name "Test"
{"json":{"src":"client.go:63"},"level":"info","msg":"Initialized Admin client","ts":"2024-02-21T074948+01:00"}
{"json":{"src":"auth_interceptor.go:86"},"level":"debug","msg":"Request failed due to [rpc error: code = Unauthenticated desc = token parse error [JWT_VERIFICATION_FAILED] Could not retrieve id token from metadata, caused by: rpc error: code = Unauthenticated desc = Request unauthenticated with IDToken]. If it's an unauthenticated error, we will attempt to establish an authenticated context.","ts":"2024-02-21T074948+01:00"}
{"json":{"src":"auth_interceptor.go:91"},"level":"debug","msg":"Request failed due to [Unauthenticated]. Attempting to establish an authenticated connection and trying again.","ts":"2024-02-21T074948+01:00"}
{"json":{"src":"token_source_provider.go:151"},"level":"warning","msg":"Failed fetching from cache. Will restart the flow. Error: no token found in the cache","ts":"2024-02-21T074948+01:00"}
{"json":{"src":"auth_flow_orchestrator.go:77"},"level":"info","msg":"Opening the browser at https://<keycloak-domain>/auth/realms/<realm>/protocol/openid-connect/auth?client_id=flytectl\u0026redirect_uri=http%3A%2F%2Flocalhost%3A53593%2Fcallback\u0026response_type=code\u0026scope=offline+all\u0026code_challenge=<...>\u0026code_challenge_method=S256\u0026nonce=<...>\u0026state=<...>c","ts":"2024-02-21T074948+01:00"}
Where the browser then gives this error:
Flyte Authentication
Error!
Error: invalid_scope
Error Hint:
Description: Invalid scopes: offline all
We already tried the Client scope mappers from this Slack thread, but to no avail.
Can anyone help? 🙈
Thank you,
Julian
P.S.: I posted this here already.
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
05/26/2025, 12:10 AM