rhino_health.lib.rest_api.rhino_authenticator#

Module Contents#

Classes#

OauthProvider

Which Oauth Provider are you logging in with

SSOAuthenticationDetails

Dictionary configuration for logging in with SSO

UsernamePasswordAuthenticationDetail

Dictionary configuration for logging into the platform

SessionAuthenticationDetail

Configuration to resume an existing session

Attributes#

AuthenticationDetailType

Union[SSOAuthenticationDetails, UsernamePasswordAuthenticationDetail, SessionAuthenticationDetail]

class rhino_health.lib.rest_api.rhino_authenticator.OauthProvider(*args, **kwds)#

Bases: enum.Enum

Which Oauth Provider are you logging in with

GOOGLE = 'google'#
OKTA = 'okta'#
class rhino_health.lib.rest_api.rhino_authenticator.SSOAuthenticationDetails#

Bases: typing_extensions.TypedDict

Dictionary configuration for logging in with SSO

sso_access_token: str#

The SSO Access Token, required for most SSO Flows

sso_id_token: str | None#

The ID Token, optional for certain flows

sso_provider: OauthProvider#

Which SSO Provider are you logging in with

sso_client: str | None#

Which SSO Client are you logging in with for client provided SSO Integrations

class rhino_health.lib.rest_api.rhino_authenticator.UsernamePasswordAuthenticationDetail#

Bases: typing_extensions.TypedDict

Dictionary configuration for logging into the platform

email: str#

The email of the account you are logging in with

password: str#

The password of the account you are logging in with, if using password

class rhino_health.lib.rest_api.rhino_authenticator.SessionAuthenticationDetail#

Bases: typing_extensions.TypedDict

Configuration to resume an existing session

session_token: str#

The session token

session_timeout: str#

When the session is valid until

rhino_health.lib.rest_api.rhino_authenticator.AuthenticationDetailType#

Union[SSOAuthenticationDetails, UsernamePasswordAuthenticationDetail, SessionAuthenticationDetail]