OAuthSecret
Examples
Python
# OAuth with client credentials flow:
secret = OAuthSecret(
name="some_secret",
api_authentication="some_security_integration",
oauth_scopes=["scope1", "scope2"],
comment="some_comment",
owner="SYSADMIN",
)
# OAuth with authorization code grant flow:
secret = OAuthSecret(
name="another_secret",
api_authentication="some_security_integration",
oauth_refresh_token="34n;vods4nQsdg09wee4qnfvadH",
oauth_refresh_token_expiry_time="2049-01-06 20:00:00",
comment="some_comment",
owner="SYSADMIN",
)YAML
Fields
Last updated