The main file app.py shrinks ~33%~ 40% (from 99 lines to ~68~ 60 lines), and becomes much simpler to write.
Previously the signed-in session did not expire. Now the new implementation ~allows declaring session expiration in a one-liner. RBAC could be added in similar fashion, perhaps in next commit.~ automatically logs user out after their ID token expires. This will resolve #46, resolve #47.
The improvement above is achieved by moving many helpers into a new standalone helper library identity. After this move, this sample becomes minimalistic, and it is probably unnecessary to unit test this sample. We will close #65.
Improvements:
app.py
shrinks ~33%~ 40% (from 99 lines to ~68~ 60 lines), and becomes much simpler to write.identity
. After this move, this sample becomes minimalistic, and it is probably unnecessary to unit test this sample. We will close #65.