JumpCloud AWS CLI Authentication with Device Trust
Project description
JumpCloud AWS CLI Authentication Utility
A Python utility for authenticating with AWS CLI using JumpCloud SAML and Device Trust certificates.
Features
- Browser-based authentication with JumpCloud
- Automatic Device Trust certificate handling
- SAML assertion capture and parsing
- AWS STS role assumption
- AWS CLI credential configuration
- Cross-platform (works on macOS, Windows, and Linux)
Installation
pip install jumpcloud-awscli
Requirements
- Python 3.6+
- Chrome or Chromium browser
- AWS CLI installed and configured
- JumpCloud account with Device Trust certificates installed
Usage
Basic Usage
# Authenticate with JumpCloud and update AWS credentials
jumpcloud-aws --url "https://sso.jumpcloud.com/saml2/yourapp"
All Options
jumpcloud-aws --url "https://sso.jumpcloud.com/saml2/yourapp" \
--profile "jumpcloud" \
--duration 43200 \
--region "us-west-2" \
--debug
Using Environment Variables
You can set the JumpCloud URL as an environment variable:
# Set the environment variable
export JUMPCLOUD_AWS_URL="https://sso.jumpcloud.com/saml2/yourapp"
# Then you can run without the --url parameter
jumpcloud-aws
How It Works
- Launches a Chrome browser session to authenticate with JumpCloud
- The browser automatically presents your Device Trust certificate during authentication
- After successful authentication, it captures the SAML assertion
- Parses the SAML assertion to extract available AWS roles
- Lets you select a role (if multiple are available)
- Uses AWS STS to assume the selected role with the SAML assertion
- Updates your AWS CLI credentials file with temporary credentials
Troubleshooting
Chrome/ChromeDriver Issues
If you encounter issues with Chrome or ChromeDriver:
# Reinstall the ChromeDriver dependency
pip install chromedriver-binary-auto --force-reinstall
Debug Mode
For more detailed output, use the --debug flag:
jumpcloud-aws --url "https://sso.jumpcloud.com/saml2/yourapp" --debug
Common Issues
- Certificate selection problems: If prompted for a certificate and it fails, check that your JumpCloud Device Trust certificate is properly installed.
- Authentication timeouts: If the process times out during authentication, check your network connection and ensure you're using the correct JumpCloud credentials.
- No roles found: Verify that your JumpCloud user has the proper AWS application role assignments.
License
MIT License
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jumpcloud_awscli-0.1.0.tar.gz.
File metadata
- Download URL: jumpcloud_awscli-0.1.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67ce4531c8778a87edf57853898fa3a8376d8605ec1637aab6eb9cd66283d814
|
|
| MD5 |
23099f3b1a672afdf3321ce55f5b5a61
|
|
| BLAKE2b-256 |
dc22592edae4fd54b7d211300c894697d28fa21913f47e2684393f0476532331
|
File details
Details for the file jumpcloud_awscli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jumpcloud_awscli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fa98208ad6db05b54f0787afe763fd776f4869813187de06f274839d0dc032a
|
|
| MD5 |
95a13f7b65c65abdbfcf14c1ef1c3d33
|
|
| BLAKE2b-256 |
e6a293acc7c7b255d58369b1986384a78c06475a951f2969f7c40a1179b5b45a
|