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

model: add MFA requirement data to auth response #71

Merged
merged 1 commit into from
Dec 3, 2023
Merged

Conversation

stklcode
Copy link
Owner

@stklcode stklcode commented Dec 3, 2023

The "Login MFA"[1] feature is available since Vault 1.10

If enabled, requirement information is added to the AuthResponse:

    "mfa_requirement": {
      "mfa_request_id": "d0c9eec7-6921-8cc0-be62-202b289ef163",
      "mfa_constraints": {
        "enforcementConfigUserpass": {
          "any": [
            {
              "type": "totp",
              "id": "820997b3-110e-c251-7e8b-ff4aa428a6e1",
              "uses_passcode": true,
              "name": "sample_mfa_method_name",
            }
          ]
        }
      }
    }

We do not yet support MFA login, just transport the information for now.


[1] https://developer.hashicorp.com/vault/docs/auth/login-mfa

@stklcode stklcode added this to the 1.2 milestone Dec 3, 2023
@stklcode stklcode self-assigned this Dec 3, 2023
@stklcode stklcode force-pushed the feature/mfa branch 2 times, most recently from 12f0e31 to 2dff893 Compare December 3, 2023 13:45
@stklcode stklcode marked this pull request as ready for review December 3, 2023 13:46
Copy link

sonarcloud bot commented Dec 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

97.3% 97.3% Coverage
0.0% 0.0% Duplication

@stklcode stklcode merged commit 2dff893 into develop Dec 3, 2023
19 checks passed
@stklcode stklcode deleted the feature/mfa branch December 3, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant