Just in case if you have a requirement to retrieve the resource URL or the original URL the user accessed during authentication process in OAM 11g, then this post is for you. If you wish to redirect the user to different page post authentication/authorization success or failure and you would like to know the original URL in the redirected page then you will most likely hit this issue I am talking about.
Here is the typical use case:
OAM 11g provides res_url header in response headers. To do this, goto authentication/authorization policy, goto Responses. Specify the response name, response type (header) and response value ($request.res_url). See the documentation for more details.
The expected value of the response header is http://www.sso-test.com/oam, provided if you had configured host variation in webgate host identifier as www.sso-test.com.
However if you don’t have this host variation, all you would get is the host identifier ie., http://<<host-identifier>>:0/oam.
This seems more like a product bug, hence for a work around, make sure to add host variation in host identifier.
Please leave your comments if you witness different behavior.
If you want to learn more in Oracle Access Manager then register for our free minicourse by clicking on below image.
I am engulfed in Oracle Identity & Access Management domain. I have expertise on providing the optimized solutions for user provisioning, web access management, Single Sign-On and federation capabilities etc., I am also well versed with complex integrations within Identity Management and other product domains. I have expertise on building demos and implementation experience on products Oracle Access Manager, Oracle Adaptive Access Manager, Oracle Entitlement Server, Oracle Virtual Directory, Oracle Internet Directory etc., Look @ my blog: http://talkidentity.blogspot.com