Skip to content

Commit

Permalink
Split SAML deployment process
Browse files Browse the repository at this point in the history
  • Loading branch information
polyaxon-ci committed Nov 15, 2023
1 parent ce910ce commit b4c21ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions haupt/haupt/common/events/event_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
GITLAB = "gitlab"
BITBUCKET = "bitbucket"
GOOGLE = "google"
SAML = "saml"


WRITE_ACTIONS = [
Expand Down
16 changes: 10 additions & 6 deletions haupt/haupt/schemas/platform_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,14 @@ class PlatformConfig(BaseSchemaModel):
auth_google_options: Optional[Dict] = Field(
alias="POLYAXON_AUTH_GOOGLE_OPTIONS", default={}
)
auth_azure_options: Optional[Dict] = Field(
alias="POLYAXON_AUTH_AZURE_OPTIONS", default={}
auth_okta_options: Optional[Dict] = Field(
alias="POLYAXON_AUTH_OKTA_OPTIONS", default={}
)
auth_saml_options: Optional[Dict] = Field(
alias="POLYAXON_AUTH_SAML_OPTIONS", default={}
auth_onelogin_options: Optional[Dict] = Field(
alias="POLYAXON_AUTH_ONELOGIN_OPTIONS", default={}
)
auth_azuread_options: Optional[Dict] = Field(
alias="POLYAXON_AUTH_AZUREAD_OPTIONS", default={}
)
ui_in_sandbox: Optional[bool] = Field(alias=ENV_KEYS_UI_IN_SANDBOX, default=False)
ui_admin_enabled: Optional[bool] = Field(
Expand Down Expand Up @@ -327,8 +330,9 @@ def validate_str_list(cls, v, field: "ModelField"):
"auth_gitlab_options",
"auth_bitbucket_options",
"auth_google_options",
"auth_azure_options",
"auth_saml_options",
"auth_okta_options",
"auth_onelogin_options",
"auth_azuread_options",
pre=True,
)
def validate_json_fields(cls, v, field: "ModelField"):
Expand Down

0 comments on commit b4c21ee

Please sign in to comment.