open-vault/ui/stories/auth-form.md

1.3 KiB

AuthForm

The AuthForm is used to sign users into Vault.

Param Type Default 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.
redirectTo String The name of the route to redirect to.
selectedAuth String The auth method that is currently selected in the dropdown.

Example

// All properties are passed in via query params.
  <AuthForm
    @wrappedToken={{wrappedToken}}
    @cluster={{model}}
    @namespace={{namespaceQueryParam}}
    @redirectTo={{redirectTo}}
    @selectedAuth={{authMethod}}/>```

**See**

- [Uses of AuthForm](https://github.com/hashicorp/vault/search?l=Handlebars&q=AuthForm)
- [AuthForm Source Code](https://github.com/hashicorp/vault/blob/master/ui/app/components/auth-form.js)

---