<#1638 feat: Add audience token for Auth0 ClientCr...
# flyte-github
a
#1638 feat: Add audience token for Auth0 ClientCredentials Auth Flow Pull request opened by PudgyPigeon TL;DR This PR enables passing in the
audience
parameter into the
get_token
method - via the ClientCredentials flow and the ClientConfig object. Also adds in the ability for Pyflyte/Flytekit to read in the audience from the config.yaml file, but it is not linked to the get_token method (only ClientConfig object params are used at the moment). Type • [ x ] Bug Fix • [ x ] Feature ☐ Plugin Are all requirements met? • [ x ] Code completed ☐ Smoke tested ☐ Unit tests added ☐ Code documentation added • [ x ] Any pending items have an associated Issue Complete description How did you fix the bug, make the feature etc. Link to any design docs etc Auth0 requires an audience parameter for its various requests. This was previously not enabled in the Flytekit source code. This PR adds support for that by piping in the
audience
parameter as input from FlyteAdmin's audience field, and then into the various functions/methods/classes that handle the auth request. The ability to pipe in "audience" from the config.yaml file is also enabled so set up is there for enabling this method of defining the parameter, but it's fine if it gets deleted as the ClientConfig inferring audience from Admin works. Tracking Issue flyteorg/flyte#3661 Follow-up issue NA OR https://github.com/flyteorg/flyte/issues/ flyteorg/flytekit DCO: DCO 1 other check has passed 1/2 successful checks