Add json token login
This commit is contained in:
15
README.md
15
README.md
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user