Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC: Single Sign-On #680

Closed

Conversation

simonireilly
Copy link

@simonireilly simonireilly commented Sep 19, 2021

This Proof of Concept for Single Sign On introduces the aws-sdk for javascript v3 credential provider for nodejs.

closes: #679

Questions

Usage

Continues to support all authentication methods.

Breaking change 💥

  • Previous code had --profile as top priority; the aws package ranks this as fourth ranking for sign-in is:
  1. Environment variables exposed via process.env
  2. SSO credentials from token cache
  3. Web identity token credentials
  4. Shared credentials and config ini files
  5. The EC2/ECS Instance Metadata Service

Breaking change 💥

With given config

# ~/.aws/config
[profile dev]
sso_start_url = "https://my-sso-portal.awsapps.com/start"
sso_region = "us-east-1"
sso_account_id = "123456789011"
sso_role_name = "Developer"
region = "us-west-2"
output = "json"

Auth first, then sls-dev-tools will find the SSO creds.

aws sso login --profile dev
sls-dev-tools --profile dev

@simonireilly simonireilly marked this pull request as ready for review September 19, 2021 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Single Sign On Support
1 participant