{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: BUSL-1.1 }} {{t 'resources.auth-method.title_plural'}} {{t 'resources.auth-method.description'}} {{#if (can 'create model' this.scopeModel collection='auth-methods')}} {{t 'resources.auth-method.types.password'}} {{t 'resources.auth-method.types.oidc'}} {{#if (feature-flag 'ldap-auth-methods')}} {{t 'resources.auth-method.types.ldap'}} {{/if}} {{/if}} {{#if @model.doAuthMethodsExist}} {{#unless this.hasPrimaryAuthMethod}} {{t 'resources.auth-method.messages.no-primary-auth-method.title'}} {{t 'resources.auth-method.messages.no-primary-auth-method.description' }} {{/unless}} {{#if @model.authMethods}} <:head as |H|> {{t 'form.name.label'}} {{t 'form.type.label'}} {{t 'form.id.label'}} {{t 'resources.auth-method.titles.primary-method'}} {{t 'titles.actions'}} <:body as |B|> {{#each @model.authMethods as |data|}} {{! Name }} {{#if (can 'read auth-method' data)}} {{data.displayName}} {{else}} {{data.displayName}} {{/if}} {{data.description}} {{! Type }} {{! ID }} {{! isPrimary }} {{#if data.isPrimary}} {{/if}} {{! Actions }} {{#if (can 'makePrimary auth-method' data)}} {{#unless data.isPrimary}} {{t 'resources.auth-method.actions.make-primary'}} {{/unless}} {{#if data.isPrimary}} {{t 'resources.auth-method.actions.remove-as-primary' }} {{/if}} {{/if}} {{/each}} {{else}} {{/if}} {{else}} {{/if}}