Closed
Bug 671948
Opened 13 years ago
Closed 7 years ago
Add ability to make authenticated requests
Categories
(Add-on SDK Graveyard :: General, enhancement, P2)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: st3fan, Unassigned)
References
Details
It is currently difficult to make authenticated requests with the requests library. There is currently only the option to manually set an Auth header, which is pretty tricky since you need to access Base64 (for Basic) or hashing algorithms (for Digest) and correctly construct the header. Ideally the request just has a username and password property that you can set.
Updated•13 years ago
|
Priority: -- → P2
Target Milestone: --- → Future
Marking anything that potentially looks like a feature request as "enhancement", sorry for the bugspam. :)
Severity: normal → enhancement
Target Milestone: Future → 1.2
Comment 2•13 years ago
|
||
It would be great to do that. FF would be than ahead of other competition with support for 3rd parties as AgileBits and their 1Password app.
Comment 3•13 years ago
|
||
Note: after further investigation, I realized that the enhancement described by this bug isn't actually what 1Password needs to implement their desired extension of HTTP auth dialogs. So I did some research and posted to the AgileBits forum some suggestions for how to implement it: http://forum.agilebits.com/index.php?/topic/6702-375-support-for-firefox-6/page__p__40572#entry40572
(Pushing all open bugs to the --- milestone for the new triage system)
Target Milestone: 1.2 → ---
Comment 6•12 years ago
|
||
I think it would be beneficial to include a way of doing HTTP Basic Auth in the request module doing something like:
> Request({
> url: "https://example.com/",
> auth: "basic"
> username: "wraithan",
> password: "ohai",
> onComplete: function (response) {
> console.log(response.text);
> }
> });
or maybe just offering a basic_auth field that one could fill in with "wraithan:ohai".
If this is desired and anyone has a preferred interface or deviations on what I have put forth, I'd gladly implement it.
Comment 7•12 years ago
|
||
Could also offer an auth callback for APIs/sites that request auth. Lots of APIs would work with that though not all. So offering both would be good.
Updated•12 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Updated•11 years ago
|
Blocks: sdk/request
Comment 8•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•