Problem
I am using PingFederate as key manager for my API Manager. While requesting authorization code for an existing client and resource owner, it was showing the following error message2016-12-13 11:34:03,363 tid:AOf2aORr5j9_X_PHbCTZu-toxwA DEBUG [org.sourceid.websso.servlet.IntegrationControllerServlet] POST: https:<IP>/as/yVKcc/resume/as/authorization.ping
2016-12-13 11:34:03,363 tid:AOf2aORr5j9_X_PHbCTZu-toxwA INFO [org.sourceid.websso.servlet.IntegrationControllerServlet] org.sourceid.websso.servlet.RenderPageException: Unable to resume processing because saved state was not found for key: BR6msnwXdx33oQX3imDRni_yVKcc - rendering state.not.found.error.page.template.html
Background
1. I have following two OAuth clients configured in PingFederate
2. OAuth client "2" was created with the following configuration
3. Using the following url, authorization code was requested
https://localhost:9031/as/authorization.oauth2?client_id=2&response_type=code&redirect_uri=http://localhost/test
4. PingFederate was showing login screen.
5. Even if the user credentials are valid, PingFederate shows the following error message
Solution
In my "Server Settings >> Federation Info" configuration, "IP" address was configured in "BASE URL" field but I was using "localhost" to request authorization url.
Configuration Steps
Check the "Server Configuration >> Server Settings >> Federation Info>> BASE URL"
You need to use the value configured in "BASE URL" field to request "Authorization Code".
If you configure "localhost" then Authorization code request URL should contain "localhost".
Ex:
https://localhost:9031/as/authorization.oauth2?client_id=2&response_type=code&redirect_uri=http://localhost/test
Comments
Post a Comment