Closed Bug 1019692 Opened 10 years ago Closed 10 years ago

Changes to user's data in login should be pushed into login cookies without a login/logout

Categories

(Webmaker Graveyard :: Login, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kate, Assigned: cade)

References

Details

(Whiteboard: [badges] [july25][webmaker-badges][launch])

Attachments

(5 files)

Perhaps a verify could ping the server every 15 minutes or so to check in changes have been made (admin status, etc)
Assignee: jon → kate
Whiteboard: [June13][webmaker-badges][launch] → [june13][webmaker-badges][launch]
Status: NEW → ASSIGNED
Whiteboard: [june13][webmaker-badges][launch] → [badges] [june13][webmaker-badges][launch]
Whiteboard: [badges] [june13][webmaker-badges][launch] → [badges] [june27][webmaker-badges][launch]
Chris, can you take this on this sprint?
Assignee: kate → cade
Is this kinda what we were looking for?

Basically, it tacks a timestamp onto ever session that's generated, and the verify route checks how old it is. If it's older than a configured time (15 minute default) it is refreshed.

We could potentially add in a param to force a refresh, which might be useful in some situations.
Attachment #8441598 - Flags: feedback?(kate)
Attachment #8441598 - Flags: feedback?(jon)
Comment on attachment 8441598 [details] [review]
https://github.com/mozilla/webmaker-auth/pull/11

the approach looks solid, I'm just wondering about the use of login credentials.
Attachment #8441598 - Flags: feedback?(jon) → feedback+
Yeah looks good to me
Attachment #8441598 - Flags: feedback?(kate) → feedback+
Comment on attachment 8441598 [details] [review]
https://github.com/mozilla/webmaker-auth/pull/11

Lets move this into code review.
Attachment #8441598 - Flags: review?(jon)
Attachment #8441598 - Flags: review?(jon) → review-
Attachment #8441598 - Flags: review- → review?(jon)
Whiteboard: [badges] [june27][webmaker-badges][launch] → [badges] [july11][webmaker-badges][launch]
Attachment #8441598 - Flags: review?(jon) → review+
oh wait, one nit: can you add the authLoginUrl to the example server?
Flags: needinfo?(cade)
Attachment #8451907 - Flags: review?(jon)
Flags: needinfo?(cade)
we'll need to update apps to use v0.1.2 of webmaker-auth
The Boolean logic around not refreshing if there's no authLoginURL is broken.

it's currently `if(a && !b || c) {}` and should be `if (a && (!b || c)) {}`

the former will execute even if 'a' is falsy, the latter behaves as expected.
Attachment #8451921 - Flags: review?(jon)
Attachment #8451921 - Flags: review?(jon) → review?(kate)
Attachment #8451907 - Flags: review?(jon) → review?(kate)
Attachment #8451907 - Flags: review?(kate) → review+
Attachment #8451921 - Flags: review?(kate) → review+
Comment on attachment 8453140 [details]
Webmaker Auth updates (links to Github PR's)

Everything looks good, make sure you set all those vars on prod and staging config and double check 'em
Attachment #8453140 - Flags: review?(kate) → review+
Attachment #8453230 - Flags: review?(kate)
Attachment #8453230 - Flags: review?(kate) → review+
Whiteboard: [badges] [july11][webmaker-badges][launch] → [badges] [july25][webmaker-badges][launch]
Blocks: 979637
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: