-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom authentication function feature
This commit adds a new AuthFunc field to the AuthOptions struct. The User and Password fields are left in-place for backwards compatibility. This construct shouldn't break any user code unless they are using unlabeled struct literals, in which case it should break on principle since you shouldn't do that on structs outside of your control.
- Loading branch information
1 parent
ae097d1
commit 723e9a2
Showing
3 changed files
with
143 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
723e9a2
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.
Recently updated the version of httpauth in an application and this commit did break our application as it no longer allows an empty password. It's a somewhat common practice to use an API key as the username with an empty password.
723e9a2
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.
@gaffneyc I'm going to revert this change, as the API key over Basic Auth is an approach that should be supported. Fixed in #18 and now back in master as of 2da839a.
723e9a2
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.
@elithrar Thank you for the quick response! It's really appreciated.