Page MenuHomePhabricator

Make OAuth session persistent in CopyPatrol
Closed, ResolvedPublic8 Estimated Story Points

Description

After someone authenticates with OAuth in CopyPatrol, we should store their information in the browser and keep the session persistent so that they don't have to re-authenticate every time. Keep the session persistent for 90 days.

We'll need to store the final token generated by the OAuth exchange (either in a database or Redis).

Event Timeline

DannyH renamed this task from Make OAuth session persistant in CopyPatrol to Make OAuth session persistent in CopyPatrol.May 24 2016, 5:44 PM
kaldari set the point value for this task to 8.

May want to look at Crosswatch and see how they are doing things.

Try logging into https://tools.wmflabs.org/copypatrol (if you're already logged in, log out and in again).

I think this solution is quite nice and we can close this ticket for now.

Thanks to @bd808 :)

That's some nice voodoo. Is there any code for that or did Bryan just sacrifice a goat to the OAuth gods?

That's some nice voodoo. Is there any code for that or did Bryan just sacrifice a goat to the OAuth gods?

I revealed dark secrets of the codebase to @Niharika and she used them and documented them.

 ________
/         \
|          \
|           \
|            \
\        __\/_\
 \       \_/\_/\___
  \/  / |  \ | \   \
 _/ _/ _|  | \  \  |_
/  |  / /  / /  |  \ \_
| /  /  | |  \   \  \  \
DannyH claimed this task.
DannyH subscribed.

Yes, works. Thanks!