Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions flytekit/configuration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ def auto(cls, config_file: typing.Optional[typing.Union[str, ConfigFile]] = None
kwargs = set_if_exists(
kwargs, "client_credentials_secret", _internal.Credentials.CLIENT_CREDENTIALS_SECRET.read(config_file)
)
kwargs = set_if_exists(kwargs, "audience", _internal.Credentials.AUDIENCE.read(config_file))

is_client_secret = False
client_credentials_secret = read_file_if_exists(
Expand Down
4 changes: 4 additions & 0 deletions flytekit/configuration/internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ class Credentials(object):
- None: No auth will be attempted.
"""

AUDIENCE = ConfigEntry(LegacyConfigEntry(SECTION, "audience"), YamlConfigEntry("admin.audience"))
"""
This setting can be used to manually pass in the audience into authenticator flows.
"""

class Platform(object):
SECTION = "platform"
Expand Down