...
The diagram below illustrates the structure of this middle tier application and how to use an external store application to consume the WSO2 REST APIs. The middle tier application also known as the backend application will be responsible for handling the operations shown inside the red box.
Expand | ||
---|---|---|
| ||
|
The following are the three middle tier application functionalities handled by the middle tier(backend) application. Make sure that all these functions are implemented when you write your backend application.
- Invoking Admin REST APIs
(a) Password Grant
(b) Refresh Token Grant - Logging in and storing subscriber access tokens
- Invoking Store REST APIs
Info |
---|
To secure the connection between the front end application and the middle tier application, enable CORS for the backend application. When enabling CORS you need to make sure to only allow the host of your front end application so that users accessing from other hosts are unable to attack your system. |