Files
threshold-ui/ui/admin/app/templates/scopes/scope/authenticate.hbs
T
hashicc 72fa6d86c4 Update copyright headers (#3161)
* chore: 🤖 remove hashi copyright .github headers and update config

* chore: 🤖 remove remaining hashicorp copyright headers

* Add missing copyright headers
2026-02-03 12:08:35 -05:00

93 lines
2.8 KiB
Handlebars

{{!
Copyright IBM Corp. 2021, 2026
SPDX-License-Identifier: BUSL-1.1
}}
{{page-title (t 'actions.authenticate')}}
<Rose::Layout::Centered>
<Rose::Layout::Page as |page|>
<page.body>
{{#if this.isOIDCRoute}}
{{outlet}}
{{else}}
<Rose::Frame>
<:header>
<Hds::Icon @name='boundary-color' @size='24' @isInline={{true}} />
<Hds::Text::Display @tag='h2' @size='400' @weight='bold'>{{t
'actions.authenticate'
}}</Hds::Text::Display>
</:header>
<:body>
<Hds::Text::Body @tag='p'>{{t
'auth.descriptions.authenticating-with-org'
name=@model.scope.displayName
}}</Hds::Text::Body>
<Hds::Dropdown @listPosition='bottom-left' as |dd|>
<dd.ToggleButton
@text={{t 'actions.choose-different-org'}}
@icon='org'
@color='secondary'
/>
<dd.Interactive
@route='scopes.scope.authenticate'
@model='global'
>
{{t 'titles.global'}}
</dd.Interactive>
{{#each this.sortedScopes as |scope|}}
<dd.Interactive
@route='scopes.scope.authenticate'
@model={{scope.id}}
>
{{scope.displayName}}
</dd.Interactive>
{{/each}}
</Hds::Dropdown>
<Hds::Separator />
<Rose::Nav::Tabs as |nav|>
{{#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}}
</Rose::Nav::Tabs>
{{#if @model.authMethods}}
{{outlet}}
{{else}}
<Rose::Layout::Centered>
<Hds::ApplicationState as |A|>
<A.Header
@title={{t 'resources.auth-method.messages.none.title'}}
@icon='alert-circle'
/>
<A.Body
@text={{t
'resources.auth-method.messages.none.description'
}}
/>
</Hds::ApplicationState>
</Rose::Layout::Centered>
{{/if}}
</:body>
</Rose::Frame>
{{/if}}
</page.body>
</Rose::Layout::Page>
</Rose::Layout::Centered>