Flow Context is used by the application to determine which flow path is being executed at any given time (ex. SAML, API), besides that it allows user
to easily exchange data between Onegini IDP's Person API and its extensions.
This guide will walk you through the steps required to integrate Flow Context Parameters with extension to Onegini IDP.
What is required?
To successfully complete this topic guide you need to ensure following prerequisites:
- configured Onegini IDP environment as described in quick start
- have access to Onegini IDP APIs and know the Persons API Basic Authentication credentials
Communication is based on http request headers, so if you want to send your own data to Onegini IDP Person API, besides standard headers for authentication you have to add http header on the extension side like shown below:
To read data sent as Flow Context on Onegini IDP extension side, you can use
FlowContextProvider.getCurrentContext method which returns most recent Flow Context.
Parameters that you have sent are available as