{{#let (hash State=State Guard=Guard Action=ChartAction dispatch=dispatch state=state ) as |chart|}} {{#let (hash reset=(action dispatch "RESET") focus=this.focus disabled=(state-matches state "loading") error=(queue (action dispatch "ERROR") (action (mut this.error) value="error.errors.firstObject") ) submit=(queue (action (mut this.value)) (action dispatch "SUBMIT") ) ) as |exported|}} {{!TODO: Call this reset or similar }}
{{#if (can 'use SSO')}} {{/if}} {{#if this.error.status}}

{{#if this.value.Name}} {{#if (eq this.error.status '403')}} Consul login failed
We received a token from your OIDC provider but could not log in to Consul with it. {{else if (eq this.error.status '401')}} Could not log in to provider
The OIDC provider has rejected this access token. Please have an administrator check your auth method configuration. {{else if (eq this.error.status '499')}} SSO log in window closed
The OIDC provider window was closed. Please try again. {{else}} Error
{{this.error.detail}} {{/if}} {{else}} {{#if (eq this.error.status '403')}} Invalid token
The token entered does not exist. Please enter a valid token to log in. {{else if (eq this.error.status '404')}} No providers
No SSO providers are configured for that Partition. {{else}} Error
{{this.error.detail}} {{/if}} {{/if}}

{{/if}}
Log in
{{yield (assign exported (hash Method=TabState))}} Contact your administrator for login credentials.
{{/let}} {{/let}}