asp.net - How to Get a List of Logged in Users? -


i don't know how narrow down question further: using auth0 , webapi 2. need display list of users logged in. more specifically, auth0 issues token, token sent every request our webapi. imagine, need write token , associated id database every time request made controller specific token? can give me general idea of whether or not on right path here or should reading?

auth0 docs of little help, since seems unusual requirement. same with: http://www.asp.net/web-api/overview/security

i not concerned clientside. need way go on server.

edit: added part question in comments: know how revoke tokens, effective immediately. understand this, believe need understand how backend verifies token sent front end, , whether or not auth0's server gets called @ all.

i'm developer advocate @ auth0. let me see if can out :).

the whole idea of having api checks jwt have stateless api. being "logged in" doesn't exist in concept. jwts expire @ point in time, , that's checked when call api.

therefore, suggest following:

every time api call save jwt somewhere on memory. then, need logged in users, grab jwts have on list, , show not expired ones "logged in". also, should have cron goes every 5 minutes on list , cleans expires jwts. it's not "logged in" users, think it's close enough.

would work?

thanks


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -