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
Usage
Installation:
pip3 install aws_ssooidc
# or
python3 -m pip install aws_ssooidc
In Python3:
from aws_ssooidc.aws_ssooidc import gettoken as sso
response = sso('<start_url>')
access_token = response['accessToken']
In BASH:
python3 -c "
from aws_ssooidc.aws_ssooidc import gettoken as sso
response = sso('<start_url>')
access_token = response['accessToken']
"
Changelog
2021.1.0.0
Initial release.
Current version: 2021.1.0.0
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.0.0.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for aws_ssooidc-2021.1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe3d7aa7ce0e132ec4b1eea3a5f137c4d0f60895e0008e6dcbf58276864460ab |
|
MD5 | f1c86f6ccb63efb1a070a8b1ede7ce27 |
|
BLAKE2b-256 | 9b47a50e72bee49cc39b38501027652cf77f8147425dd74619a90bfcf31920f8 |