Add json token login

This commit is contained in:
Xbird
2022-10-31 15:43:57 +00:00
parent 85fe815ed9
commit a4c3db0f4e
9 changed files with 133 additions and 2 deletions

View File

@@ -101,6 +101,21 @@ This is a web panel to allow roleplay server to have an common interface for all
php bin/console cache:clear
```
## Login with json token
you need to encode a json string like this :
```php
openssl_encrypt('{"email":"test@test.fr"}', 'aes-256-cbc', 'LOGIN_JSON_AES_KEY', 0)
```
and then use the token with url :
/login/json?token=YOUR_ENCRYPTED_TOKEN_HERE
If the email exist on user list, the user is connected, if not, and error page is displayed
You need to setup the decryption key by env : LOGIN_JSON_AES_KEY
## Scalability
Vision is ready to be used in scaled architecture :