You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been playing around with reqwest and I noticed that basic_auth wasn't working as I expected.
Here is some code below for spotify's oauth workflow.
The Spotify Endpoint here expects, Authorization: Basic <base64 encoded client_id:client_secret>
I thought that by passing None for the password that I could get this to work, but after printing headers manually, I realized I was unexpectedly sending requests w/ authorization: sensitive.
Obv this was a trivial fix, instead of using bearer just add the header myself, but I wanted to know if anyone else found this behavior a little odd.
Do you think that it'd be beneficial to add some documentation to the method here to note this behavior?
Regardless thanks for the work you guys put into reqwest :)
The text was updated successfully, but these errors were encountered:
Note that it doesn't send the string value "sensitive", the header value is just marked as being sensitive and so won't print the actual contents in a Debug context.
I've been playing around with reqwest and I noticed that basic_auth wasn't working as I expected.
Here is some code below for spotify's oauth workflow.
The Spotify Endpoint here expects,
Authorization: Basic <base64 encoded client_id:client_secret>
I thought that by passing None for the password that I could get this to work, but after printing headers manually, I realized I was unexpectedly sending requests w/
authorization: sensitive
.Obv this was a trivial fix, instead of using bearer just add the header myself, but I wanted to know if anyone else found this behavior a little odd.
Do you think that it'd be beneficial to add some documentation to the method here to note this behavior?
Regardless thanks for the work you guys put into reqwest :)
The text was updated successfully, but these errors were encountered: