Description
Expected Behavior
My Spring BFF sort of almost works (I'm now in month 3 of trying to create a robust login page).
Explicit Logout
When I explicity logout, the following function gets called, and so the session is deleted from (i) namespace > sessions, (ii) namespace > sessions > expires, (iii) namespace > sessions > session id > idx, (iv) and namespace > sessions > expiration (sorted set)
Which calls this and this:
Which calls this and this:
Which both ultimately call this:
The 4 delete methods in here get called
The following also gets called to do an RP Initiated Logout (to end the session that exists with the Auth0 Authorization server too)
- the delete BFF session, delete 2 cookies here:
- the logout from the auth server here (RP Initiated Logout):
Natural BFF session expiration
But how do I do the above, when the BFF session reaches its natural expiration time.
When this happens Redis still leaves the following
Also the Auth0 session is never logged out from (so if the person logs in again via the Spring BFF, and the Auth0 session is still valid, and it will silently login without showing the Auth0 login page)