Page MenuHomeSoftware Heritage

auth: Inform user when one of his bearer token expired in tokens UI
ClosedPublic

Authored by anlambert on Apr 7 2021, 6:44 PM.

Details

Summary

A Web API bearer token will expire after 30 days of inactivity.

So when a user tries to display a previously generated token from the
dedicated Web UI, check its validity and display an error message if
the token has expired.

Related to T3121

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D5445 (id=19473)

Rebasing onto cf69ace028...

Current branch diff-target is up to date.
Changes applied before test
commit b055eb6bb10a9495525bb8e05d7be473eef12dd0
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Wed Apr 7 18:38:35 2021 +0200

    auth: Inform user when one of his bearer token expired in tokens UI
    
    A Web API bearer token will expire after 30 days of inactivity.
    
    So when a user tries to display a previously generated token from the
    dedicated Web UI, check its validity and display an error message if
    the token has expired.
    
    Related to T3121

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/662/ for more details.

This revision is now accepted and ready to land.Apr 8 2021, 4:39 PM