Create temporary credentials for AWS SSO-OIDC.
Project description
Overview
Create temporary credentials with AWS SSO-OIDC access tokens.
Prerequisites
Python >= 3.6
boto3 (https://pypi.org/project/boto3/) >= 1.17.78
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>')
access_token = response['accessToken']
In BASH:
python [/path/to/]aws_ssooidc \
-u <sso_url>
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
Built Distribution
Close
Hashes for aws_ssooidc-2022.10.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d1145e92a9bace2cecbe16c0c386bc8dcd3f591edb3fad4e4f913d14e4fa3b2 |
|
MD5 | ca34f6faf797f9a9f037f32f0d4955a8 |
|
BLAKE2b-256 | 8950c14175903d8d2ea081a343cca652d614867eb6c6be8e2ffee1205b44f5a1 |