-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add auth::{Authorization, AuthenticationScheme, BasicAuth, WwwAuthenticate, ProxyAuthorization, ProxyAuthenticate}
#252
Conversation
40a8fce
to
9414c5b
Compare
auth::{Authorization, AuthenticationScheme, BasicAuth}
auth::{Authorization, AuthenticationScheme, BasicAuth, WwwAuthenticate}
I've added support for |
auth::{Authorization, AuthenticationScheme, BasicAuth, WwwAuthenticate}
auth::{Authorization, AuthenticationScheme, BasicAuth, WwwAuthenticate, ProxyAuthorization, ProxyAuthenticate}
Okay; all implemented! |
However I did run into a UX issue with typed headers and surf: http-rs/surf#251 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason I had the impression this covered more than basic auth. Looks good, although I am not familiar with WWW-Authenticate
.
Basic auth certainly works when I make client requests to mailchimp.
One question I have is how to make Authorization and Proxy-Authorization work seamlessly.
Ref #99
Adds HTTP basic auth and related structs for authentication.
BasicAuth is a specialization of
Authorization
; because schemes like oauth are rather elaborate, we've chosen to put them into separate structs.Thanks!
Screenshots