Skip to content

OpenShift Authentication - Escape characters #229

@arefashrafi

Description

@arefashrafi

Title:

Passwords with escapable characters are not handled correctly in oc-auth.ts

Description:

When users attempt to authenticate with passwords containing escapable characters (such as quotes ", single quotes ', backslashes , etc.), authentication fails or behaves unexpectedly. This appears to be due to improper handling or escaping of these characters in the oc-auth.ts file.

Steps to Reproduce:

  1. Create an Azure service connection that uses basic authentication
  2. Use a password containing escapable characters, for example: pa"ss'wo\rd
  3. Attempt to authenticate using this service connection.
  4. Observe that authentication fails, even though the credentials are correct.

Expected Behavior:

Passwords containing escapable characters should be handled correctly and authentication should succeed if the credentials are valid.

Actual Behavior:

Authentication fails when passwords contain escapable characters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions