{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 }}

{{t 'resources.auth-method.title_plural'}}

{{t 'resources.auth-method.description'}}

{{#if (can 'create model' this.scopeModel collection='auth-methods')}} {{#if (feature-flag 'ldap-auth-methods')}} {{/if}} {{/if}} {{#if @model.authMethodsExist}} {{#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}} <:body as |B|> {{#if (can 'read auth-method' B.data)}} {{B.data.displayName}} {{else}} {{B.data.displayName}} {{/if}}

{{B.data.description}}

{{#if B.data.isPrimary}} {{/if}} {{#if (can 'makePrimary auth-method' B.data)}} {{#unless B.data.isPrimary}} {{/unless}} {{#if B.data.isPrimary}} {{/if}} {{/if}}
{{else}} {{/if}} {{else}} {{/if}}