Skip to main content

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>')
access_token = response['accessToken']

In BASH:

python3 -c "
    import aws_ssooidc as sso
    response = sso.gettoken('<start_url>')
    access_token = response['accessToken']
"

Changelog

2021.1.1.0

  • Bugfix: Added region as keyword in gettoken function call.

  • Added timeout as keyword in gettoken function call.

  • Added message into JSON cache file error handling.

  • Restructured module for easier usage.

  • Updated README.

2021.1.0.2

  • Updated README.

2021.1.0.1

  • Added verification URI printout for devices which cannot launch browsers automatically.

2021.1.0.0

  • Initial release.

Current version: 2021.1.1.0

Project details


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.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

aws_ssooidc-2021.1.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file aws_ssooidc-2021.1.1.0.tar.gz.

File metadata

  • Download URL: aws_ssooidc-2021.1.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.5 Linux/5.8.0-1036-azure

File hashes

Hashes for aws_ssooidc-2021.1.1.0.tar.gz
Algorithm Hash digest
SHA256 9741f12fb4391dcf317ff59cd6ea49537363e62f39a752533e84658bb9fd705a
MD5 0f7d781a8e4eb3e310eb3de8d906003d
BLAKE2b-256 4248c9618811e573d0a7e5b70317aa80e2f606fe25c2857b6ccf1eb086300785

See more details on using hashes here.

File details

Details for the file aws_ssooidc-2021.1.1.0-py3-none-any.whl.

File metadata

  • Download URL: aws_ssooidc-2021.1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.7 CPython/3.9.5 Linux/5.8.0-1036-azure

File hashes

Hashes for aws_ssooidc-2021.1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06094792b5ea906fb410a84f9765066e99b3015c71cd357c13cbe3032fea0d96
MD5 a4feeae31e450e6b623ab25200899fc0
BLAKE2b-256 afff214561cb215731569c889f0ee1358771e7c15e6eec2bb1e22d4f61b9bb0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page