Authentication Methods.
RxVantage endpoints expect you to first authorize against RxVantage API. You can authorize in two different ways:
-
User Authentication
User Authentication can be further supported via using RxVantage login or your own identity service (IDMS) to login the user on your site.
Each endpoint is set up to support receiving either a machine or user JWT token. Endpoints are configured for the particular JWT token type. For example, routes starting with /machine expect machine JWT tokens. Similarly routes starting with /user expect a user JWT token.
Depending on the type of endpoint you may try to invoke, your first will need to request the correct JWT token from RxVantage. The process is slightly different depending on the endpoint you are trying to integrate with.
Its very important to use the correct token when calling the RxVantage API. If you call an endpoint with the incorrect token, you will receive a 403 Unauthorized response.