Okta
This module contains Okta integration steps.
koheesio.sso.okta.LoggerOktaTokenFilter #
LoggerOktaTokenFilter(
okta_object: OktaAccessToken, name: str = "OktaToken"
)
Filter which hides token value from log.
Source code in src/koheesio/sso/okta.py
filter #
Source code in src/koheesio/sso/okta.py
koheesio.sso.okta.Okta #
Base Okta class
client_id
class-attribute
instance-attribute
#
client_id: str = Field(
default=...,
alias="okta_id",
description="Okta account ID",
)
client_secret
class-attribute
instance-attribute
#
client_secret: SecretStr = Field(
default=...,
alias="okta_secret",
description="Okta account secret",
repr=False,
)
koheesio.sso.okta.OktaAccessToken #
Get Okta authorization token
Example:
token = (
OktaAccessToken(
url="https://org.okta.com",
client_id="client",
client_secret=SecretStr("secret"),
params={
"p1": "foo",
"p2": "bar",
},
)
.execute()
.token
)
Source code in src/koheesio/sso/okta.py
Output #
execute #
Execute an HTTP Post call to Okta service and retrieve the access token.