-
Notifications
You must be signed in to change notification settings - Fork 564
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
console
command doesn't logout from aws account before logging in
#707
Comments
console
command doesn't logoutconsole
command doesn't logout from aws account before logging in
I'm finding it a chore to have to click that "logout" link and then initiate the command again from the cli. i used to use |
Further info (in case anyone is also interested).... the logout function isn't respecting the example (not working)
example (working):
|
oh boy what a rabbit hole... this guy found the working URL - it only works in us-east-1: working script: #!/usr/bin/env bash
PROFILE=${1:-default}
chrome="Google Chrome Dev.app"
# this URL works with the redirect_uri
SIGNIN="https://us-east-1.signin.aws.amazon.com/oauth?Action=logout&redirect_uri=https%3A%2F%2Fus-east-1.signin.aws.amazon.com%2Ffederation%3FAction%3Dlogin%26Destination%3Dhttps%253A%252F%252Fus-west-2.console.aws.amazon.com%252Fconsole%252Fhome%26SigninToken"
# this extracts the TOKEN from saml2
TOKEN=$(saml2aws -a ${PROFILE} console --link | cut -d'=' -f5)
# open works on Mac
open -a "${chrome}" "${SIGNIN}=${TOKEN}" |
When using
sam2aws console
with multiple accounts, the accounts don't automatically log out.Would it be possible to logout any active sessions and then sign in?
The text was updated successfully, but these errors were encountered: