Closed
Bug 979637
Opened 10 years ago
Closed 7 years ago
Pass URLs for profile, account settings, and /me with user data from login server
Categories
(Webmaker Graveyard :: Login, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: kate, Assigned: kate)
References
Details
(Whiteboard: login2-phase4)
Attachments
(2 files)
Right now all our apps have to store config settings for the location of profile, accounts, and /me, which is crappy and prone to errors. Let's return those URLs with user data in webmaker-auth-client
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → kate
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8386202 -
Flags: review?(cade)
Assignee | ||
Updated•10 years ago
|
Attachment #8386203 -
Flags: review?(cade)
Updated•10 years ago
|
Attachment #8386202 -
Flags: review?(cade) → review+
Comment 3•10 years ago
|
||
Comment on attachment 8386203 [details] [review] https://github.com/mozilla/login.webmaker.org/pull/243 r+ as is - if you want to generate the url object per request, put it back on me for a look when it's ready.
Attachment #8386203 -
Flags: review?(cade) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Comment on attachment 8386203 [details] [review] https://github.com/mozilla/login.webmaker.org/pull/243 Actually I forgot this is actually supposed to be middleware, oops
Attachment #8386203 -
Flags: review+ → review?
Assignee | ||
Updated•10 years ago
|
Attachment #8386203 -
Flags: review? → review?(cade)
Comment 5•10 years ago
|
||
Comment on attachment 8386203 [details] [review] https://github.com/mozilla/login.webmaker.org/pull/243 If we get to this point [1] in the middleware stack, we're guaranteed to have a user object, are we not? [1]: https://github.com/mozilla/login.webmaker.org/pull/243/files#diff-7ba4e4b2917363abb7bc800f6e9413c6R11 also, why isn't github letting me comment on that diff :/
Attachment #8386203 -
Flags: review?(cade) → review-
Assignee | ||
Updated•10 years ago
|
Attachment #8386203 -
Flags: review- → review?(cade)
Comment 6•10 years ago
|
||
I wonder if you should check for the existence of the profile env valu before adding it to the response. For the time being Profile is technically supposed to be disabled on prod. but it might not hurt to have it in there anyways.
Comment 7•10 years ago
|
||
Comment on attachment 8386203 [details] [review] https://github.com/mozilla/login.webmaker.org/pull/243 see comment above ^^
Attachment #8386203 -
Flags: review?(cade) → review+
Comment 8•10 years ago
|
||
Commit pushed to master at https://github.com/mozilla/login.webmaker.org https://github.com/mozilla/login.webmaker.org/commit/8b017303ecbc4f344f55406b3fb6a73eabe78dd5 bug979637 - pass URLs with user object
Assignee | ||
Comment 9•10 years ago
|
||
Ok, added the check for profile in
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 10•10 years ago
|
||
Commit pushed to master at https://github.com/mozilla/login.webmaker.org https://github.com/mozilla/login.webmaker.org/commit/ed182f6f586c580c751940b5b6d4979a60e3110f Revert "bug979637 - pass URLs with user object" This reverts commit 8b017303ecbc4f344f55406b3fb6a73eabe78dd5.
Comment 11•10 years ago
|
||
Kate and I decided to back out these two patches after seeing several problems: - The webmaker-auth patch did not store the URLs in the users session, meaning they'd only be present the first time they logged in, and never after - Users who logged in before this patch would not have URLs present in their session cookies, with no way to update them. Since the auth cookies are valid for a year, we'd need to wait awhile for everyone to get updated data. Plus, we should probably figure out a way to update data (check if cookie is older than x time period, refresh it on /verify ?)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 12•7 years ago
|
||
I'm closing this bug as part of the planned deprecation of the Webmaker component on Bugzilla. If this issue is still in need of fixing, you can file it on Github, where we track login related issues for Thimble. https://github.com/mozilla/login.webmaker.org https://github.com/mozilla/id.webmaker.org
Status: REOPENED → RESOLVED
Closed: 10 years ago → 7 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•