Skip to content

feat: Use single MFA session to login to multiple profiles#1

Draft
inderpartap wants to merge 1 commit intomainfrom
feat/use-single-mfa
Draft

feat: Use single MFA session to login to multiple profiles#1
inderpartap wants to merge 1 commit intomainfrom
feat/use-single-mfa

Conversation

@inderpartap
Copy link

@inderpartap inderpartap commented Mar 6, 2025

Description

Introducting a feature to use single MFA auth session to allow logging in to multiple profiles. The session token and id it stores, is only valid for 5 minutes, so there is low chance of the token being used by a bad actor.

To enable this functionality, set user_use_session_token = true in your [default] config.
When running for the first time, it would prompt MFA, but all subsequent calls to tokendito should result in successful authentication as long as the session is not expired.

Related Issue

Motivation and Context

It is cumbersome to login to multiple profiles while continuously accepting MFA prompts.

How Has This Been Tested?

  • This has only been tested with Okta verify authenticator.
  • This has only been tested to work when default profile is present and called [default]

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@inderpartap inderpartap self-assigned this Mar 6, 2025
@inderpartap inderpartap force-pushed the feat/use-single-mfa branch from 1480b39 to 3293fee Compare March 6, 2025 23:47
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.

1 participant