Token Based Authentication #30

Merged
kske merged 6 commits from f/token-based-authentication into develop 2020-09-19 14:31:02 +02:00
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 2020-09-19 13:39:58 +02:00
kske added the
client
L
server
labels 2020-09-19 13:39:58 +02:00
kske self-assigned this 2020-09-19 13:39:58 +02:00
kske requested review from delvh 2020-09-19 13:40:04 +02:00
kske requested review from mpk 2020-09-19 13:40:10 +02:00
kske added a new dependency 2020-09-19 13:57:27 +02:00
delvh approved these changes 2020-09-19 14:12:17 +02:00
delvh left a comment
Owner

👍

👍
kske merged commit 1ccf4354aa into develop 2020-09-19 14:31:02 +02:00
kske deleted branch f/token-based-authentication 2020-09-19 14:31:06 +02:00
This repo is archived. You cannot comment on pull requests.
No description provided.