Skip to content

StartOAuthSessionResponse

Source code in docs_src/capo_credentialbroker/types/start_o_auth_session_response.py
class StartOAuthSessionResponse(TypedDict, closed=True):
    authorization_url: NotRequired[
        "capo_credentialbroker.types.authorization_url.AuthorizationUrl"
    ]
    """<p>The URL to send the end user's browser to so they can grant consent. Present only when consent is required; absent when a token was available and is returned instead.</p>"""
    session_uri: NotRequired["capo_credentialbroker.types.session_uri.SessionUri"]
    """<p>Opaque handle to the pending consent session. Present only when interactive consent is required (absent when accessToken is returned).</p>"""
    session_status: NotRequired[
        "capo_credentialbroker.types.session_status.SessionStatus"
    ]
    """<p>Status of the session (IN_PROGRESS when consent is required).</p>"""
    access_token: NotRequired["capo_credentialbroker.types.access_token.AccessToken"]
    """<p>Present only when a valid token already existed (no consent needed).</p>"""
    expires_at: NotRequired["datetime.datetime"]
    """<p>Expiry of accessToken when returned.</p>"""

access_token instance-attribute

access_token: NotRequired[AccessToken]

Present only when a valid token already existed (no consent needed).

authorization_url instance-attribute

authorization_url: NotRequired[AuthorizationUrl]

The URL to send the end user's browser to so they can grant consent. Present only when consent is required; absent when a token was available and is returned instead.

expires_at instance-attribute

expires_at: NotRequired[datetime]

Expiry of accessToken when returned.

session_status instance-attribute

session_status: NotRequired[SessionStatus]

Status of the session (IN_PROGRESS when consent is required).

session_uri instance-attribute

session_uri: NotRequired[SessionUri]

Opaque handle to the pending consent session. Present only when interactive consent is required (absent when accessToken is returned).