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

Is there an option to clear the session token? #48

Open
mark-sawers opened this issue Sep 24, 2019 · 2 comments
Open

Is there an option to clear the session token? #48

mark-sawers opened this issue Sep 24, 2019 · 2 comments

Comments

@mark-sawers
Copy link

Would be nice to clear or pre-expire the token. This is more for testing policies, profiles and such, so may not be a common use case.

The workaround is to manually delete the entries in the ~/.aws/credentials file.

@martin-displayr
Copy link

Another use case is when you want to restart the clock on that 36 hour max window. Because if you do another aws-mfa --device arn:aws:iam::123:mfa/abc --duration 129600 when already authenticated, it will say something like:

INFO - Validating credentials for profile: default
INFO - Your credentials are still valid for 18999.929462 seconds they will expire at 2023-09-11 14:42:44

@hmoffatt
Copy link

Another use case is when you want to restart the clock on that 36 hour max window.

Doesn't the force option achieve this?

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

No branches or pull requests

3 participants