By: Ramkumar Chandrasekaran user 13 Apr 2017 at 1:35 a.m. CDT

4 Responses
Ramkumar Chandrasekaran gravatar
As part of B2B scenario, we plan to use openid connnect with api gateway. As part of this it is possible to intercept custom script during getting openid token. The custom script needs to be called after openid token is generated and should store api gateway token information as part of userinfo. Thanks Regards Ramkumar.C

By Mohib Zico staff 13 Apr 2017 at 2:35 a.m. CDT

Mohib Zico gravatar
There are various types of interception scripts there in Gluu Server, most of them are there to 'enhance certain feature' before/at-the-time-of-login level. If you can share more details on your target, it will be helpful for us to answer.

By Ramkumar Chandrasekaran user 13 Apr 2017 at 10:38 a.m. CDT

Ramkumar Chandrasekaran gravatar
We need to intercept during creation of oidc token. As soon as the oidc request is done, custom script should call our api gateway to get its token and store the information in userinfo claims. When we are calling userinfo claims, the api gateway token is retrieved and use it for further processing. So the requirement is to integrate gluu oidc server with api gateway. Thanks Regards Ramkumar.C

By Michael Schwartz Account Admin 18 Apr 2017 at 3:36 p.m. CDT

Michael Schwartz gravatar
Have you looked at the dynamic scope script? This is probably the easiest way to add custom information to the Userinfo response. 1. Create a new scope with type dynamic 2. Add this new scope to your client 3. Use dynamic scope script to call your API, and put results in a claim returned by the scope.

By Ramkumar Chandrasekaran user 25 Apr 2017 at 1:11 p.m. CDT

Ramkumar Chandrasekaran gravatar
Please close the ticket.