Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace partition with split in BasicAuthentication #8790

Merged
merged 2 commits into from Dec 8, 2022

Conversation

j-bodek
Copy link
Contributor

@j-bodek j-bodek commented Dec 3, 2022

In this change, I replaced the partition method with split to increase code readability. Moreover now if the user provides credentials data without ':' AuthenticationFailed exception will be raised (to follow the basic authentication schema). Previously if the password was an empty string user could authenticate by passing credentials without a colon and password.

Copy link
Member

@auvipy auvipy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add tests as well?

@j-bodek j-bodek requested a review from auvipy December 4, 2022 08:42
@auvipy
Copy link
Member

auvipy commented Dec 7, 2022

should we update docs in related section for this change? can you please check?

@j-bodek
Copy link
Contributor Author

j-bodek commented Dec 7, 2022

I just checked API Clients, Authentication, and Testing sections, and no updates are needed.

@auvipy auvipy added this to the 3.15 milestone Dec 8, 2022
@auvipy auvipy merged commit 1355890 into encode:master Dec 8, 2022
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.

None yet

2 participants