Closed Bug 1203688 Opened 9 years ago Closed 9 years ago

Users cant login via oauth

Categories

(Firefox OS Graveyard :: Gaia::Bugzilla Lite, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: daleharvey, Assigned: daleharvey)

Details

Attachments

(1 file)

Looks like a recent change to bugzilla means the oauth type flow is now broken
Hey Byron, I didnt notice any being announced, are there any changes to this flow?
Flags: needinfo?(glob)
It fails with 

Auth delegation received an HTTP response other than 200 OK from auth consumer. Code: 404
Right, the auth delegation sends a post request now. Let me dig up the docs on that.
Hrm a POST request is pretty problematic, it means that it isnt possible to build a bugzilla client as a static application without a web server. I luckily havent already got rid of the bzlite web server so I will probably be able to live with it, but I was planning to move it to hosting on gh-pages. I assume a bunch of people who want to use the bugzilla api would also like to build their applications as static apps without a web server.
GET requests are more problematic as the api keys will show up in server logs. Bug 1175643 is the change that introduced this. The dogs are not up on read the docs yet, I'll get that sorted out right now.
Assignee: nobody → dylan
Flags: needinfo?(glob)
Here's how it works now. https://bmo.readthedocs.org/en/latest/integrating/auth-delegation.html

I'm closing out this bug. You can catch me on irc most of the time if you have any issues!
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Heh, I realize this is not a bugzilla bug. my apologies.
Assignee: dylan → nobody
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee: nobody → dale
This has been pushed to https://bzlite-staging.herokuapp.com/ to test (you can only use credentials @ https://github.com/mozilla-b2g/bzlite#running-bugzilla-lite to login, personal logins wont work)
Attachment #8660303 - Flags: review?(dietrich)
Comment on attachment 8660303 [details] [review]
https://github.com/mozilla-b2g/bzlite/pull/42

Adding Dylan since it looks like dietrich is busy, Dylan if you could take a quick look at this would be appreciated
Attachment #8660303 - Flags: review?(dylan)
Comment on attachment 8660303 [details] [review]
https://github.com/mozilla-b2g/bzlite/pull/42

I will get this reviewed before merging damnit :)
Attachment #8660303 - Flags: review?(glob)
Comment on attachment 8660303 [details] [review]
https://github.com/mozilla-b2g/bzlite/pull/42

It looks sane to me.

We had a B-Team work week last week, so nobody was really available to review it. Sorry about that. :)

r=dylan
Attachment #8660303 - Flags: review?(dylan) → review+
Attachment #8660303 - Flags: review?(glob)
No bother, thanks for the review

https://github.com/mozilla-b2g/bzlite/commit/1923e9c0a934acf2657ff9f138697410c3b88410
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Comment on attachment 8660303 [details] [review]
https://github.com/mozilla-b2g/bzlite/pull/42

Canceling review request since already landed - so maybe doesn't matter, but I had a few questions on the PR.
Attachment #8660303 - Flags: review?(dietrich)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: