mirror of
https://github.com/hashicorp/vault.git
synced 2025-09-15 19:01:09 +02:00
* =passback mfa_requirement for oidc login methods * =pass SAML mfa requirement * add comments * add acceptance tests * add helper * update callback args for auth jwt * add changelog * update changelog * is this line necessary? * fetch token data for display name, this commit can be undone when BE fixes VAULT-32462 * change error handling, add comments * update capitalization * revert capitalization * reword changelog * clarify comments * Update changelog/28873.txt
25 lines
509 B
JavaScript
25 lines
509 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
export const setupTotpMfaResponse = (mountPath) => ({
|
|
auth: {
|
|
mfa_requirement: {
|
|
mfa_request_id: '0edf0945-da02-1300-9a0a-cb052cd94eb4',
|
|
mfa_constraints: {
|
|
[mountPath]: {
|
|
any: [
|
|
{
|
|
type: 'totp',
|
|
id: '7028db82-7de3-01d7-26b5-84b147c80966',
|
|
uses_passcode: true,
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
num_uses: 0,
|
|
},
|
|
});
|