Skip to content

Limit to 1 regex application while checking basic auth.#84

Merged
jjluczyn-fidesmo merged 1 commit intomasterfrom
fix_basicauth_check
Sep 8, 2022
Merged

Limit to 1 regex application while checking basic auth.#84
jjluczyn-fidesmo merged 1 commit intomasterfrom
fix_basicauth_check

Conversation

@jjluczyn-fidesmo
Copy link
Copy Markdown
Contributor

If a password contains the character ":" right now we return an exception, according to the Basic Auth Scheme it should be allowed in password and not in username. Since we receive the auth string as a whole we have no way of knowing if many colons are intended or not.
We can simply assume the string is valid and limit the split to 1 parition (.split() command limit parameter refers to the max number of resulting elements).

@jjluczyn-fidesmo jjluczyn-fidesmo changed the title Limit to 1 regex application. Limit to 1 regex application while checking basic auth. Sep 7, 2022
@martinpaljak
Copy link
Copy Markdown
Member

facepalm moment!

@jjluczyn-fidesmo jjluczyn-fidesmo merged commit 42c6618 into master Sep 8, 2022
@jjluczyn-fidesmo jjluczyn-fidesmo deleted the fix_basicauth_check branch September 8, 2022 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants