Inspiring from the quickstart "Dynamic resolution of IDP's", I am trying to access my application i.e. service provider from two different IDP's. One being "picketlink-federation-saml-idp-with-metadata" which is in my local JBoss and other IDP which is in Test environment.
I am using sp-metadata.xml to configure IDP and SP metadata and other details as mentioned in quickstarts. Local IDP has "idp-metadata.xml" which has it's own configuration. Currently I am giving the other IDP as default IDP in "sp-metadata.xml" and using local IDP as secondary IDP.
The main issue is, how to configure my SP with both IDP's and have successful login from both IDP's?
The other issue is:
- Navigate to local IDP through the browser. (http://localhost:8080/idp-metadata)
- Provide appropriate credentials.
- The request navigates to local IDP landing page having SP url.
- Click on SP url, should successfully lead to SP landing page.
But, what actually happening is, when clicked on SP url, it is re-directing to the other IDP and landing to its login page. Hence I am not able to login to the application with local IDP even if the credentials are correct.
I want to know if I am going in a correct path? Is there anything that I am missing that I am not able to login through secondary IDP. Is there any quickstart which can resolve my issue?