mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-28 14:11:10 +01:00
* updates auth method options route to use form and api client * updates auth method config and section routes to use api client and open api form * updates display attrs for auth method configs * fixes plugin identity util fields tests * fixes js lint error * updates enable-tune-form tests * hides specific form field for jwt/oidc auth config types * Revert "updates display attrs for auth method configs" This reverts commit 5d382f79276f56b3fdbe64fcbc9c8365c5f4b421. * Revert "fixes plugin identity util fields tests" This reverts commit 6d4acbe3228c796745f2dea6279c1540bb053c62. * fixes config section test * bumps api client version * updates auth config form options component to use proper endpoint * fixes enable tune form tests * fixes auth config form options tests * fixes type errors in snapshot-manage component * updates recover_source_path arg to undefined so it is not included in the query params * fixes remaining test failures related to user_lockout_config --------- Co-authored-by: Vault Automation <github-team-secure-vault-core@hashicorp.com>
42 lines
1.6 KiB
Handlebars
42 lines
1.6 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
<form {{on "submit" (perform this.onSubmit)}}>
|
|
<div class="box is-sideless is-fullwidth is-marginless">
|
|
<MessageError @model={{@form}} @errorMessage={{this.errorMessage}} />
|
|
<NamespaceReminder @mode="save" @noun="Auth Method" />
|
|
|
|
{{#each @form.tuneFields as |field|}}
|
|
<FormField data-test-field @attr={{field}} @model={{@form}} />
|
|
{{#if (and (eq field.name "config.listing_visibility") this.directLoginLink)}}
|
|
<div class="has-top-margin-negative-s has-bottom-margin-l is-flex-center">
|
|
<Hds::Text::Body @tag="p" @color="faint">UI login link:</Hds::Text::Body>
|
|
<Hds::Copy::Snippet @textToCopy={{this.directLoginLink}} />
|
|
</div>
|
|
{{/if}}
|
|
{{/each}}
|
|
|
|
{{#if this.supportsUserLockoutConfig}}
|
|
<hr class="has-top-margin-xl has-bottom-margin-l has-background-gray-200" />
|
|
<Hds::Text::Display @tag="h2" @size="400" @weight="bold" data-test-user-lockout-section>User lockout configuration</Hds::Text::Display>
|
|
<Hds::Text::Body @tag="p" @size="100" @color="faint" class="has-bottom-margin-m">
|
|
Specifies the user lockout settings for this auth mount.
|
|
</Hds::Text::Body>
|
|
{{#each @form.userLockoutConfigFields as |field|}}
|
|
<FormField @attr={{field}} @model={{@form}} />
|
|
{{/each}}
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="field is-grouped box is-fullwidth is-bottomless">
|
|
<Hds::Button
|
|
@text="Update options"
|
|
@icon={{if this.onSubmit.isRunning "loading"}}
|
|
type="submit"
|
|
disabled={{this.onSubmit.isRunning}}
|
|
data-test-submit
|
|
/>
|
|
</div>
|
|
</form> |