Token Based Authentication #30

Merged
kske merged 6 commits from f/token-based-authentication into develop 2 years ago
kske commented 2 years ago
Owner

This pull requests implements a token based authentication mechanism, which allows the client to authenticate a user without repeated password entry.

If the "Stay signed in" checkbox inside the login scene is checked, an authentication token is generated by the server and sent to the client, which can later be used instead of the password. The token and the user who requested it are stored inside the last_login.db file which is global to the local database.

If an authentication token is present inside the local database, the client attempts token based authentication upon startup. If that fails, the login scene is displayed as before.

One user can use the same token on multipe devices, as it is reused when requested by a client.

The expiration date of a token defaults to 90 days after its creation, but can be adjusted inside the server.properties file.

Closes #28

This pull requests implements a token based authentication mechanism, which allows the client to authenticate a user without repeated password entry. If the "Stay signed in" checkbox inside the login scene is checked, an authentication token is generated by the server and sent to the client, which can later be used instead of the password. The token and the user who requested it are stored inside the `last_login.db` file which is global to the local database. If an authentication token is present inside the local database, the client attempts token based authentication upon startup. If that fails, the login scene is displayed as before. One user can use the same token on multipe devices, as it is reused when requested by a client. The expiration date of a token defaults to 90 days after its creation, but can be adjusted inside the `server.properties` file. Closes #28
kske added this to the v0.2-beta milestone 2 years ago
kske added the
client
L
server
labels 2 years ago
kske self-assigned this 2 years ago
kske requested review from delvh 2 years ago
kske requested review from DieGurke 2 years ago
kske added a new dependency 2 years ago
delvh approved these changes 2 years ago
delvh left a comment
Owner

👍

👍
kske merged commit 1ccf4354aa into develop 2 years ago
kske deleted branch f/token-based-authentication 2 years ago
This repo is archived. You cannot comment on pull requests.
Loading…
There is no content yet.