Skip to content

WSSE token needs to be string not bytes#179

Closed
pearmaster wants to merge 1 commit intohttplib2:masterfrom
pearmaster:patch-1
Closed

WSSE token needs to be string not bytes#179
pearmaster wants to merge 1 commit intohttplib2:masterfrom
pearmaster:patch-1

Conversation

@pearmaster
Copy link
Copy Markdown
Contributor

When _wsse_username_token returned bytes, the header would look like

UsernameToken Username="username", PasswordDigest="b'Ue8bnW/FAKEWubcqChWs='", Nonce="673552abeefb06a6", Created="2020-09-29T14:42:57Z"

And the extra b' at the beginning of the password digest would cause authentication to fail.

When `_wsse_username_token` returned bytes, the header would look like
```
UsernameToken Username="username", PasswordDigest="b'Ue8bnW/FAKEWubcqChWs='", Nonce="673552abeefb06a6", Created="2020-09-29T14:42:57Z"
```
And the extra `b'` at the beginning of the password digest would cause authentication to fail.
temoto added a commit that referenced this pull request Sep 29, 2020
When `_wsse_username_token` returned bytes, the header would look like
```
UsernameToken Username="username", PasswordDigest="b'Ue8bnW/FAKEWubcqChWs='", Nonce="673552abeefb06a6", Created="2020-09-29T14:42:57Z"
```
And the extra `b'` at the beginning of the password digest would cause authentication to fail.

#179

Co-Authored-By: Sergey Shepelev <temotor@gmail.com>
Copy link
Copy Markdown
Member

@temoto temoto left a comment

Choose a reason for hiding this comment

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

Hi and welcome.

Thank you. Sorry turns out WSSE wasn't working for a while.

I'm waiting for tests on CI and will merge this together with regression test on different branch because github won't let me push to yours. So don't pay much attention to PR status, your work is accepted keeping authorship.

@temoto temoto closed this Sep 29, 2020
@temoto
Copy link
Copy Markdown
Member

temoto commented Sep 29, 2020

Merged in 595e248

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