2023-03-01 09:39:41 -06:00
|
|
|
{{!
|
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
}}
|
|
|
|
|
|
2021-05-11 14:13:24 -04:00
|
|
|
{{page-title (t 'actions.authenticate')}}
|
2020-07-28 10:39:35 -04:00
|
|
|
|
2020-07-27 14:49:42 -04:00
|
|
|
<Rose::Layout::Centered>
|
2020-07-27 16:19:08 -04:00
|
|
|
<Rose::Layout::Page as |page|>
|
|
|
|
|
|
|
|
|
|
<page.body>
|
2021-04-07 12:53:09 -04:00
|
|
|
|
|
|
|
|
<Rose::Frame>
|
|
|
|
|
<:header>
|
2021-05-11 14:13:24 -04:00
|
|
|
<h2>{{t 'actions.authenticate'}}</h2>
|
2021-04-07 12:53:09 -04:00
|
|
|
</:header>
|
|
|
|
|
<:body>
|
2021-05-11 14:13:24 -04:00
|
|
|
<p>{{t
|
|
|
|
|
'auth.descriptions.authenticating-with-org'
|
|
|
|
|
name=@model.scope.displayName
|
|
|
|
|
}}</p>
|
2022-07-18 09:08:09 -07:00
|
|
|
|
2021-04-07 12:53:09 -04:00
|
|
|
<Rose::Dropdown
|
2021-05-11 14:13:24 -04:00
|
|
|
@text={{t 'actions.choose-different-org'}}
|
2021-09-16 14:03:26 -07:00
|
|
|
@icon='flight-icons/svg/org-16'
|
2021-05-11 14:13:24 -04:00
|
|
|
as |dropdown|
|
|
|
|
|
>
|
|
|
|
|
<dropdown.link @route='scopes.scope.authenticate' @model='global'>
|
|
|
|
|
{{t 'titles.global'}}
|
2021-04-07 12:53:09 -04:00
|
|
|
</dropdown.link>
|
2022-07-18 09:08:09 -07:00
|
|
|
|
2021-04-07 12:53:09 -04:00
|
|
|
{{#each this.sortedScopes as |scope|}}
|
2021-05-11 14:13:24 -04:00
|
|
|
<dropdown.link
|
|
|
|
|
@route='scopes.scope.authenticate'
|
|
|
|
|
@model={{scope.id}}
|
|
|
|
|
>
|
2021-04-07 12:53:09 -04:00
|
|
|
{{scope.displayName}}
|
|
|
|
|
</dropdown.link>
|
2022-07-18 09:08:09 -07:00
|
|
|
|
2021-04-07 12:53:09 -04:00
|
|
|
{{/each}}
|
|
|
|
|
</Rose::Dropdown>
|
|
|
|
|
|
|
|
|
|
<Rose::Separator />
|
|
|
|
|
|
|
|
|
|
<Rose::Nav::Tabs as |nav|>
|
2022-08-11 15:37:44 -07:00
|
|
|
{{#each @model.authMethods as |authMethod|}}
|
|
|
|
|
<nav.link
|
|
|
|
|
@route='scopes.scope.authenticate.method'
|
|
|
|
|
@model={{authMethod.id}}
|
|
|
|
|
>
|
|
|
|
|
{{#if authMethod.name}}
|
|
|
|
|
{{authMethod.name}}
|
|
|
|
|
{{else}}
|
|
|
|
|
{{t (concat 'resources.auth-method.types.' authMethod.type)}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
</nav.link>
|
|
|
|
|
{{/each}}
|
|
|
|
|
|
2021-04-07 12:53:09 -04:00
|
|
|
</Rose::Nav::Tabs>
|
|
|
|
|
|
|
|
|
|
{{#if @model.authMethods}}
|
|
|
|
|
{{outlet}}
|
|
|
|
|
{{/if}}
|
|
|
|
|
</:body>
|
|
|
|
|
</Rose::Frame>
|
2020-07-27 16:19:08 -04:00
|
|
|
</page.body>
|
|
|
|
|
|
|
|
|
|
</Rose::Layout::Page>
|
2022-10-06 11:41:12 -04:00
|
|
|
</Rose::Layout::Centered>
|