Skip to main content

A lightweight package to do aws sso without aws cli

Project description

AWS SSO Lite

AWS SSO Lite is a lightweight Python library that allows users to authenticate with AWS Single Sign-On (SSO) without requiring the AWS CLI. This library simplifies the process of obtaining temporary AWS credentials using SSO, making it easier to integrate SSO authentication into your Python applications.

Features

  • SSO Authentication: Authenticate with AWS SSO without needing the AWS CLI.
  • Temporary Credentials: Retrieve temporary AWS credentials for use in your Python applications.
  • Simple Integration: Easily integrate AWS SSO authentication into your Python scripts or tools.

Installation

You can install the library from PyPI using pip:

pip install aws-sso-lite

Usage

from aws_sso_lite import get_sso_token_by_start_url, do_sso_login
import botocore

start_url = "http://some-start-url.awsapps.com/start"
sso_token = get_sso_token_by_start_url(start_url)

botocore_session = botocore.session.Session()
region = 'eu-west-1'

do_sso_login(botocore_session, region, start_url)

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_sso_lite-0.0.4.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

aws_sso_lite-0.0.4-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file aws_sso_lite-0.0.4.tar.gz.

File metadata

  • Download URL: aws_sso_lite-0.0.4.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for aws_sso_lite-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7f3e8ae94c8bcb36f8c1340f9092499230e4564dff164df9d3a94e07124c702c
MD5 06e76e5ef1bf38b0ffdbbd506bd14ee3
BLAKE2b-256 524326ee2be17b526391414aac38d7644e057257214bad7771d92b95ee9d2e02

See more details on using hashes here.

File details

Details for the file aws_sso_lite-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_sso_lite-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 13f62d397fef5bf409929f027e092e345f791ff05ed93cfbacc9cdb0d2a350fd
MD5 fcd5f1b16128c205c727896d9d3f9cfa
BLAKE2b-256 a35b533866ad6966a1c413804501dc9e75e8597f629ebf19a1e9a908d74b983e

See more details on using hashes here.

Supported by

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