Thanks for the answer, @jmangelo. Yes, something along those lines would probably work. The limitations/challenges with that is obviously that the selected context is not really bound the Auth0-session in any way. That means that forcing a new context selection upon expired or logged out Auth0-session is a bit tricky, but I have some ideas on how to get it working.
I’d still like to put in a couple of feature requests though.
- A place to store custom session data. Could be handy in quite a lot of scenarios I think.
- Exposing some kind of Auth0-sessionId on the
context
object passed to the rules.