{{! 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}} <: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}} {{t 'resources.auth-method.actions.make-primary'}} {{/unless}} {{#if B.data.isPrimary}} {{t 'resources.auth-method.actions.remove-as-primary'}} {{/if}} {{/if}}
{{else}} {{/if}} {{else}} {{/if}}