Embedded resource gateway functionality¶
The Onegini Security Proxy can forward requests to a resource gateway. Also basic resource gateway functionality is available embedded in the Onegini Security Proxy. This embedded resource gateway functionality is responsible for validating an access token present on a resource call and mapping the result of this call on the call to the resource server. Topic guides in this section will explain how to configure the embedded resource gateway functionality and how to customize the request mapper.
Embedded resource gateway flow¶
This graph presented below shows the communication between Mobile Application (with Onegini SDK) and Resource Server via the Onegini Security Proxy for a resource call using the embedded resource gateway functionality.
Note: The main focus of this graph is to show the role of the embedded resource gateway functionality in the Mobile App - Resource Server communication so the Security Proxy functionality of decrypting incoming request was intentionally not presented.
The scenario:
- A client application (Onegini SDK) performs a resource call with an access token in the
Authorization
header. - The Onegini Security Proxy token validation functionality validates the access token at the Onegini Token Server.
- The original request details containing the token validation result is passed on to Request Mapper component.
- The Request Mapper modifies the request (it uses the token validation response which contains i.a. assigned user and scopes for that) in a way that it becomes a valid request (containing all required parameters/headers etc.) to call some specified Resource Server.
- The Onegini Security Proxy sends modified request to the Resource Server.