Create temporary credentials for AWS SSO-OIDC.
Project description
Overview
Create temporary credentials for AWS SSO-OIDC.
Prerequisites
Python >= 3.6
boto3 >= 1.17.78 (installed as a dependency)
Required (Positional) Arguments
Position 1: start_url (the start URL for your AWS SSO login)
Optional (Keyword) Arguments
- client_name
Description: Arbitrary name of the SSO client to create.
Type: String
Default: ‘ssoclient’
- region
Description: Your AWS region.
Type: String
Default: ‘us-east-1’
- timeout
Description: Number of tries before giving up.
Type: Integer
Default: 30
Usage
Installation:
pip3 install aws-ssooidc
# or
python3 -m pip install aws-ssooidc
In Python3:
import aws_ssooidc as sso
response = sso.gettoken('<start_url>')
# To get Access Token:
access_token = response['accessToken']
In BASH:
python3 -c "
import aws_ssooidc as sso
response = sso.gettoken('<start_url>')
# To get Access Token:
access_token = response['accessToken']
"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aws_ssooidc-2021.1.1.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for aws_ssooidc-2021.1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87a44cd9ffe482387ee298405f34090655548d502c503648c8a53a22f3020b36 |
|
MD5 | 4b0b8abe7c43a273e3f4588e68ac80d4 |
|
BLAKE2b-256 | b00ec7b1ebc8d87a43e7a28e1a7b8c9d383d8c8f380b55661744e91163f0bfa6 |