-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass macaroons from cookiejar for HTTPS requests
The following passes the macaroons for all https requests if you logout and then login. As we rightly do not store the new password once you've changed it, we then expect to use the macaroons from the cookie jar. We do that correctly when passing to login, but we fail to do it when calling the HTTPS requests. The following fix just creates a new openFunc middleware that just adds the macaroons if the password and the length of macaroons is empty. For most if not all cases this should not be called, yet for uploading charms in production environments where the password for the user has been changed it clearly a benefit.
- Loading branch information
1 parent
92e59f4
commit 2528847
Showing
3 changed files
with
186 additions
and
16 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