We have a supplier who uses the following authentication method, within the REST(JSON) framework:
1.) A Login function which requires a username and password.
2.) This then returns a bearer token which lasts an hour.
3.) The system also provided a refresh token which is active for 24hr and can be used to provide a new bearer token.
We are on a multi-tenant environment.
Can any suggest any way this can be achieved, we have already thought of using an external web service (Using OAuth 2.0) , which will operate as a bridge between M3 and our supplier.