dianagudu / motley_cue

A service for mapping OIDC identities to local identities, with local user management
https://motley-cue.readthedocs.io/
MIT License
8 stars 3 forks source link

Long tokens #39

Closed dianagudu closed 2 years ago

dianagudu commented 2 years ago

Meant as a (first try) fix for #33.

TL;DR For long access tokens, hash AT and use hash as an SSH password instead of AT. Maintain a mapping between hash and AT in motley_cue, to be able to retrieve all information about the user from hash at all times.

How it works in more detail:

TODO: decide on backend to use based on performance & security differences between sqlite and sqlitedict (no real need to offer this option to admins).