mirror of https://github.com/hashicorp/consul
78e9c0d2d9
* Make sure the mocks reflect the requested partition/namespace * Ensure partition is passed through to the HTTP adapter * Pass AuthMethod object through to TokenSource in order to use Partition * Change up docs and add potential improvements for future * Pass the query partition back onto the response * Make sure the OIDC callback mock returns a Partition * Enable OIDC provider mock overwriting during acceptance testing * Make sure we can enable partitions and SSO post bootup only required ...for now * Wire up oidc provider mocking * Add SSO full auth flow acceptance tests |
||
---|---|---|
.. | ||
README.mdx | ||
chart.xstate.js | ||
index.hbs | ||
index.js | ||
index.scss | ||
layout.scss | ||
pageobject.js | ||
skin.scss | ||
tabs.xstate.js |
README.mdx
# AuthForm AuthForm is a mostly template only form component specifically for user authentication for the UI. The component uses `TokenSource` which performs the necessary functionality all composed together using a StateChart to orchestrate the flow. Errors are contained/rendered within the form itself. ```hbs preview-template <AuthForm @dc={{'dc-1'}} @partition={{'default'}} @nspace={{'default'}} @onsubmit={{noop}} as |api|></AuthForm> ``` ## Arguments | Argument | Type | Default | Description | | --- | --- | --- | --- | | `dc` | `String` | | The name of the current datacenter | | `nspace` | `String` | | The name of the current namespace | | `partition` | `String` | | The name of the current partition | | `onsubmit` | `Function` | | The action to fire when the form is submitted | ## Exported API | Name | Type | Description | | --- | --- | --- | | `submit` | `Function` | Submit the form with a `{Name: 'oidc', Value: 'provider-name'}` which will eventually be passed as the `value` to the TokenSource | | `focus` | `Function` | Focus the input field | | `error` | `Function` | Fire an error to be displayed in the form | | `reset` | `Function` | Reset the form back to its original empty/non-error state | | `disabled` | `Boolean` | Whether the form is currently disabled or not | ## Slots | Name | Description | | --- | --- | | `content` | Provides a configurable slot underneath the form for addition of other login widgets, in our case SSO | ## See - [Component Source Code](./index.js) - [Template Source Code](./index.hbs) ---