CredentialBroker / Client / complete_o_auth_session_binding
complete_o_auth_session_binding¶
- CredentialBroker.Client.complete_o_auth_session_binding(**kwargs)¶
Completes a consent session. Call this from the handler at your session-binding URL, over a session carrying the same end-user identity that started the flow. On a match the broker obtains the token and holds it for later retrieval. On a mismatch it fails with AccessDeniedException and reason SESSION_BINDING_IDENTITY_MISMATCH, and no token is kept.
See also: AWS API Documentation
Request Syntax
response = client.complete_o_auth_session_binding( sessionUri='string' )
- Parameters:
sessionUri (string) –
[REQUIRED]
The session handle from StartOAuthSession.
- Return type:
dict
- Returns:
Response Syntax
{ 'sessionUri': 'string' }
Response Structure
(dict) –
sessionUri (string) –
Echoes the bound session handle.
Exceptions
CredentialBroker.Client.exceptions.ThrottlingExceptionCredentialBroker.Client.exceptions.ServiceUnavailableExceptionCredentialBroker.Client.exceptions.ResourceNotFoundExceptionCredentialBroker.Client.exceptions.InternalServerExceptionCredentialBroker.Client.exceptions.AccessDeniedExceptionCredentialBroker.Client.exceptions.ConflictExceptionCredentialBroker.Client.exceptions.ValidationException