<#1639 feat: Add Auth0/audience support for Client...
# flyte-github
a
#1639 feat: Add Auth0/audience support for ClientCredentials 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. This enables using Auth0 as an external server for intra-service authentication. Thus, every aspect of auth within a Flyte deployment can be offloaded to Auth0 instead of being handled internally. Type ☑︎ Bug Fix ☑︎ Feature ☐ Plugin Are all requirements met? ☑︎ Code completed ☐ Smoke tested ☐ Unit tests added ☐ Code documentation added ☑︎ 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 as the various dataclasses and objects never expected an
audience
param as an input arg. Furthermore, the format necessary for an Auth0 request was not defined. 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. Tracking Issue flyteorg/flyte#3661 Follow-up issue NA OR https://github.com/flyteorg/flyte/issues/ flyteorg/flytekit Codecov: 71.02% (-0.01%) compared to f671fb6 Codecov: 40.00% of diff hit (target 71.03%) 28 other checks have passed 28/30 successful checks