TeskaLabs / seacat-auth

SeaCat Auth provides authentication, authorization, identity management, session management and other access control features.
GNU General Public License v3.0
11 stars 7 forks source link

Anonymous Algorithmic Sessions #223

Closed ateska closed 1 year ago

ateska commented 1 year ago

To lower the number of sessions stored in the database, I want to introduce the concept of algorithmic sessions.

Algorithmic Session is not stored in the database, it can be however reconstructed from the session identification (Cookie, access token).

This is (currently) only for anonymous sessions.

byewokko commented 1 year ago

Concept

Caveats

Extending expiration

The token is immutable once issued. To extend its validity we would need to issue a new one with the same track ID. For cookie token this means adding a Set-Cookie header in introspection response, which is fine since this mechanism is already in place. For access token this would require an active token refresh call, which is not supported in Seacat Auth yet.