Skip to content

[keycloak] incomplete login error handling for v2 themes #1437

@IvanI3

Description

@IvanI3

Currently for Keycloak catching only [div#input-error-username] (https://github.com/Versent/saml2aws/blob/master/pkg/provider/keycloak/keycloak.go#L37) when incorrect username entered. But, we alse need to catch incorrect password error: div#input-error-password. These htmls have different ids for auth errors:

Incorrect username form:

        <div class="pf-v5-c-helper-text__item pf-m-error" id="input-error-username">
          <span class="pf-v5-c-helper-text__item-text pf-m-error kc-feedback-text">
              Invalid username or password.
          </span>
        </div>

Incorrect password form:

        <div class="pf-v5-c-helper-text__item pf-m-error" id="input-error-password">
          <span class="pf-v5-c-helper-text__item-text pf-m-error kc-feedback-text">
              Invalid username or password.
          </span>
        </div>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions