Authentification | Utilisateurs | Mot-de-passe |
---|---|---|
✔ | ✔ | ✔ |
This backend can be used to delegate authentication to some webservices.
In Manager, go in General Parameters
> Authentication modules
and choose REST for authentication, users and/or password modules.
Then you just have to set REST URL to provide wanted services:
Module | Parameter |
---|---|
Authentification | Authentication URL |
User database | User data URL |
Mot-de-passe | Password confirmation URL |
Mot-de-passe | Password change URL |
REST web services just have to respond with a “result” key in a JSON file. Auth/UserDB can add a “info” array to will be copied is session data (without reading “Exported variables”).
Parameter | Query | Response |
---|---|---|
Authentication URL | JSON file: {“user”:$user,“password”:$password} | JSON file: {“result”:true/false,“info”:{…}} |
User data URL | JSON file: {“user”:$user} | JSON file: {“result”:true/false,“info”:{“uid”:“dwho”,…}} |
Password confirmation URL | JSON file: {“user”:$user,“password”:$password} | JSON file: {“result”:true/false} |
Password change URL | JSON file: {“user”:$user,“password”:$password} | JSON file: {“result”:true/false} |