{{#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 {{else if (eq this.error.status '401')}} Could not log in to provider {{else if (eq this.error.status '499')}} SSO log in window closed {{else}} Error {{/if}} {{else}} {{#if (eq this.error.status '403')}} Invalid token {{else if (eq this.error.status '404')}} No providers {{else}} Error {{/if}} {{/if}} {{#if this.value.Name}} {{#if (eq this.error.status '403')}} We received a token from your OIDC provider but could not log in to Consul with it. {{else if (eq this.error.status '401')}} The OIDC provider has rejected this access token. Please have an administrator check your auth method configuration. {{else if (eq this.error.status '499')}} The OIDC provider window was closed. Please try again. {{else}} {{this.error.detail}} {{/if}} {{else}} {{#if (eq this.error.status '403')}} The token entered does not exist. Please enter a valid token to log in. {{else if (eq this.error.status '404')}} No SSO providers are configured for that Partition. {{else}} {{this.error.detail}} {{/if}} {{/if}} {{/if}}
{{yield (assign exported (hash Method=TabState))}} Contact your administrator for login credentials.
{{/let}} {{/let}}