-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ded2854
commit 64db7ed
Showing
11 changed files
with
205 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
22 changes: 11 additions & 11 deletions
22
...3/admin/_graphql_client/set_sso_config.py → ...3/admin/_graphql_client/sso_config_set.py
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import typing as T | ||
|
||
from . import util | ||
from . import types, util | ||
|
||
|
||
def get() -> T.Optional[str]: | ||
def get() -> T.Optional[types.SSOConfig]: | ||
""" | ||
Get the current SSO configuration. | ||
""" | ||
return util.get_client().get_sso_config() | ||
result = util.get_client().sso_config_get() | ||
return None if result is None else types.SSOConfig(**result.model_dump()) | ||
|
||
|
||
def set(config: T.Optional[str]) -> None: | ||
""" | ||
Set the SSO configuration. | ||
""" | ||
util.handle_errors(util.get_client().set_sso_config(config)) | ||
util.handle_errors(util.get_client().sso_config_set(config)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.