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)

x86
macOS
defect
Not set
normal

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: nobody → kate
Attachment #8386202 - Flags: review?(cade)
Attachment #8386203 - Flags: review?(cade)
Attachment #8386202 - Flags: review?(cade) → review+
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+
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?
Attachment #8386203 - Flags: review? → review?(cade)
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-
Attachment #8386203 - Flags: review- → review?(cade)
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.
Ok, added the check for profile in
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
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.
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 → ---
Blocks: 1016113
Depends on: 1019692
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 ago7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: