Welcome Guest, Not a member yet? Register   Sign In
IDEA: Centralized userId
#7

Yes, I think what I am proposing would be compatible with any authentication module, with little or no alteration. The point isn’t so much to hook the *services* performed by authentication and authorization (leave those to the libraries) but to curate the *results*. What I’m interested most specifically is a way of identifier “current user” independent of the module or library used to determine that user, so (I think I might have said this already) for example I could populated a “created by” field on a completely unrelated module.

I’ve been thinking on how I would do this if I did it myself (and might send over a PR as an example), but I’ve been thinking a simple set/get method to the session library along with predefined events. Then a module could call session()->user($loggedInUser) or $event->trigger(‘login’, $loggedInUser) and the framework would handle everything for other modules.
Reply


Messages In This Thread
IDEA: Centralized userId - by MGatner - 04-05-2019, 05:03 AM
RE: IDEA: Centralized userId - by albertleao - 04-05-2019, 07:22 AM
RE: IDEA: Centralized userId - by MGatner - 04-05-2019, 11:33 AM
RE: IDEA: Centralized userId - by dave friend - 04-05-2019, 04:00 PM
RE: IDEA: Centralized userId - by MGatner - 04-05-2019, 06:37 PM
RE: IDEA: Centralized userId - by mmx - 01-29-2020, 12:19 AM
RE: IDEA: Centralized userId - by ciadmin - 06-12-2019, 05:47 PM
RE: IDEA: Centralized userId - by MGatner - 06-16-2019, 11:36 AM
RE: IDEA: Centralized userId - by MGatner - 06-17-2019, 06:52 AM
RE: IDEA: Centralized userId - by tony.a - 10-17-2019, 04:01 AM
RE: IDEA: Centralized userId - by AndreiCurelaru - 10-17-2019, 05:08 AM
RE: IDEA: Centralized userId - by InsiteFX - 10-17-2019, 03:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB