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

Pass authentication as a header #260

Merged
merged 1 commit into from
Dec 18, 2023
Merged

Pass authentication as a header #260

merged 1 commit into from
Dec 18, 2023

Conversation

LKajan
Copy link
Contributor

@LKajan LKajan commented Dec 16, 2023

Previously special characters in the username or password could lead to a crash during address parsing. This pull request addresses the issue by manually forming the Authorization header value, allowing for special characters.

An alternative approach would have been to quote all special characters from the username and password using urllib.parse.quote() and then utilizing the quoted values in the URI. However, the current approach was chosen over this alternative because it eliminates the need to modify the server_url if it is provided as a parameter. Additionally, this method avoids unnecessary quote-unquote steps.

Resolves #259

Previously special characters in username or password crashed address
parsing. Form the Authorization header value manually to allow special
characters.
Copy link
Collaborator

@Gustry Gustry left a comment

Choose a reason for hiding this comment

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

Thanks, good catch !
I'm surprised user&password were sent in URL itself before.

@3nids 3nids merged commit 942832d into opengisch:master Dec 18, 2023
2 of 3 checks passed
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.

# character in osgeo password crashes the release
3 participants