0

I would like to create a REST API where the authentification is managed by an ERP but I would like to protect the routes of my Spring app too.

The dolibarr has an endpoint for login which needs a mail and a password and returns an API key. How can I configure my Spring app to use Spring Security to manage the authentification from the ERP and still validate the token when my other endpoints are called?

I've heard about the AuthentificationManager but I don't understand clearly the usage and what can I do it.

If someone can provide me with some examples and explanations it will be appreciated.

I've read documentation about AuthentificationManager.

dur
  • 15,689
  • 25
  • 79
  • 125
Tokoro-San
  • 37
  • 1
  • 7

0 Answers0