OAuth2AuthorizationData
¶
Source code in docs_src/capo_agent_registry_control/types/o_auth2_authorization_data.py
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.