open-consul/ui/packages/consul-ui/app/components/oidc-select
John Cowen 3d1b859533
ui: Support for SSO with Admin Partitions (#11604)
* Upgrade AuthForm and document current state a little better
* Hoist SSO out of the AuthForm
* Bare minimum admin partitioned SSO

also:

ui: Tabbed Login with Token or SSO interface (#11619)

- I upgraded our super old, almost the first ember component I wrote, to use glimmer/almost template only. This should use slots/contextual components somehow, but thats a bigger upgrade so I didn't go that far.
- I've been wanting to upgrade the shape of our StateChart component for a very long while now, here its very apparent that it would be much better to do this sooner rather than later. I left it as is for now, but there will be a PR coming soon with a slight reshaping of this component.
- Added a did-upsert modifier which is a mix of did-insert/did-update
- Documentation added/amended for all the new things.
2021-11-24 14:53:12 +00:00
..
README.mdx ui: Support for SSO with Admin Partitions (#11604) 2021-11-24 14:53:12 +00:00
chart.xstate.js ui: Support for SSO with Admin Partitions (#11604) 2021-11-24 14:53:12 +00:00
index.hbs ui: Support for SSO with Admin Partitions (#11604) 2021-11-24 14:53:12 +00:00
index.js ui: Support for SSO with Admin Partitions (#11604) 2021-11-24 14:53:12 +00:00
index.scss ui: Support for SSO with Admin Partitions (#11604) 2021-11-24 14:53:12 +00:00
layout.scss ui: Support for SSO with Admin Partitions (#11604) 2021-11-24 14:53:12 +00:00
skin.scss ui: Colocate remaining CSS components to the app/components folder (#10328) 2021-06-23 09:19:35 +01:00

README.mdx

# OidcSelect

OidcSelect is a mostly template only form component specifically providing a
way for the user to select their OIDC provider for their available options
which can depend upon whether they have any OIDC providers confifured for
their partition. The necessary functionality/data retrieval is all composed
together using a StateChart to orchestrate the flow.

unlike most other components which require 'buckets' specifying, this
component **does not** require a `@partition` argument as this needs to be
provided by the user.


```hbs preview-template
<OidcSelect
  @dc={{'dc-1'}}
  @nspace={{'default'}}
  @disabled={{false}}
  @onchange={{noop}}
  @onerror={{noop}}
/>
```

## Arguments

| Argument | Type | Default | Description |
| --- | --- | --- | --- |
| `dc` | `String` | | The name of the current datacenter |
| `nspace` | `String` | | The name of the current namespace |
| `onchange` | `Function` |  | The action to fire when an oidc provider has been selected/changed |

## See

- [Component Source Code](./index.js)
- [Template Source Code](./index.hbs)

---