Skip to content

OAuth2AuthorizationData

Source code in docs_src/capo_agent_registry_control/types/o_auth2_authorization_data.py
class OAuth2AuthorizationData(TypedDict, closed=True):
    authorization_url: "capo_agent_registry_control.types.o_auth_authorization_url.OAuthAuthorizationUrl"
    """<p>The URL that the user opens to approve access. The link is valid for up to 10 minutes. Treat it as sensitive and give it only to the user who approves access.</p>"""
    user_id: NotRequired["capo_agent_registry_control.types.o_auth_user_id.OAuthUserId"]
    """<p>The AgentCore Identity user ID that the authorization is for. Store it with your signed-in user and pass it as <code>userIdentifier.userId</code> when your application calls <code>CompleteResourceTokenAuth</code>.</p>"""
    authorization_attempt_id: NotRequired[
        "capo_agent_registry_control.types.authorization_attempt_id.AuthorizationAttemptId"
    ]
    """<p>The identifier of this authorization attempt.</p>"""
    expires_at: NotRequired[
        "capo_agent_registry_control.types.date_timestamp.DateTimestamp"
    ]
    """<p>The timestamp when the authorization link expires, 10 minutes after the authorization started. A request that joins an authorization in progress gets less time, and the link might stop working shortly before this time.</p>"""

authorization_attempt_id instance-attribute

authorization_attempt_id: NotRequired[AuthorizationAttemptId]

The identifier of this authorization attempt.

authorization_url instance-attribute

authorization_url: OAuthAuthorizationUrl

The URL that the user opens to approve access. The link is valid for up to 10 minutes. Treat it as sensitive and give it only to the user who approves access.

expires_at instance-attribute

expires_at: NotRequired[DateTimestamp]

The timestamp when the authorization link expires, 10 minutes after the authorization started. A request that joins an authorization in progress gets less time, and the link might stop working shortly before this time.

user_id instance-attribute

user_id: NotRequired[OAuthUserId]

The AgentCore Identity user ID that the authorization is for. Store it with your signed-in user and pass it as userIdentifier.userId when your application calls CompleteResourceTokenAuth.