Introduce token authentication #2431
commit455aa67e850e236be8cd442e32eec2b8fff15fb2
authorAndreas Gohr <andi@splitbrain.org>
Tue, 25 Apr 2023 22:45:28 +0000 (26 00:45 +0200)
committerAndreas Gohr <andi@splitbrain.org>
Thu, 12 Oct 2023 13:21:06 +0000 (12 15:21 +0200)
tree9dd37926821a68e936005597a1a7cad0ae6b8e28
parent045bc00a853c571a19cc7d64f41d74a393fbfab2
Introduce token authentication #2431

This generates a JWT token for users. This token can be sent in a Bearer
authentication header as a login mechanism. Users can reset their token
in the profile.

Note: a previously suggested implementation used a custom token format,
not JWT tokens
inc/Action/Authtoken.php [new file with mode: 0644]
inc/JWT.php [new file with mode: 0644]
inc/Ui/UserProfile.php
inc/auth.php
inc/lang/en/lang.php