Skip to content

Commit

Permalink
vdk-core: add team oauth configuration (#3411)
Browse files Browse the repository at this point in the history
Add configuration options for team oauth
configuration

Signed-off-by: Dako Dakov <[email protected]>
  • Loading branch information
dakodakov authored Aug 20, 2024
1 parent a9d52ad commit cda0d0f
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
OP_ID = "OP_ID"
TEMPORARY_WRITE_DIRECTORY = "TEMPORARY_WRITE_DIRECTORY"
PYTHON_VERSION = "PYTHON_VERSION"
TEAM_CLIENT_ID = "TEAM_CLIENT_ID"
TEAM_CLIENT_SECRET = "TEAM_CLIENT_SECRET"
TEAM_OAUTH_AUTHORIZE_URL = "TEAM_OAUTH_AUTHORIZE_URL"

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -157,6 +160,24 @@ def vdk_configure(self, config_builder: ConfigurationBuilder) -> None:
" no guarantee that files created during a local data job execution"
" will be present or absent for the next execution.",
)
config_builder.add(
TEAM_CLIENT_ID,
"",
True,
"The Team's oAuth Client Id to use in authentication operations.",
)
config_builder.add(
TEAM_CLIENT_SECRET,
"",
True,
"The Team's oAuth Client Secret to use in authentication operations",
)
config_builder.add(
TEAM_OAUTH_AUTHORIZE_URL,
"",
True,
"The URL for Team's oAuth authorization",
)


class EnvironmentVarsConfigPlugin:
Expand Down

0 comments on commit cda0d0f

Please sign in to comment.