We have a host of services we power using a centralized Oauth. We want to integrate ERPNext into the services which involves using the centralized Oauth and authorization of the API calls using the token provided by the Oauth provider.
We have already created the Social Login Key and thus got the authentication working through the centralized Oauth service. Can someone provide us with a hint on how to authorize the API calls to ERPNext using the access tokens
- Calls to ERPNext from a frontend SPA/Native APP ( triggered by user so will want to track the changes done to docs at user level in ERPNext)
- Calls to ERPNext from backend services ( not triggered from user )
- Calls made using the same token to our backend services using the access token.