I seek your help and advice. By default, Drupal manages user authentification using the user module that resides in the “core/modules” and through the main Drupal Database. In my case, the user is authenticated through an external webservice, the process is as follow: 1- The user enters his credentials and click submit 2- the credentials are then sent to the webservice 3- the webservice checks the data(credentials) to the one he has in his database 4- upon validation the webservice sends a token (JWT) otherwise it sends 401 Unauthorized
PS: the admin will have normal login (through Drupal Database)
The question is how can I proceed to elaborate this process of authentification?
- Is there some existing modules that could help with this?
- should I override the existing user module or create a new module?
Any info will be of great help.
Sponsored by SupremePR