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
Pyflyte/Flytekit does not pass in the appropriate audience parameter for the ClientSecret/ClientCredentials authorization flow w/ Auth0.
The ClientConfig, PlatformConfig, ClientCredentialsAuthenticator classes, the get_authenticator function, and the token_client.get_token method are not currently configured to accept and pass around the required parameter, and the final get_token method never receives it as an input arg, nor does it pass it into the POST request when requesting a token.
This results in a failed auth request as Auth0 requires an audience parameter in the body of the request.
Expected behavior
Allow the end-user to set the "audience" parameter either in <flyteconsoleurl>/config/v1/flyte_client or the config.yaml file, and have the pyflyte/flytekit package use this in its auth request for Auth0 integration.
Will link fork with changes soon
Additional context to reproduce
Use an Auth0 external authorization server and attempt to run a pyflyte run command with the following config values:
config.yaml
admin:
# For GRPC Endpoints you might want to use dns:///flyte.example.com
#endpoint: dns:///localhost:8089
endpoint: dns:///<endpointhere>
authType: ClientSecret
clientId: <>
clientSecretLocation: <>
scopes:
- read:client_grants
#- offline --------------------- set offline and all if desired, but not strictly necessary
#- all
audience: <> --------------------- deriving it from here is nice, but not strictly necessary as config/v1/flyte_client exists
Screenshots
No response
Are you sure this issue hasn't been raised already?
Yes
Have you read the Code of Conduct?
Yes
The text was updated successfully, but these errors were encountered:
Hello 👋, this issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will engage on it to decide if it is still applicable.
Thank you for your contribution and understanding! 🙏
Related issues
#3660 #3659
Describe the bug
Pyflyte/Flytekit does not pass in the appropriate
audience
parameter for the ClientSecret/ClientCredentials authorization flow w/ Auth0.The
ClientConfig
,PlatformConfig
,ClientCredentialsAuthenticator
classes, theget_authenticator
function, and thetoken_client.get_token
method are not currently configured to accept and pass around the required parameter, and the final get_token method never receives it as an input arg, nor does it pass it into the POST request when requesting a token.This results in a failed auth request as Auth0 requires an audience parameter in the body of the request.
Expected behavior
Allow the end-user to set the "audience" parameter either in
<flyteconsoleurl>/config/v1/flyte_client
or theconfig.yaml
file, and have the pyflyte/flytekit package use this in its auth request for Auth0 integration.Will link fork with changes soon
Additional context to reproduce
Use an Auth0 external authorization server and attempt to run a
pyflyte run
command with the following config values:Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: