Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Log in via the saml URL if the profile contains one #114

Merged
merged 2 commits into from
Jan 29, 2019

Conversation

Fauzyy
Copy link
Member

@Fauzyy Fauzyy commented Jan 28, 2019

This PR changes the login command to prioritize the aws_saml_url for the target profile if it contains one. If not, it falls back to using the federated login API.

Using the federated login method is problematic if your config has multiple accounts. Any time you login to another role on a different account, you're greeted with a page saying you must sign out first.

lib/okta.go Outdated Show resolved Hide resolved
Copy link
Contributor

@nickatsegment nickatsegment left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me. A test or two would be nice :)

@nickatsegment
Copy link
Contributor

The unqualified word provider is going on my blacklist of meaningless terms :P

@Fauzyy Fauzyy merged commit 798d7d0 into master Jan 29, 2019
@Fauzyy Fauzyy deleted the Fauzyy/add-logouts branch January 29, 2019 23:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants