7bd1992bc5
* adds development workflow to mirage config * adds mirage handler and factory for mfa workflow * adds mfa handling to auth service and cluster adapter * moves auth success logic from form to controller * adds mfa form component * shows delayed auth message for all methods * adds new code delay to mfa form * adds error views * fixes merge conflict * adds integration tests for mfa-form component * fixes auth tests * updates mfa response handling to align with backend * updates mfa-form to handle multiple methods and constraints * adds noDefault arg to Select component * updates mirage mfa handler to align with backend and adds generator for various mfa scenarios * adds tests * flaky test fix attempt * reverts test fix attempt * adds changelog entry * updates comments for todo items * removes faker from mfa mirage factory and handler * adds number to word helper * fixes tests
1.2 KiB
1.2 KiB
AuthForm
The AuthForm
is used to sign users into Vault.
Params
Param | Type | Description |
---|---|---|
wrappedToken | string |
The auth method that is currently selected in the dropdown. |
cluster | object |
The auth method that is currently selected in the dropdown. This corresponds to an Ember Model. |
namespace- | string |
The currently active namespace. |
selectedAuth | string |
The auth method that is currently selected in the dropdown. |
onSuccess | function |
Fired on auth success |
Example
// All properties are passed in via query params.
<AuthForm @wrappedToken={{wrappedToken}} @cluster={{model}} @namespace={{namespaceQueryParam}} @selectedAuth={{authMethod}} @onSuccess={{action this.onSuccess}} />```
**See**
- [Uses of AuthForm](https://github.com/hashicorp/vault/search?l=Handlebars&q=AuthForm+OR+auth-form)
- [AuthForm Source Code](https://github.com/hashicorp/vault/blob/main/ui/app/components/auth-form.js)
---