Skip to content

Validate LDAP auth provider form using vee-validate #17778

@rak-phillip

Description

@rak-phillip

The LDAP auth provider form passes :validation-passed="true" unconditionally to CruResource. As a result:

  • The Enable button is never disabled, regardless of field state
  • Fields marked as required have no validation logic behind them
  • The user has no client-side indication of what is wrong before form submission
  • No inline error tooltip appears on blur for any field

Expected behavior

  • Blurring an empty required field should display an inline error tooltip
  • The Save button should be disabled until all required fields contain a value
  • The validation state driving the button and the inline error hints should come from the same source so they are always consistent with each other

Steps to reproduce

  • Navigate to Users & Authentication => Auth Providers and select a LDAP auth provider
  • Leave all fields empty
  • Observe that the save button is active and clickable
  • Click the save button. The form submits and returns a server error instead of validating locally
  • Clear an individual field and click elsewhere. No error tooltip appears

Acceptance criteria

  • All required fields show an inline error tooltip when left empty and blurred
  • The save button is disabled while any required field is empty
  • :validation-passed is no longer hardcoded to true
  • Validation logic is consistent with the OIDC form

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions