2023-03-01 09:39:41 -06:00
|
|
|
{{!
|
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
}}
|
|
|
|
|
|
2021-05-11 15:39:59 -04:00
|
|
|
{{page-title (t 'actions.authenticate')}}
|
2020-11-13 17:10:56 -05:00
|
|
|
|
2021-02-10 21:26:30 -05:00
|
|
|
<main>
|
|
|
|
|
<BrandedCard
|
|
|
|
|
@title={{t 'actions.authenticate'}}
|
2021-05-11 15:39:59 -04:00
|
|
|
@description={{t
|
|
|
|
|
'auth.descriptions.authenticating-with-org'
|
|
|
|
|
name=@model.scope.displayName
|
|
|
|
|
}}
|
2021-02-10 21:26:30 -05:00
|
|
|
>
|
2020-11-25 15:18:17 -05:00
|
|
|
|
2021-02-10 21:26:30 -05:00
|
|
|
<Rose::Dropdown
|
2021-05-11 15:39:59 -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 15:39:59 -04:00
|
|
|
as |dropdown|
|
|
|
|
|
>
|
|
|
|
|
<dropdown.link @route='scopes.scope.authenticate' @model='global'>
|
|
|
|
|
{{t 'titles.global'}}
|
2020-11-25 15:18:17 -05:00
|
|
|
</dropdown.link>
|
2021-02-10 21:26:30 -05:00
|
|
|
{{#each this.sortedScopes as |scope|}}
|
2021-05-11 15:39:59 -04:00
|
|
|
<dropdown.link @route='scopes.scope.authenticate' @model={{scope.id}}>
|
2021-02-10 21:26:30 -05:00
|
|
|
{{scope.displayName}}
|
|
|
|
|
</dropdown.link>
|
|
|
|
|
{{/each}}
|
|
|
|
|
</Rose::Dropdown>
|
2020-11-25 15:18:17 -05:00
|
|
|
|
2021-02-10 21:26:30 -05:00
|
|
|
<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-02-10 21:26:30 -05:00
|
|
|
</Rose::Nav::Tabs>
|
2020-11-25 15:18:17 -05:00
|
|
|
|
2021-02-10 21:26:30 -05:00
|
|
|
{{#if @model.authMethods}}
|
|
|
|
|
{{outlet}}
|
2020-11-30 15:22:03 -05:00
|
|
|
|
2021-05-11 15:39:59 -04:00
|
|
|
<p class='change-origin'>
|
2022-07-27 10:25:01 -07:00
|
|
|
{{t 'cluster-url.connected-to'}}:
|
|
|
|
|
<code>{{this.clusterUrl}}</code>
|
2021-05-11 15:39:59 -04:00
|
|
|
<br />
|
2022-07-27 10:25:01 -07:00
|
|
|
<LinkTo @route='cluster-url'>
|
|
|
|
|
{{t 'actions.change-cluster-url'}}
|
2021-02-10 21:26:30 -05:00
|
|
|
</LinkTo>
|
|
|
|
|
</p>
|
2020-11-30 15:22:03 -05:00
|
|
|
|
2021-02-10 21:26:30 -05:00
|
|
|
{{/if}}
|
|
|
|
|
{{#unless @model.authMethods}}
|
|
|
|
|
<Rose::Layout::Centered>
|
|
|
|
|
<Rose::Message
|
2021-05-11 15:39:59 -04:00
|
|
|
@title={{t 'resources.auth-method.messages.none.title'}}
|
2021-09-16 14:03:26 -07:00
|
|
|
@icon='flight-icons/svg/alert-circle-16'
|
2021-05-11 15:39:59 -04:00
|
|
|
as |message|
|
|
|
|
|
>
|
2021-02-10 21:26:30 -05:00
|
|
|
<message.description>
|
2021-05-11 15:39:59 -04:00
|
|
|
{{t 'resources.auth-method.messages.none.description'}}
|
2021-02-10 21:26:30 -05:00
|
|
|
</message.description>
|
|
|
|
|
</Rose::Message>
|
|
|
|
|
</Rose::Layout::Centered>
|
|
|
|
|
{{/unless}}
|
2020-11-25 15:18:17 -05:00
|
|
|
|
2021-02-10 21:26:30 -05:00
|
|
|
</BrandedCard>
|
2022-10-06 11:41:12 -04:00
|
|
|
</main>
|