This content has been marked as final.
Show 1 reply
-
1. Re: Hard Coded URLs
jcacek Apr 8, 2013 7:21 AM (in response to dphanva)David, look at PicketLink Quickstarts. You can use a system property to set the URL, then the picketlink.xml looks like:
- IDP - https://github.com/picketlink2/picketlink-quickstarts/blob/master/saml/idp/src/main/webapp/WEB-INF/picketlink.xml
- SP - https://github.com/picketlink2/picketlink-quickstarts/blob/master/saml/employee/src/main/webapp/WEB-INF/picketlink.xml
For instance:
<PicketLinkSP xmlns="urn:picketlink:identity-federation:config:2.1" ServerEnvironment="tomcat" BindingType="REDIRECT" RelayState="someURL"> <IdentityURL>${idp.url::http://localhost:8080/idp/}</IdentityURL> <ServiceURL>${employee.url::http://localhost:8080/employee/}</ServiceURL> </PicketLinkSP>
When you start the server, you can set system properties using -Dname=value arguments:
java ... '-Didp.url=http://my-server.my-company.example/my-idp/' ...