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

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

{{#if (can 'create collection' this.scopeModel collection='auth-methods')}} {{t 'resources.auth-method.types.password'}} {{t 'resources.auth-method.types.oidc'}} {{/if}} {{#if (or @model (has-resource-filter-selections 'scopes.scope.auth-methods' 'type') ) }} {{#with (resource-filter 'scopes.scope.auth-methods' 'type') as |filter| }} {{/with}} {{#if (has-resource-filter-selections 'scopes.scope.auth-methods' 'type') }} {{t 'actions.clear-all-filters'}} {{/if}} {{/if}} {{#if @model}} {{#if (feature-flag 'primary-auth-method')}} {{#unless this.hasPrimaryAuthMethod}} {{t 'resources.auth-method.messages.no-primary-auth-method.description' }} {{/unless}} {{/if}} {{t 'form.name.label'}} {{t 'form.type.label'}} {{t 'form.id.label'}} {{#if (feature-flag 'primary-auth-method')}} {{t 'titles.actions'}} {{/if}} {{#each @model as |authMethod|}} {{! Show link to auth method route if non-OIDC and when oidc-crud feature is enabled, otherwise show just the name (when the method is OIDC and oidc-crud is disabled) }} {{#if authMethod.isOIDC}} {{#if (feature-flag 'oidc-crud')}} {{#if (can 'read model' authMethod)}} {{authMethod.displayName}} {{else}} {{authMethod.displayName}} {{/if}} {{/if}} {{else}} {{#if (can 'read model' authMethod)}} {{authMethod.displayName}} {{else}} {{authMethod.displayName}} {{/if}} {{/if}}

{{authMethod.description}}

{{t (concat 'resources.auth-method.types.' authMethod.type)}} {{authMethod.id}} {{#if (feature-flag 'primary-auth-method')}} {{#if authMethod.isPrimary}} {{t 'states.primary'}} {{/if}} {{#unless authMethod.isPrimary}} {{t 'resources.auth-method.actions.make-primary'}} {{/unless}} {{#if authMethod.isPrimary}} {{t 'resources.auth-method.actions.remove-as-primary'}} {{/if}} {{/if}}
{{/each}}
{{else if (has-resource-filter-selections 'scopes.scope.auth-methods' 'type' )}} {{t 'descriptions.no-results'}} {{else}} {{#if (can 'list collection' this.scopeModel collection='auth-methods') }} {{! can list (at least): show default welcome message}} {{t 'resources.auth-method.messages.welcome.description'}} {{else if (can 'create collection' this.scopeModel collection='auth-methods' )}} {{! can create (only): show create-but-not-list welcome message}} {{t 'descriptions.create-but-not-list' resource=(t 'resources.auth-method.title_plural') }} {{else}} {{! can neither list nor create }} {{t 'descriptions.neither-list-nor-create' resource=(t 'resources.auth-method.title_plural') }} {{/if}} {{/if}}