Federation

class coto.clients.federation.Client(session)[source]
REQUIRES_AUTHENTICATION = False
get_signin_token(boto3_session)[source]

Obtain a signin token for a boto3 session.

This method uses the federation endpoint to obtain a signin token using the credentials in your boto3 session.

Request Syntax:
response = client.get_signin_token(
    boto3_session=boto3.session.Session,
)
Parameters:boto3_session (boto3.session.Session) – The boto3 session to use as provider for AWS credentials.
Returns:Signin token.
Return type:str
get_signin_url(boto3_session)[source]

Signin using a boto3 session.

This method uses the federation endpoint to obtain a signin token using the credentials in your boto3 session. The signin token is then used to signin into the AWS Management Console.

Although possible, you are not encouraged to call this method directly, instead follow the following example.

Example

import boto3
import coto

session = coto.Session(
    boto3_session=boto3.Session()
)
Request Syntax:
response = client.signin(
    boto3_session=boto3.session.Session,
)
Parameters:boto3_session (boto3.session.Session) – The boto3 session to use as provider for AWS credentials.
Returns:Signin succeeded.
Return type:bool
signin(boto3_session)[source]

Signin using a boto3 session.

This method uses the federation endpoint to obtain a signin token using the credentials in your boto3 session. The signin token is then used to signin into the AWS Management Console.

Although possible, you are not encouraged to call this method directly, instead follow the following example.

Example

import boto3
import coto

session = coto.Session(
    boto3_session=boto3.Session()
)
Request Syntax:
response = client.signin(
    boto3_session=boto3.session.Session,
)
Parameters:boto3_session (boto3.session.Session) – The boto3 session to use as provider for AWS credentials.
Returns:Signin succeeded.
Return type:bool