This fourth part of Deployment Example: SAML v2 Using Sun OpenSSO Enterprise 8.0 contains the procedures used to configure for SAML v2 communications and test the configurations between the environment we prepared in Part III, Building the Service Provider Environment and Part II, Building the Identity Provider Environment. It contains the following chapters.
This deployment consists of a service provider and an identity provider that communicate for purposes of federation using SAML v2. Towards this end, we configure each instance of OpenSSO Enterprise (respectively) acting as the identity provider and the service provider as hosted. Additionally, we configure each hosted instance with the necessary information to communicate with the remote provider — in essence, with each other. In this chapter, we configure the instances of OpenSSO Enterprise as SAML v2 providers.
11.1 Configuring OpenSSO Enterprise as the Hosted Identity Provider
11.2 Configuring OpenSSO Enterprise as the Hosted Service Provider
11.3 Configuring the Hosted Service Provider to Communicate with the Remote Identity Provider
This section provides the procedures for configuring OpenSSO Enterprise on the identity provider side as a hosted identity provider using the Common Tasks wizard. Use the following list of procedures as a checklist for completing the task.
Configure the instance of OpenSSO Enterprise deployed in Part II, Building the Identity Provider Environment and situated behind Load Balancer 2, as a hosted identity provider. This procedure creates the idpcot circle of trust.
Access https://lb2.idp-example.com:1081/opensso/console from a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
The Common Tasks tab is displayed.
Click Create Hosted Identity Provider under Create SAML v2 Providers.
The Create a SAML v2 Identity Provider on this Server page is displayed.
Make the following changes on the Create a SAML v2 Identity Provider on this Server page.
Select the No radio button for Do you have metadata for this provider?
Under metadata properties, type https://lb2.idp-example.com:1081/opensso as the value for Name.
Under metadata properties, select test as the value for Signing Key.
Under Circle of Trust properties, type idpcot as the value for the New Circle of Trust.
Accept the default values for any remaining properties.
Click Configure.
Select Finish to end the task.
This instance of OpenSSO Enterprise is now configured as a SAML v2 identity provider.
Click the Federation tab to verify the hosted identity provider configurations.
Confirm that idpcot was created under the Circle of Trust table with one entity: https://lb2.idp-example.com:1081/opensso|saml2.
Confirm that https://lb2.idp-example.com:1081/opensso|saml2 was created under the Entity Providers table.
This optional procedure displays, in a browser window, the standard and extended metadata for the hosted identity provider in XML format. The XML can be viewed as displayed or copied into a text file and saved.
This procedure assumes that you have just completed To Configure the Hosted Identity Provider and are still logged in to the OpenSSO Enterprise console.
Access https://lb2.idp-example.com:1081/opensso/ssoadm.jsp from the web browser.
ssoadm.jsp is a Java Server Page (JSP) version of the ssoadm command line interface. In this procedure it is used to display the hosted identity provider metadata.
Click export-entity.
The export-entity page is displayed.
Enter the following values for each option and click Submit.
The EntityID is the unique uniform resource identifier (URI) used to identify a particular provider. In this deployment, type https://lb2.idp-example.com:1081/opensso.
The OpenSSO Enterprise realm in which the data resides. In this deployment as all data resides in the top-level realm, type /.
Leave this unchecked.
Set this flag to export the standard metadata for the provider.
Set this flag to export the extended metadata for the provider.
Type saml2.
View the XML-formatted metadata in the browser window.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <EntityDescriptor entityID="https://lb2.idp-example.com:1081/opensso" xmlns="urn:oasis:names:tc:SAML:2.0:metadata"> <IDPSSODescriptor WantAuthnRequestsSigned="false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"> <KeyDescriptor use="signing"> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:X509Data> <ds:X509Certificate> MIICQDCCAakCBEeNB0swDQYJKoZIhvcNAQEEBQAwZzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNh bGlmb3JuaWExFDASBgNVBAcTC1NhbnRhIENsYXJhMQwwCgYDVQQKEwNTdW4xEDAOBgNVBAsTB09w ZW5TU08xDTALBgNVBAMTBHRlc3QwHhcNMDgwMTE1MTkxOTM5WhcNMTgwMTEyMTkxOTM5WjBnMQsw CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEUMBIGA1UEBxMLU2FudGEgQ2xhcmExDDAK BgNVBAoTA1N1bjEQMA4GA1UECxMHT3BlblNTTzENMAsGA1UEAxMEdGVzdDCBnzANBgkqhkiG9w0B AQEFAAOBjQAwgYkCgYEArSQc/U75GB2AtKhbGS5piiLkmJzqEsp64rDxbMJ+xDrye0EN/q1U5Of+ RkDsaN/igkAvV1cuXEgTL6RlafFPcUX7QxDhZBhsYF9pbwtMzi4A4su9hnxIhURebGEmxKW9qJNY Js0Vo5+IgjxuEWnjnnVgHTs1+mq5QYTA7E6ZyL8CAwEAATANBgkqhkiG9w0BAQQFAAOBgQB3Pw/U QzPKTPTYi9upbFXlrAKMwtFf2OW4yvGWWvlcwcNSZJmTJ8ARvVYOMEVNbsT4OFcfu2/PeYoAdiDA cGy/F2Zuj8XJJpuQRSE6PtQqBuDEHjjmOQJ0rV/r8mO1ZCtHRhpZ5zYRjhRC9eCbjx9VrFax0JDC /FfwWigmrW0Y0Q== </ds:X509Certificate> </ds:X509Data> </ds:KeyInfo> </KeyDescriptor> <ArtifactResolutionService index="0" isDefault="true" Binding= "urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location= "https://lb2.idp-example.com:1081/opensso/ArtifactResolver/metaAlias/idp"/> <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings: HTTP-Redirect" Location="https://lb2.idp-example.com:1081/opensso/ IDPSloRedirect/metaAlias/idp" ResponseLocation=" https://lb2.idp-example.com:1081/opensso/IDPSloRedirect/metaAlias/idp"/> <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings: HTTP-POST" Location="https://lb2.idp-example.com:1081/opensso/IDPSloPOST/ metaAlias/idp" ResponseLocation="https://lb2.idp-example.com:1081/opensso/ IDPSloPOST/metaAlias/idp"/> <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://lb2.idp-example.com:1081/opensso/IDPSloSoap/metaAlias/idp"/> <ManageNameIDService Binding="urn:oasis:names:tc:SAML:2.0:bindings: HTTP-Redirect" Location="https://lb2.idp-example.com:1081/opensso/ IDPMniRedirect/metaAlias/idp" ResponseLocation= "https://lb2.idp-example.com:1081/opensso/IDPMniRedirect/metaAlias/idp"/> <ManageNameIDService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://lb2.idp-example.com:1081/opensso/IDPMniPOST/metaAlias/idp" ResponseLocation="https://lb2.idp-example.com:1081/opensso/ IDPMniPOST/metaAlias/idp"/> <ManageNameIDService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://lb2.idp-example.com:1081/opensso/IDPMniSoap/metaAlias/idp"/> <NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</NameIDFormat> <NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</NameIDFormat> <NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</NameIDFormat> <NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</NameIDFormat> <SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://lb2.idp-example.com:1081/opensso/SSORedirect/metaAlias/idp"/> <SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://lb2.idp-example.com:1081/opensso/SSOPOST/metaAlias/idp"/> <SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://lb2.idp-example.com:1081/opensso/SSOSoap/metaAlias/idp"/> <NameIDMappingService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://lb2.idp-example.com:1081/opensso/NIMSoap/metaAlias/idp"/> <AssertionIDRequestService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://lb2.idp-example.com:1081/opensso/AIDReqSoap/ IDPRole/metaAlias/idp"/> <AssertionIDRequestService Binding="urn:oasis:names:tc:SAML:2.0:bindings:URI" Location="https://lb2.idp-example.com:1081/opensso/AIDReqUri/ IDPRole/metaAlias/idp"/> </IDPSSODescriptor> </EntityDescriptor> Entity descriptor was exported to file, web. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <EntityConfig entityID="https://lb2.idp-example.com:1081/opensso" hosted="true" xmlns="urn:sun:fm:SAML:2.0:entityconfig"> <IDPSSOConfig metaAlias="/idp"> <Attribute name="wantNameIDEncrypted"> <Value/> </Attribute> <Attribute name="AuthUrl"> <Value/> </Attribute> <Attribute name="nameIDFormatMap"> <Value>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified=</Value> <Value>urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos=</Value> <Value>urn:oasis:names:tc:SAML:1.1:nameid-format: WindowsDomainQualifiedName=</Value> <Value>urn:oasis:names:tc:SAML:1.1:nameid-format: X509SubjectName=</Value> <Value>urn:oasis:names:tc:SAML:1.1:nameid-format: emailAddress=mail</Value> </Attribute> <Attribute name="cotlist"> <Value>idpcot</Value> </Attribute> <Attribute name="saeIDPUrl"> <Value>https://lb2.idp-example.com:1081/opensso/idpsaehandler/ metaAlias/idp</Value> </Attribute> <Attribute name="idpAuthncontextClassrefMapping"> <Value>urn:oasis:names:tc:SAML:2.0:ac:classes: PasswordProtectedTransport|0||default</Value> </Attribute> <Attribute name="appLogoutUrl"> <Value/> </Attribute> <Attribute name="idpAccountMapper"> <Value>com.sun.identity.saml2.plugins. DefaultIDPAccountMapper</Value> </Attribute> <Attribute name="autofedEnabled"> <Value>false</Value> </Attribute> <Attribute name="signingCertAlias"> <Value>test</Value> </Attribute> <Attribute name="assertionCacheEnabled"> <Value>false</Value> </Attribute> <Attribute name="idpAuthncontextMapper"> <Value>com.sun.identity.saml2.plugins. DefaultIDPAuthnContextMapper</Value> </Attribute> <Attribute name="assertionEffectiveTime"> <Value>600</Value> </Attribute> <Attribute name="wantMNIResponseSigned"> <Value/> </Attribute> <Attribute name="wantMNIRequestSigned"> <Value/> </Attribute> <Attribute name="attributeMap"> <Value>EmailAddress=mail</Value> <Value>Telephone=telephonenumber</Value> </Attribute> <Attribute name="discoveryBootstrappingEnabled"> <Value>false</Value> </Attribute> <Attribute name="basicAuthUser"> <Value/> </Attribute> <Attribute name="idpAttributeMapper"> <Value>com.sun.identity.saml2.plugins. DefaultIDPAttributeMapper</Value> </Attribute> <Attribute name="idpECPSessionMapper"> <Value>com.sun.identity.saml2.plugins. DefaultIDPECPSessionMapper</Value> </Attribute> <Attribute name="basicAuthPassword"> <Value/> </Attribute> <Attribute name="basicAuthOn"> <Value>false</Value> </Attribute> <Attribute name="wantLogoutResponseSigned"> <Value/> </Attribute> <Attribute name="wantLogoutRequestSigned"> <Value/> </Attribute> <Attribute name="encryptionCertAlias"> <Value/> </Attribute> <Attribute name="wantArtifactResolveSigned"> <Value/> </Attribute> <Attribute name="assertionNotBeforeTimeSkew"> <Value>600</Value> </Attribute> <Attribute name="autofedAttribute"> <Value/> </Attribute> <Attribute name="saeAppSecretList"/> </IDPSSOConfig> </EntityConfig> Entity configuration was exported to file, web.
Log out of the OpenSSO Enterprise console.
This section provides the procedures for configuring OpenSSO Enterprise on the service provider side as a hosted service provider using the Common Tasks wizard. Use the following list of procedures as a checklist for completing the task.
Configure the instance of OpenSSO Enterprise deployed in Part III, Building the Service Provider Environment, situated behind Load Balancer 2 on the service provider side, as a hosted service provider. This procedure creates the spcot circle of trust.
Access https://lb4.sp-example.com:1081/opensso/console from a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
The Common Tasks tab is displayed.
Click Create Hosted Service Provider under Create SAML v2 Providers.
The Create a SAML v2 Service Provider on this Server page is displayed.
Make the following changes on the Create a SAML v2 Service Provider on this Server page.
Select the No radio button for Do you have metadata for this provider?
Under metadata properties, type https://lb4.sp-example.com:1081/opensso as the value for Name.
Under metadata properties, select test as the value for Signing Key.
Under Circle of Trust properties, select the Add to New radio button and type spcot as the value for the New Circle of Trust.
Accept the default values for any remaining properties.
Click Configure.
A pop up screen is displayed that reads:
Service provider is configured. You can modify the provider's profile under the Federation tab. Do you want to create a remote identity provider? |
Click No on the pop up screen.
The OpenSSO Enterprise console is displayed and this instance is now configured as a SAML v2 service provider.
This optional procedure displays, in a browser window, the standard and extended metadata for the hosted service provider in XML format. The XML can be viewed as displayed or copied into a text file and saved.
This procedure assumes that you have just completed To Configure the Hosted Service Provider and are still logged in to the OpenSSO Enterprise console.
Access https://lb4.sp-example.com:1081/opensso/ssoadm.jsp from the web browser.
ssoadm.jsp is a Java Server Page (JSP) version of the ssoadm command line interface. In this procedure it is used to display the hosted service provider metadata.
Click export-entity.
The export-entity page is displayed.
Enter the following values for each option and click Submit.
The EntityID is the unique uniform resource identifier (URI) used to identify a particular provider. In this deployment, type https://lb4.sp-example.com:1081/opensso.
The OpenSSO Enterprise realm in which the data resides. In this deployment as all data resides in the top-level realm, type /.
Leave this box unchecked.
Set this flag to export the standard metadata for the provider.
Set this flag to export the extended metadata for the provider.
Type saml2.
View the XML-formatted metadata in the browser window.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <EntityDescriptor entityID="https://lb4.sp-example.com:1081/opensso" xmlns="urn:oasis:names:tc:SAML:2.0:metadata"> <SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned= "false" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"> <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://lb4.sp-example.com:1081/opensso/SPSloRedirect/metaAlias/sp" ResponseLocation="https://lb4.sp-example.com:1081/opensso/ SPSloRedirect/metaAlias/sp"/> <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://lb4.sp-example.com:1081/opensso/SPSloPOST/metaAlias/sp" ResponseLocation="https://lb4.sp-example.com:1081/opensso/SPSloPOST/metaAlias/sp"/> <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://lb4.sp-example.com:1081/opensso/SPSloSoap/metaAlias/sp"/> <ManageNameIDService Binding="urn:oasis:names:tc:SAML:2.0:bindings: HTTP-Redirect" Location="https://lb4.sp-example.com:1081/opensso/SPMniRedirect/ metaAlias/sp" ResponseLocation="https://lb4.sp-example.com:1081/opensso/ SPMniRedirect/metaAlias/sp"/> <ManageNameIDService Binding="urn:oasis:names:tc:SAML:2.0:bindings: HTTP-POST" Location="https://lb4.sp-example.com:1081/opensso/SPMniPOST/ metaAlias/sp" ResponseLocation="https://lb4.sp-example.com:1081/opensso/ SPMniPOST/metaAlias/sp"/> <ManageNameIDService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://lb4.sp-example.com:1081/opensso/SPMniSoap/metaAlias/sp" ResponseLocation="https://lb4.sp-example.com:1081/opensso/SPMniSoap/metaAlias/sp"/> <NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:persistent</NameIDFormat> <NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</NameIDFormat> <NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress</NameIDFormat> <NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified</NameIDFormat> <AssertionConsumerService index="0" isDefault="true" Binding="urn:oasis:names:tc: SAML:2.0:bindings:HTTP-Artifact" Location="https://lb4.sp-example.com:1081/opensso/ Consumer/metaAlias/sp"/> <AssertionConsumerService index="1" Binding="urn:oasis:names:tc:SAML:2.0:bindings: HTTP-POST" Location="https://lb4.sp-example.com:1081/opensso/ Consumer/metaAlias/sp"/> <AssertionConsumerService index="2" Binding="urn:oasis:names:tc:SAML:2.0: bindings:PAOS" Location="https://lb4.sp-example.com:1081/opensso/Consumer/ ECP/metaAlias/sp"/> </SPSSODescriptor> <IDPSSODescriptor WantAuthnRequestsSigned="false" protocolSupportEnumeration= "urn:oasis:names:tc:SAML:2.0:protocol"> <KeyDescriptor use="signing"> <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#"> <ds:X509Data> <ds:X509Certificate> MIICQDCCAakCBEeNB0swDQYJKoZIhvcNAQEEBQAwZzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNh bGlmb3JuaWExFDASBgNVBAcTC1NhbnRhIENsYXJhMQwwCgYDVQQKEwNTdW4xEDAOBgNVBAsTB09w ZW5TU08xDTALBgNVBAMTBHRlc3QwHhcNMDgwMTE1MTkxOTM5WhcNMTgwMTEyMTkxOTM5WjBnMQsw CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEUMBIGA1UEBxMLU2FudGEgQ2xhcmExDDAK BgNVBAoTA1N1bjEQMA4GA1UECxMHT3BlblNTTzENMAsGA1UEAxMEdGVzdDCBnzANBgkqhkiG9w0B AQEFAAOBjQAwgYkCgYEArSQc/U75GB2AtKhbGS5piiLkmJzqEsp64rDxbMJ+xDrye0EN/q1U5Of+ RkDsaN/igkAvV1cuXEgTL6RlafFPcUX7QxDhZBhsYF9pbwtMzi4A4su9hnxIhURebGEmxKW9qJNY Js0Vo5+IgjxuEWnjnnVgHTs1+mq5QYTA7E6ZyL8CAwEAATANBgkqhkiG9w0BAQQFAAOBgQB3Pw/U QzPKTPTYi9upbFXlrAKMwtFf2OW4yvGWWvlcwcNSZJmTJ8ARvVYOMEVNbsT4OFcfu2/PeYoAdiDA cGy/F2Zuj8XJJpuQRSE6PtQqBuDEHjjmOQJ0rV/r8mO1ZCtHRhpZ5zYRjhRC9eCbjx9VrFax0JDC /FfwWigmrW0Y0Q== </ds:X509Certificate> </ds:X509Data> </ds:KeyInfo> </KeyDescriptor> <ArtifactResolutionService index="0" isDefault="true" Binding="urn:oasis: names:tc:SAML:2.0:bindings:SOAP" Location="https://lb4.sp-example.com:1081/ opensso/ArtifactResolver/metaAlias/idp"/> <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://lb4.sp-example.com:1081/opensso/IDPSloRedirect/metaAlias/idp" ResponseLocation="https://lb4.sp-example.com:1081/opensso/IDPSloRedirect/ metaAlias/idp"/> <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://lb4.sp-example.com:1081/opensso/IDPSloPOST/metaAlias/idp" ResponseLocation="https://lb4.sp-example.com:1081/opensso/IDPSloPOST/ metaAlias/idp"/> <SingleLogoutService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://lb4.sp-example.com:1081/opensso/IDPSloSoap/metaAlias/idp"/> <ManageNameIDService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect" Location="https://lb4.sp-example.com:1081/opensso/IDPMniRedirect/metaAlias/idp" ResponseLocation="https://lb4.sp-example.com:1081/opensso/IDPMniRedirect/ metaAlias/idp"/> <ManageNameIDService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://lb4.sp-example.com:1081/opensso/IDPMniPOST/metaAlias/idp" ResponseLocation="https://lb4.sp-example.com:1081/opensso/IDPMniPOST/ metaAlias/idp"/> <ManageNameIDService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://lb4.sp-example.com:1081/opensso/IDPMniSoap/metaAlias/idp"/> <NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format: persistent</NameIDFormat> <NameIDFormat>urn:oasis:names:tc:SAML:2.0:nameid-format: transient</NameIDFormat> <NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format: emailAddress</NameIDFormat> <NameIDFormat>urn:oasis:names:tc:SAML:1.1:nameid-format: unspecified</NameIDFormat> <SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings: HTTP-Redirect" Location="https://lb4.sp-example.com:1081/opensso/ SSORedirect/metaAlias/idp"/> <SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="https://lb4.sp-example.com:1081/opensso/SSOPOST/metaAlias/idp"/> <SingleSignOnService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://lb4.sp-example.com:1081/opensso/SSOSoap/metaAlias/idp"/> <NameIDMappingService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://lb4.sp-example.com:1081/opensso/NIMSoap/metaAlias/idp"/> <AssertionIDRequestService Binding="urn:oasis:names:tc:SAML:2.0:bindings:SOAP" Location="https://lb4.sp-example.com:1081/opensso/AIDReqSoap/IDPRole/ metaAlias/idp"/> <AssertionIDRequestService Binding="urn:oasis:names:tc:SAML:2.0:bindings:URI" Location="https://lb4.sp-example.com:1081/opensso/AIDReqUri/IDPRole/ metaAlias/idp"/> </IDPSSODescriptor> </EntityDescriptor> Entity descriptor was exported to file, web. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <EntityConfig entityID="https://lb4.sp-example.com:1081/opensso" hosted="true" xmlns="urn:sun:fm:SAML:2.0:entityconfig"> <SPSSOConfig metaAlias="/sp"> <Attribute name="wantNameIDEncrypted"> <Value/> </Attribute> <Attribute name="idpProxyList"/> <Attribute name="spAccountMapper"> <Value>com.sun.identity.saml2.plugins.DefaultSPAccountMapper</Value> </Attribute> <Attribute name="enableIDPProxy"> <Value>false</Value> </Attribute> <Attribute name="ECPRequestIDPListGetComplete"> <Value/> </Attribute> <Attribute name="cotlist"> <Value>spcot</Value> </Attribute> <Attribute name="transientUser"> <Value>anonymous</Value> </Attribute> <Attribute name="spAuthncontextComparisonType"> <Value>exact</Value> </Attribute> <Attribute name="wantAssertionEncrypted"> <Value/> </Attribute> <Attribute name="spAdapter"> <Value/> </Attribute> <Attribute name="spAuthncontextClassrefMapping"> <Value>urn:oasis:names:tc:SAML:2.0:ac:classes: PasswordProtectedTransport|0|default</Value> </Attribute> <Attribute name="appLogoutUrl"> <Value/> </Attribute> <Attribute name="saml2AuthModuleName"> <Value/> </Attribute> <Attribute name="autofedEnabled"> <Value>true</Value> </Attribute> <Attribute name="localAuthURL"> <Value/> </Attribute> <Attribute name="spAttributeMapper"> <Value>com.sun.identity.saml2.plugins.DefaultSPAttributeMapper</Value> </Attribute> <Attribute name="signingCertAlias"> <Value/> </Attribute> <Attribute name="wantMNIResponseSigned"> <Value/> </Attribute> <Attribute name="wantMNIRequestSigned"> <Value/> </Attribute> <Attribute name="attributeMap"> <Value>EmailAddress=EmailAddress</Value> <Value>Telephone=Telephone</Value> </Attribute> <Attribute name="saeSPUrl"> <Value>https://lb4.sp-example.com:1081/opensso/spsaehandler/ metaAlias/sp</Value> </Attribute> <Attribute name="responseArtifactMessageEncoding"> <Value>URI</Value> </Attribute> <Attribute name="idpProxyCount"> <Value>0</Value> </Attribute> <Attribute name="basicAuthUser"> <Value/> </Attribute> <Attribute name="useIntroductionForIDPProxy"> <Value>false</Value> </Attribute> <Attribute name="wantArtifactResponseSigned"> <Value/> </Attribute> <Attribute name="intermediateUrl"> <Value/> </Attribute> <Attribute name="defaultRelayState"> <Value/> </Attribute> <Attribute name="basicAuthPassword"> <Value/> </Attribute> <Attribute name="wantPOSTResponseSigned"> <Value/> </Attribute> <Attribute name="wantAttributeEncrypted"> <Value/> </Attribute> <Attribute name="basicAuthOn"> <Value>false</Value> </Attribute> <Attribute name="spAdapterEnv"/> <Attribute name="saeSPLogoutUrl"> <Value>https://lb4.sp-example.com:1081/opensso/samples/ saml2/sae/saeSPApp.jsp</Value> </Attribute> <Attribute name="ECPRequestIDPListFinderImpl"> <Value>com.sun.identity.saml2.plugins.ECPIDPFinder</Value> </Attribute> <Attribute name="wantLogoutResponseSigned"> <Value/> </Attribute> <Attribute name="wantLogoutRequestSigned"> <Value/> </Attribute> <Attribute name="encryptionCertAlias"> <Value/> </Attribute> <Attribute name="spAuthncontextMapper"> <Value>com.sun.identity.saml2.plugins.DefaultSPAuthnContextMapper</Value> </Attribute> <Attribute name="assertionTimeSkew"> <Value>300</Value> </Attribute> <Attribute name="ECPRequestIDPList"/> <Attribute name="autofedAttribute"> <Value>mail</Value> </Attribute> <Attribute name="saeAppSecretList"> <Value>url=https://lb4.sp-example.com:1081/opensso/samples/saml2/sae/ saeSPApp.jsp|type=symmetric|secret=AQICIbz4afzilWzbmo6QD9lQ9 U4kEBrMlvZy</Value> </Attribute> </SPSSOConfig> <IDPSSOConfig metaAlias="/idp"> <Attribute name="description"> <Value/> </Attribute> <Attribute name="signingCertAlias"> <Value>test</Value> </Attribute> <Attribute name="encryptionCertAlias"> <Value/> </Attribute> <Attribute name="basicAuthOn"> <Value>false</Value> </Attribute> <Attribute name="basicAuthUser"> <Value/> </Attribute> <Attribute name="basicAuthPassword"> <Value/> </Attribute> <Attribute name="autofedEnabled"> <Value>false</Value> </Attribute> <Attribute name="autofedAttribute"> <Value/> </Attribute> <Attribute name="assertionEffectiveTime"> <Value>600</Value> </Attribute> <Attribute name="idpAuthncontextMapper"> <Value>com.sun.identity.saml2.plugins.DefaultIDPAuthnContextMapper</Value> </Attribute> <Attribute name="idpAuthncontextClassrefMapping"> <Value>urn:oasis:names:tc:SAML:2.0:ac:classes: PasswordProtectedTransport|0||default</Value> </Attribute> <Attribute name="idpAccountMapper"> <Value>com.sun.identity.saml2.plugins.DefaultIDPAccountMapper</Value> </Attribute> <Attribute name="idpAttributeMapper"> <Value>com.sun.identity.saml2.plugins.DefaultIDPAttributeMapper</Value> </Attribute> <Attribute name="assertionIDRequestMapper"> <Value>com.sun.identity.saml2.plugins.DefaultAssertionIDRequestMapper</Value> </Attribute> <Attribute name="nameIDFormatMap"> <Value>urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress=mail</Value> <Value>urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName=</Value> <Value>urn:oasis:names:tc:SAML:1.1:nameid-format: WindowsDomainQualifiedName=</Value> <Value>urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos=</Value> <Value>urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified=</Value> </Attribute> <Attribute name="idpECPSessionMapper"> <Value>com.sun.identity.saml2.plugins.DefaultIDPECPSessionMapper</Value> </Attribute> <Attribute name="attributeMap"/> <Attribute name="wantNameIDEncrypted"> <Value/> </Attribute> <Attribute name="wantArtifactResolveSigned"> <Value/> </Attribute> <Attribute name="wantLogoutRequestSigned"> <Value/> </Attribute> <Attribute name="wantLogoutResponseSigned"> <Value/> </Attribute> <Attribute name="wantMNIRequestSigned"> <Value/> </Attribute> <Attribute name="wantMNIResponseSigned"> <Value/> </Attribute> <Attribute name="cotlist"> <Value>spcot</Value> </Attribute> <Attribute name="discoveryBootstrappingEnabled"> <Value>false</Value> </Attribute> <Attribute name="assertionCacheEnabled"> <Value>false</Value> </Attribute> <Attribute name="assertionNotBeforeTimeSkew"> <Value>600</Value> </Attribute> <Attribute name="saeAppSecretList"/> <Attribute name="saeIDPUrl"> <Value>https://lb4.sp-example.com:1081/opensso/idpsaehandler/metaAlias/ idp</Value> </Attribute> <Attribute name="AuthUrl"> <Value/> </Attribute> <Attribute name="appLogoutUrl"> <Value/> </Attribute> </IDPSSOConfig> </EntityConfig> Entity configuration was exported to file, web.
Log out of the OpenSSO Enterprise console.
After configuring the providers, enable the hosted service provider to communicate with the remote identity provider by loading the identity provider metadata into the instance of OpenSSO Enterprise acting as the service provider.
Access https://lb4.sp-example.com:1081/opensso/console from a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
The Common Tasks tab is displayed.
Click Register Remote Identity Provider under Create SAML v2 Providers.
The Create a SAML v2 Remote Identity Provider page is displayed.
Make the following changes on the Create a SAML v2 Remote Identity Provider page.
Select the URL radio button for Where does the metadata file reside?
Type https://lb2.idp-example.com:1081/opensso/saml2/jsp/exportmetadata.jsp as the value of URL where metadata is located.
Under Circle of Trust, select the Add to Exiting radio button and select the spcot circle of trust from the drop down menu.
Click Configure.
Select Finish to end the task.
Following are the SAML v2 profiles used for testing the SAML v2 configurations.
Federation
Single Logout
Single Sign On
Federation Termination
SAML v2 profiles can be initiated from the service provider side or from the identity provider side of the deployment. There are two ways in which the SAML v2 configurations can be tested and the procedures for these options are in the following sections.
This automated test uses the Test Federation Connectivity work flow option under the Common Tasks tab of the OpenSSO Enterprise console.
Access https://lb2.idp-example.com:1081/opensso/console from a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
The Common Tasks tab is displayed.
Under the Common Tasks tab, click Test Federation Connectivity.
The Validate Federation Setup page is displayed.
Select the radio button next to idpcot, the circle of trust that contains the providers you are testing.
The providers in idpcot are displayed.
Click Start Test.
A pop up is displayed.
Click OK on the pop up.
Your administrator session is terminated and the test is run.
When displayed, log in to the OpenSSO Enterprise console on the identity provider side with the following information.
idpuser
idpuser
With successful authentication, the OpenSSO Enterprise console on the service provider side is displayed.
Log in to the OpenSSO Enterprise console on the service provider side with the following information.
spuser
spuser
With successful authentication, the two accounts are linked. Single logout follows the successful federation.
When displayed to test single sign on, log in to the OpenSSO Enterprise console on the identity provider side with the following information.
idpuser
idpuser
Following successful authentication on the identity provider side, the user is logged in to the service provider through a back channel, demonstrating single sign on. Finally, the user profile federation is terminated. Thus, the following has occurred:
A user is successfully authenticated with two different providers and the user's separate profiles are federated.
The user is logged out of both providers verifying single logout.
The user is logged back in to both providers by providing credentials to only one of them verifying single sign on.
The federation between the two user profiles is terminated.
Click Cancel to return to the OpenSSO Enterprise console login page.
In this section, test SAML v2 communications for the following profiles and bindings using specially constructed URLs.
Browser Artifact Profile (SOAP/HTTP)
Browser POST Profile (SOAP/HTTP)
Back Channel SOAP Over HTTP
Front Channel HTTP
Tests can be initiated from the identity provider side or the service provider side. The following procedures provide the constructed URLs and procedures for accessing them.
The following tests are initiated on the identity provider side to test SAML v2 communications with the service provider.
Name identifiers are used by the identity provider and the service provider to communicate with each other regarding a user. In this test, a persistent identifier is used to federate the identity provider's user profile with the same user's profile on the service provider side.
To Test Persistent Federation Using the Browser Artifact Profile
To Test Persistent Federation Using the Browser POST Profile
Enter the persistent federation URL in a web browser: https://lb2.idp-example.com:1081/opensso/saml2/jsp/idpSSOInit.jsp?metaAlias=/idp&spEntityID=https://lb4.sp-example.com:1081/opensso.
The request is directed to OpenSSO Enterprise on the service provider side.
Log in to the OpenSSO Enterprise console as a test user.
spuser
spuser
The login request is redirected to OpenSSO Enterprise on the identity provider side.
Log in to the OpenSSO Enterprise console as a test user.
idpuser
idpuser
The browser message “Single Sign-On succeeded” is displayed confirming that federation has succeeded.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
Enter the persistent federation URL in a web browser: https://lb2.idp-example.com:1081/opensso/saml2/jsp/idpSSOInit.jsp?metaAlias=/idp&spEntityID=https://lb4.sp-example.com:1081/opensso&binding=HTTP-POST.
The request is directed to OpenSSO Enterprise on the service provider side.
Log in to the OpenSSO Enterprise console as a test user.
spuser
spuser
The login request is redirected to OpenSSO Enterprise on the identity provider side.
Log in to the OpenSSO Enterprise console as a test user.
idpuser
idpuser
The browser message “Single Sign-On succeeded” is displayed confirming that federation has succeeded.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
Single logout permits session termination of all participants in the session. The logout request can be initiated by any participant in the session.
Enter the single logout URL in a web browser: https://lb2.idp-example.com:1081/opensso/saml2/jsp/idpSingleLogoutInit.jsp?metaAlias=/idp&spEntityID=https://lb4.sp-example.com:1081/opensso&binding=urn:oasis:names:tc:SAML:2.0:bindings:SOAP
The browser message “IDP initiated single logout succeeded” is displayed.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
Enter the single logout URL in a web browser: https://lb2.idp-example.com:1081/opensso/saml2/jsp/idpSingleLogoutInit.jsp?metaAlias=/idp&spEntityID=https://lb4.sp-example.com:1081/opensso
The message “IDP initiated single logout succeeded” is displayed.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
In this test, the user accomplishes single sign on through the back channel.
Enter the single sign on URL in a web browser: https://lb2.idp-example.com:1081/opensso/saml2/jsp/idpSSOInit.jsp?metaAlias=/idp&spEntityID=https://lb4.sp-example.com:1081/opensso.
The request is directed to OpenSSO Enterprise on the service provider side.
Log in to the OpenSSO Enterprise console as a test user.
spuser
spuser
The browser message “Single Sign-On succeeded” is displayed.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
Enter the single sign on URL in a web browser: https://lb2.idp-example.com:1081/opensso/saml2/jsp/idpSSOInit.jsp?metaAlias=/idp&spEntityID=https://lb4.sp-example.com:1081/opensso&binding=HTTP-POST.
The login request is redirected to Access Manager.
Log in to the OpenSSO Enterprise console as a test user.
spuser
spuser
The browser message “Single Sign-On succeeded” is displayed.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
In this test, the federation previously authorized is terminated.
Enter the federation termination URL in a web browser: https://lb2.idp-example.com:1081/opensso/saml2/jsp/idpMNIRequestInit.jsp?metaAlias=/idp&spEntityID=https://lb4.sp-example.com:1081/opensso&binding=urn:oasis:names:tc:SAML:2.0:bindings:SOAP&requestType=Terminate.
The browser message “ManageNameID Request succeeded” is displayed confirming the federation has been terminated.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
Enter the federation termination URL in a web browser: https://lb2.idp-example.com:1081/opensso/saml2/jsp/idpMNIRequestInit.jsp?metaAlias=/idp&spEntityID=https://lb4.sp-example.com:1081/opensso&requestType=Terminate.
The browser message “ManageNameID Request succeeded” is displayed confirming the federation has been terminated.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
The following tests are initiated on the service provider side to test SAML v2 communications with the identity provider.
Name identifiers are used by the identity provider and the service provider to communicate with each other regarding a user. In this test, a persistent identifier is used to federate the identity provider's user profile with the same user's profile on the service provider side.
To Test Persistent Federation Using the Browser Artifact Profile
To Test Persistent Federation Using the Browser POST Profile
Enter the persistent federation URL in a web browser: https://lb4.sp-example.com:1081/opensso/saml2/jsp/spSSOInit.jsp?metaAlias=/sp&idpEntityID=https://lb2.idp-example.com:1081/opensso.
The request is directed to OpenSSO Enterprise on the identity provider side for authentication.
Log in to the OpenSSO Enterprise console as test user.
idpuser
idpuser
The request is redirected to OpenSSO Enterprise on the service provider side.
Log in to the OpenSSO Enterprise console as the test user.
spuser
spuser
The browser message “Single Sign-On succeeded” is displayed confirming federation has succeeded.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
Enter the persistent federation URL in a web browser: https://lb4.sp-example.com:1081/opensso/saml2/jsp/spSSOInit.jsp?metaAlias=/sp&idpEntityID=https://lb2.idp-example.com:1081/opensso&binding=HTTP-POST.
The request is directed to OpenSSO Enterprise on the identity provider side for authentication.
Log in to the OpenSSO Enterprise console as a test user.
idpuser
idpuser
The request is redirected to OpenSSO Enterprise on the service provider side.
Log in to the OpenSSO Enterprise console as a test user.
spuser
spuser
The browser message “Single Sign-On succeeded” is displayed confirming federation has succeeded.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
Single logout permits session termination of all participants in the session. The logout request can be initiated by any participant in the session.
Enter the single logout URL in a web browser: https://lb4.sp-example.com:1081/opensso/saml2/jsp/spSSOInit.jsp?metaAlias=/sp&binding=urn:oasis:names:tc:SAML:2.0:bindings:SOAP&idpEntityID=https://lb2.idp-example.com:1081/opensso.
The message “SP initiated single logout succeeded” is displayed and both user profile sessions are ended.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
Enter the single logout URL in a web browser: https://lb4.sp-example.com:1081/opensso/saml2/jsp/spSSOInit.jsp?metaAlias=/sp&idpEntityID=https://lb2.idp-example.com:1081/opensso.
The message “SP initiated single logout succeeded” is displayed and both user profile sessions are ended.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
In this test, the user accomplishes single sign on through the back channel.
Enter the single sign on URL in a web browser: https://lb4.sp-example.com:1081/opensso/saml2/jsp/spSSOInit.jsp?metaAlias=/sp&idpEntityID=https://lb2.idp-example.com:1081/opensso.
The request is directed to OpenSSO Enterprise on the identity provider side for authentication.
Log in to the OpenSSO Enterprise console as a test user.
idpuser
idpuser
The browser message “Single Sign-On succeeded” is displayed.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
Enter the single sign on URL in a web browser: https://lb4.sp-example.com:1081/opensso/saml2/jsp/spSSOInit.jsp?metaAlias=/sp&idpEntityID=https://lb2.idp-example.com:1081/opensso&binding=HTTP-POST.
The request is directed to OpenSSO Enterprise on the identity provider side for authentication.
Log in to the OpenSSO Enterprise console as a test user.
idpuser
idpuser
The message “Single Sign-On succeeded” is displayed.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
In this test, the federation previously authorized is terminated.
Enter the federation termination URL in a web browser: https://lb4.sp-example.com:1081/opensso/saml2/jsp/spSSOInit.jsp?metaAlias=/sp&idpEntityID=https://lb2.idp-example.com:1081/opensso&requestType=Terminate&binding=urn:oasis:names:tc:SAML:2.0:bindings:SOAP.
The browser message “ManageNameID Request succeeded” is displayed confirming the federation has been terminated.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
Enter the federation termination URL in a web browser: https://lb4.sp-example.com:1081/opensso/saml2/jsp/spSSOInit.jsp?metaAlias=/sp&idpEntityID=https://lb2.idp-example.com:1081/opensso&requestType=Terminate.
The browser message “ManageNameID Request succeeded” is displayed confirming the federation has been terminated.
(Optional) To view the SAML v2 assertion used, see the debug file in /export/ossoadm/config/opensso/debug/Federation.
Secure Attribute Exchange (also referred to as Virtual Federation Proxy) provides a mechanism for one application to communicate identity information to a second application in a different domain. More specifically, it provides a secure gateway that enables legacy applications to communicate authentication attributes without having to deal with federation protocols and processing. Secure Attribute Exchange uses SAML v2 to transfer identity data between the communicating entities. This chapter contains the following sections for setting up and testing Secure Attribute Exchange.
13.2 Installing Application Server on the Secure Attribute Exchange Identity Provider Host Machine
13.3 Installing Application Server on the Secure Attribute Exchange Service Provider Host Machine
This chapter assumes you have completed Part II, Building the Identity Provider Environment and Part III, Building the Service Provider Environment; in effect, creating two domains that can communicate using SAML v2. In this test, we use symmetric key encryption (one shared secret is used for both encryption and decryption) between all providers and applications.
Patch the host machines that will be used to deploy the sample Secure Attribute Exchange JavaServer Pages application (bundled with OpenSSO Enterprise Client SDK). Towards this end, use different web containers from those on which OpenSSO Enterprise is installed. On our lab machines, the required Application Server patch is 117461–08. Results for your machine might be different. Read the latest documentation for your web container to determine if you need to install patches and, if so, what they might be. You can search for patches directly at http://sunsolve.sun.com. Navigate to the PatchFinder page, enter the patch number, click Find Patch, and download the appropriate patch for the Secure Attribute Exchange identity provider application host machine (sae.idp-example.com) and the Secure Attribute Exchange service provider application host machine (sae.sp-example.com).
Log in to the sae.idp-example.com host machine as a root user.
Run patchadd to see if the patch is already installed.
# patchadd -p | grep 117461-08 |
A series of patch numbers are displayed, and patch 117461–08 is present so there is no need to install any patches at this time.
Log out of the sae.idp-example.com host machine.
Log in to the sae.sp-example.com host machine as a root user.
Run patchadd to see if the patch is already installed.
# patchadd -p | grep 117461-08 |
A series of patch numbers are displayed, and patch 117461–08 is present so there is no need to install any patches at this time.
Log out of the sae.sp-example.com host machine.
To test a Secure Attribute Exchange we configure and use JavaServer Pages (bundled with the OpenSSO Enterprise Client SDK) to emulate real world applications. saeIDPApp.jsp represents the identity provider application that will invoke a remote service provider application and pass attributes to it. It will be installed on the sae.idp-example.com host machine. The following procedures will install and configure one instance of Application Server as the web container for the identity provider application.
To Install Application Server on the Secure Attribute Exchange Identity Provider Host Machine
To Secure Communications from the Identity Provider Host Machine
To Modify the Identity Provider Web Container domain.xml Configuration File
To Deploy the Client SDK on the Identity Provider Host Machine
This procedure assumes you have completed 13.1 Patching the Secure Attribute Exchange Host Machines.
Log in to the sae.idp-example.com host machine as a root user.
Create a directory into which the Application Server bits can be downloaded and change into it.
# mkdir /export/AS91 # cd /export/AS91 |
Download the Sun Java System Application Server 9.1 Update 1 binary from the Sun Microsystems Product Download page to the /export/AS91 directory.
Grant the downloaded binary execute permission using the chmod command.
# chmod +x sjsas-9_1_01-solaris-sparc.bin |
Install the software.
# ./sjsas-9_1_01-solaris-sparc.bin -console |
When prompted, provide the following information.
|
Press Enter to continue. |
|
|
Enter yes. |
|
|
Enter /opt/SUNWappserver91 |
|
|
Enter 1 to create the directory. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value. |
|
|
Enter domain1pwd and then re-enter domain1pwd. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the three default values. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value and begin the installation process. |
|
|
When installation is complete, an Installation Successful message is displayed: |
|
|
Press Enter to exit the installation program. |
Log out of the sae.idp-example.com host machine.
Create a request for a server certificate and import the certificate authority (CA) root certificate and server certificate to the keystore. This will secure communications initiated by the identity provider application.
Backup domain.xml before modifying it.
Log in to the sae.idp-example.com host machine as a root user.
Generate a private/public key pair and reference it with the alias, sae-idp.
sae-idp will be used in a later step to retrieve the public key which is contained in a self-signed certificate.
# cd /opt/SUNWappserver91/domains/domain1/config # keytool -genkey -noprompt -keyalg rsa -keypass changeit -alias sae-idp -keystore keystore.jks -dname "CN=sae.idp-example.com, OU=OpenSSO, O=Sun Microsystems, L=Santa Clara, ST=California, C=US" -storepass changeit |
Verify that the key pair was successfully created and stored in the certificate store using the following command.
# keytool -list -v -keystore keystore.jks -storepass changeit |
The output of this command lists a key entry with the alias sae-idp.
The output of this command may list more than one certificate based on the entries in the keystore.
Generate a server certificate request.
# keytool -certreq -alias sae-idp -keypass changeit -keystore keystore.jks -storepass changeit file sae-idp.csr |
sae-idp.csr is the server certificate request.
(Optional) Verify that sae-idp.csr was created.
# ls -la sae-idp.csr -rw-r--r-- 1 osso80adm staff 715 Apr 4 15:04 sae-idp.csr |
Send sae-idp.csr to the CA of your choice.
The CA issues and returns a certified server certificate named sae-idp.cer.
Import ca.cer, the CA root certificate, into the certificate store.
The root certificate must be imported into two keystores (keystore.jks and cacerts.jks) with Application Server.
# keytool -import -trustcacerts -alias OpenSSLTestCA -file ca.cer -keystore keystore.jks -storepass changeit Owner: EMAILADDRESS=nobody@nowhere.com, CN=openssltestca, OU=am, O=sun, L=santa clara, ST=california, C=us Issuer: EMAILADDRESS=nobody@nowhere.com, CN=openssltestca, OU=am, O=sun, L=santa clara, ST=california, C=us Serial number: f59cd13935f5f498 Valid from: Thu Sep 20 11:41:51 PDT 2007 until: Thu Jun 17 11:41:51 PDT 2010 Certificate fingerprints: MD5: 78:7D:F0:04:8A:5B:5D:63:F5:EC:5B:21:14:9C:8A:B9 SHA1: A4:27:8A:B0:45:7A:EE:16:31:DC:E5:32:46:61:9E:B8:A3:20:8C:BA Trust this certificate? [no]: Yes Certificate was added to keystore |
# keytool -import -trustcacerts -alias OpenSSLTestCA -file ca.cer -keystore cacerts.jks -storepass changeit Owner: EMAILADDRESS=nobody@nowhere.com, CN=openssltestca, OU=am, O=sun, L=santa clara, ST=california, C=us Issuer: EMAILADDRESS=nobody@nowhere.com, CN=openssltestca, OU=am, O=sun, L=santa clara, ST=california, C=us Serial number: f59cd13935f5f498 Valid from: Thu Sep 20 11:41:51 PDT 2007 until: Thu Jun 17 11:41:51 PDT 2010 Certificate fingerprints: MD5: 78:7D:F0:04:8A:5B:5D:63:F5:EC:5B:21:14:9C:8A:B9 SHA1: A4:27:8A:B0:45:7A:EE:16:31:DC:E5:32:46:61:9E:B8:A3:20:8C:BA Trust this certificate? [no]: Yes Certificate was added to keystore |
Replace the self-signed public key certificate (associated with the s1as alias) with the server certificate received from the CA.
# keytool -import -file sae-idp.cer -alias sae-idp -keystore keystore.jks -storepass changeit Certificate reply was installed in keystore |
(Optional) Verify that the self-signed public key certificate has been overwritten by the server certificate received from the CA.
# keytool -list -alias sae-idp -v -keystore keystore.jks -storepass changeit The certificate indicated by the alias "sae-idp" is signed by CA. |
Change the certificate alias from the default s1as to the new sae-idp in the domain.xml file for the domain1 domain.
The Application Server configuration file is domain.xml.
<http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-2" port="1081" security-enabled="true" server-name="" xpowered-by="true"> <ssl cert-nickname="sae-idp" client-auth-enabled="false" ssl2-enabled="false" ssl3-enabled="true" tls-enabled="true" tls-rollback-enabled="true"/>
Modify the following Java Virtual Machine (JVM) options in the Application Server configuration file, domain.xml to prepare for the installation of the Client SDK.
This procedure assumes you are still logged in as the root user to the sae-idp host machine.
Backup domain.xml before modifying it.
Change to the config directory.
# cd /opt/SUNWappserver91/domains/domain1/config |
Open domain.xml in a text editor and make the following changes:
Replace <jvm-options>-client</jvm-options> with <jvm-options>-server</jvm-options>.
Replace <jvm-options>-Xmx512m</jvm-options> with <jvm-options>-Xmx1024m</jvm-options>.
Save the file and close it.
Restart the domain1 domain.
# cd /opt/SUNWappserver91/bin # ./asadmin stop-domain Server was successfully stopped. ./asadmin start-domain Redirecting output to /opt/SUNWappserver91/domains/domain1/logs/server.log |
Verify that the certificate used for SSL communication is the root CA certificate.
When you deploy the Client SDK, you also deploy the saeIDPApp.jsp.
This procedure assumes you are still logged in as the root user to the sae-idp host machine.
Get the Client SDK WAR using the following sub procedure.
Access http://sae.idp-example.com:4848/login.jsf from a web browser.
admin
domain1pwd
Click Web Applications in the left frame of Application Server.
Click Deploy.
The Deploy Enterprise Applications/Modules page is displayed.
Click the radio button next to Packaged file to be uploaded to the server and browse for the opensso-client-jdk15.war WAR in the /export/OSSO_BITS/opensso/samples/war directory.
Enter opensso-client as the Application Name.
Click OK to deploy the Client SDK.
(Optional) List the contents of the j2ee-modules directory to verify that the WAR was successfully deployed.
Log out of the sae.idp-example.com host machine.
Add the IP address and host machine names to the /etc/hosts file on both the sae.idp-example.com and the sae.sp-example.com host machines as well as the host machine on which the browser is located.
To test a Secure Attribute Exchange we configure and use JavaServer Pages (bundled with the OpenSSO Enterprise Client SDK) to emulate real world applications. saeSPApp.jsp represents the service provider application that will receive the attributes from the identity provider. It will be installed on the sae.sp-example.com host machine. The following procedures will install and configure one instance of Application Server as the web container for the service provider application.
To Install Application Server on the Secure Attribute Exchange Service Provider Host Machine
To Secure Communications from the Service Provider Application
To Modify the Service Provider Web Container domain.xml Configuration File
To Deploy the Client SDK on the Service Provider Host Machine
This procedure assumes you have completed 13.1 Patching the Secure Attribute Exchange Host Machines.
Log in to the sae.sp-example.com host machine as a root user.
Create a directory into which the Application Server bits can be downloaded and change into it.
# mkdir /export/AS91 # cd /export/AS91 |
Download the Sun Java System Application Server 9.1 Update 1 binary from the Sun Microsystems Product Download page to the /export/AS91 directory.
Grant the downloaded binary execute permission using the chmod command.
# chmod +x sjsas-9_1_01-solaris-sparc.bin |
Install the software.
# ./sjsas-9_1_01-solaris-sparc.bin -console |
When prompted, provide the following information.
|
Press Enter to continue. |
|
|
Enter yes. |
|
|
Enter /opt/SUNWappserver91 |
|
|
Enter 1 to create the directory. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value. |
|
|
Enter domain1pwd and then re-enter domain1pwd. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the three default values. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value. |
|
|
Press Enter to accept the default value and begin the installation process. |
|
|
When installation is complete, an Installation Successful message is displayed: |
|
|
Press Enter to exit the installation program. |
Log out of the sae.sp-example.com host machine.
Create a request for a server certificate and import the certificate authority (CA) root certificate and server certificate to the keystore. This will secure communications initiated by the service provider application.
Backup domain.xml before modifying it.
Log in to the sae.sp-example.com host machine as a root user.
Generate a private/public key pair and reference it with the alias, sae-sp.
sae-sp will be used in a later step to retrieve the public key which is contained in a self-signed certificate.
# cd /opt/SUNWappserver91/domains/domain1/config # keytool -genkey -noprompt -keyalg rsa -keypass changeit -alias sae-sp -keystore keystore.jks -dname "CN=sae.sp-example.com, OU=OpenSSO, O=Sun Microsystems, L=Santa Clara, ST=California, C=US" -storepass changeit |
Verify that the key pair was successfully created and stored in the certificate store using the following command.
# keytool -list -v -keystore keystore.jks -storepass changeit |
The output of this command lists a key entry with the alias sae-sp.
The output of this command may list more than one certificate based on the entries in the keystore.
Generate a server certificate request.
# keytool -certreq -alias sae-sp -keypass changeit -keystore keystore.jks -storepass changeit file sae-sp.csr |
sae-sp.csr is the server certificate request.
(Optional) Verify that sae-sp.csr was created.
# ls -la sae-sp.csr -rw-r--r-- 1 osso80adm staff 715 Apr 4 15:04 sae-sp.csr |
Send sae-sp.csr to the CA of your choice.
The CA issues and returns a certified server certificate named sae-sp.cer.
Import ca.cer, the CA root certificate, into the certificate store.
The root certificate must be imported into two keystores (keystore.jks and cacerts.jks) with Application Server.
# keytool -import -trustcacerts -alias OpenSSLTestCA -file ca.cer -keystore keystore.jks -storepass changeit Owner: EMAILADDRESS=nobody@nowhere.com, CN=openssltestca, OU=am, O=sun, L=santa clara, ST=california, C=us Issuer: EMAILADDRESS=nobody@nowhere.com, CN=openssltestca, OU=am, O=sun, L=santa clara, ST=california, C=us Serial number: f59cd13935f5f498 Valid from: Thu Sep 20 11:41:51 PDT 2007 until: Thu Jun 17 11:41:51 PDT 2010 Certificate fingerprints: MD5: 78:7D:F0:04:8A:5B:5D:63:F5:EC:5B:21:14:9C:8A:B9 SHA1: A4:27:8A:B0:45:7A:EE:16:31:DC:E5:32:46:61:9E:B8:A3:20:8C:BA Trust this certificate? [no]: Yes Certificate was added to keystore |
# keytool -import -trustcacerts -alias OpenSSLTestCA -file ca.cer -keystore cacerts.jks -storepass changeit Owner: EMAILADDRESS=nobody@nowhere.com, CN=openssltestca, OU=am, O=sun, L=santa clara, ST=california, C=us Issuer: EMAILADDRESS=nobody@nowhere.com, CN=openssltestca, OU=am, O=sun, L=santa clara, ST=california, C=us Serial number: f59cd13935f5f498 Valid from: Thu Sep 20 11:41:51 PDT 2007 until: Thu Jun 17 11:41:51 PDT 2010 Certificate fingerprints: MD5: 78:7D:F0:04:8A:5B:5D:63:F5:EC:5B:21:14:9C:8A:B9 SHA1: A4:27:8A:B0:45:7A:EE:16:31:DC:E5:32:46:61:9E:B8:A3:20:8C:BA Trust this certificate? [no]: Yes Certificate was added to keystore |
Replace the self-signed public key certificate (associated with the s1as alias) with the server certificate received from the CA.
# keytool -import -file sae-sp.cer -alias sae-sp -keystore keystore.jks -storepass changeit Certificate reply was installed in keystore |
(Optional) Verify that the self-signed public key certificate has been overwritten by the server certificate received from the CA.
# keytool -list -alias sae-sp -v -keystore keystore.jks -storepass changeit The certificate indicated by the alias "sae-sp" is signed by CA. |
Change the certificate alias from the default s1as to the new sae-sp in the domain.xml file for the domain1 domain.
The Application Server configuration file is domain.xml.
<http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-2" port="1081" security-enabled="true" server-name="" xpowered-by="true"> <ssl cert-nickname="sae-sp" client-auth-enabled="false" ssl2-enabled="false" ssl3-enabled="true" tls-enabled="true" tls-rollback-enabled="true"/>
Modify the following Java Virtual Machine (JVM) options in the Application Server configuration file, domain.xml to prepare for the installation of the Client SDK.
This procedure assumes you are still logged in as the root user to the sae-sp host machine.
Backup domain.xml before modifying it.
Change to the config directory.
# cd /opt/SUNWappserver91/domains/domain1/config |
Open domain.xml in a text editor and make the following changes:
Replace <jvm-options>-client</jvm-options> with <jvm-options>-server</jvm-options>.
Replace <jvm-options>-Xmx512m</jvm-options> with <jvm-options>-Xmx1024m</jvm-options>.
Save the file and close it.
Restart the domain1 domain.
# cd /opt/SUNWappserver91/bin # ./asadmin stop-domain Server was successfully stopped. ./asadmin start-domain Redirecting output to /opt/SUNWappserver91/domains/domain1/logs/server.log |
Verify that the certificate used for SSL communication is the root CA certificate.
When you deploy the Client SDK, you also deploy the saeSPApp.jsp.
This procedure assumes you are still logged in as the root user to the sae-sp host machine.
Get the Client SDK WAR using the following sub procedure.
Access http://sae.sp-example.com:4848/login.jsf from a web browser.
admin
domain1pwd
Click Web Applications in the left frame of Application Server.
Click Deploy.
The Deploy Enterprise Applications/Modules page is displayed.
Click the radio button next to Packaged file to be uploaded to the server and browse for the opensso-client-jdk15.war WAR in the /export/OSSO_BITS/opensso/samples/war directory.
Enter opensso-client as the Application Name.
Click OK to deploy the Client SDK.
(Optional) List the contents of the j2ee-modules directory to verify that the WAR was successfully deployed.
Log out of the sae.sp-example.com host machine.
Add the IP address and host machine names to the /etc/hosts file on both the sae.idp-example.com and the sae.sp-example.com host machines as well as the host machine on which the browser is located.
The following procedures will establish trust relationships between the communicating entities (in this case, the included JSP).
To Establish Trust Between OpenSSO Enterprise and the Application on the Identity Provider Side
To Establish Trust Between OpenSSO Enterprise and the Application on the Service Provider Side
Set up a trust relationship between saeIDPApp.jsp, the identity provider application, and OpenSSO Enterprise on the identity provider side.
Choose a shared secret for use between the identity provider application and the instance of OpenSSO Enterprise on the identity provider side; in this procedure, secret12.
Make the following modifications to saeIDPApp.jsp and save the file.
saeIDPApp.jsp is found in the OpenSSO-Deploy-Base/samples/saml2/sae directory.
Change the value of saeServiceURL to https://lb2.idp-example.com:1081/opensso/idpsaehandler/metaAlias/idp.
Change the value of secret to secret12.
In a real deployment the application would store this shared secret in an encrypted file.
Change the value of spapp to https://sae.sp-example.com:8181/opensso/saml2/sae/saeSPApp.jsp.
Log in to the OpenSSO Enterprise console at https://lb2.idp-example.com:1081/opensso as the administrator.
amadmin
ossoadmin
Access https://lb2.idp-example.com:1081/opensso/encode.jsp in a different browser window.
This JSP encodes the shared secret.
Enter secret12 in the test field and click Encode.
A string representing the identity provider's encoded password is displayed.
Save the string for later use and close the browser window.
In this case, AQICrLO+CuXkZFna8uAS0/GiUUtwyQltVdw2.
From the OpenSSO Enterprise console, click the Federation tab.
Under Entity Providers, click https://lb2.idp-example.com:1081/opensso, the hosted identity provider.
Click the Advanced tab.
Under SAE Configuration, type the following in the New Value text box of the Per Application Security Configuration property and click Add.
url=https://sae.idp-example.com:8181/opensso/saml2/sae/ saeIDPApp.jsp|type=symmetric|secret=AQICrLO+CuXkZFna8uAS0/GiUUtwyQltVdw2
Click Save to save the profile.
Click the Assertion Processing tab.
Click the Attribute Mapper link.
Under the Attribute Map property, type the following New Values and click Add.
mail=mail
branch=branch
These attributes will be sent as part of the SAML v2 assertion.
Click Save to save the profile.
Click Back to return to the Federation tab.
Under Entity Providers, click https://lb4.sp-example.com:1081/opensso, the remote service provider.
Click the Advanced tab.
Under SAE Configuration, enter https://lb4.sp-example.com:1081/opensso/spsaehandler/metaAlias/sp in the SP URL field.
Under SAE Configuration again, enter https://sae.sp-example.com:8181/opensso/saml2/sae/saeSPApp.jsp in the SP Logout URL field.
Click Save to save the profile.
Click Back to return to the Federation tab.
Click the Access Control tab.
Under the Access Control tab, click / (Top Level Realm).
Click the Authentication tab.
Under General, click Advanced Properties.
The Core profile page is displayed.
Under User Profile, select the Ignored radio button and click Save.
This modification is specific to this deployment example only.
Click Save to save the profile.
Click Back to Authentication.
Log out of the OpenSSO Enterprise console.
Set up a trust relationship between OpenSSO Enterprise on the service provider side and saeSPApp.jsp, the service provider application.
Choose a shared secret for use between the service provider application and the instance of OpenSSO Enterprise on the service provider side; in this procedure, secret12.
Log in to the OpenSSO Enterprise console at https://lb4.sp-example.com:1081/opensso as the administrator.
amadmin
ossoadmin
Access https://lb4.sp-example.com:1081/opensso/encode.jsp in a different browser window.
This JSP encodes the shared secret.
Enter secret12 and click Encode.
A string representing the identity provider's encoded password is displayed.
Save the string for later use and close the browser window.
In this case, AQICIbz4afzilWzbmo6QD9lQ9U4kEBrMlvZy.
From the OpenSSO Enterprise console, click the Federation tab.
Under Entity Providers, click https://lb4.sp-example.com:1081/opensso, the hosted service provider.
Click the Assertion Processing tab.
Under Attribute Mapper, add the following new values to the Attribute Map property.
mail=mail
branch=branch
Under Auto-Federation, check the Enabled box.
Also under Auto-Federation, enter mail in the Attribute field.
The value of the Attribute property is the attribute previously mapped between the identity provider and the service provider allowing Auto-Federation to work.
Click Save.
Click the Advanced tab.
Under SAE Configuration, type https://lb4.sp-example.com:1081/opensso/spsaehandler/metaAlias/sp as the value for the SP URL.
Type https://sae.sp-example.com:8181/opensso/saml2/sae/saeSPApp.jsp as the value for the SP Logout URL.
Type the following in the New Value field of the Per Application Security Configuration property and click Add.
url=https://sae.sp-example.com:8181/opensso/saml2/sae/ saeSPApp.jsp|type=symmetric|secret=AQICIbz4afzilWzbmo6QD9lQ9U4kEBrMlvZy
Click Save to save the profile.
Click Back to return to the Federation tab.
Click the Access Control tab.
Under the Access Control tab, click / (Top Level Realm).
Click the Authentication tab.
Under General, click Advanced Properties.
The Core profile page is displayed.
Under User Profile, select the Ignored radio button and click Save.
This modification is specific to this deployment example only.
Click Save to save the profile.
Click Back to Authentication.
Log out of the OpenSSO Enterprise console.
In this test, saeIDPApp.jsp securely sends user authentication credentials to OpenSSO Enterprise on the identity provider side. The identity provider then uses basic SAML v2 to communicate these attributes to OpenSSO Enterprise on the service provider side. Finally, the service provider securely passes these same attributes to saeSPApp.jsp, the consumer.
This test for Secure Attribute Exchange does not use the test users created in building the SP and IDP Environment. The values of Userid on local IDP, Authenticated auth level, mail attribute, and branch attribute are hard-coded in saeIDPApp.jsp as the default values for the test. Because we have not created the hard-coded test user on the service provider side, we previously set the User Profile to ignore on the service provider side.
Access https://sae.idp-example.com:8181/opensso/saml2/sae/saeIDPApp.jsp from a web browser.
The Secure Attributes Exchange IDP APP SAMPLE page is displayed.
Type the following values in the appropriate text field.
testuser
0
testuser@foo.com
mainbranch
https://sae.sp-example.com:8181/opensso/saml2/sae/saeSPApp.jsp
https://lb2.idp-example.com:1081/opensso/idpsaehandler/metaAlias/idp
https://sae.idp-example.com:8181/opensso/saml2/sae/saeIDPApp.jsp
Select symmetric from the drop down menu.
secret12
No value
No value
No value
Click Generate URL
The Secure Attributes Exchange IDP APP SAMPLE is generated and the following links are displayed.
Click here to invoke the remote SP App via http GET to local IDP : https://sae.sp-example.com:8181/ opensso/samples/saml2/sae/saeSPApp.jsp : ssourl Click here to invoke the remote SP App via http POST to IDP : https://sae.sp-example.com:8181/ opensso/samples/saml2/sae/saeSPApp.jsp : POST This URL will invoke global Logout : slourl |
ssourl, POST, and slourl are clickable.
Click ssourl.
The SAE SP APP SAMPLE page is displayed proving that Secure Attribute Exchange single sign-on has succeeded.
SAE SP APP SAMPLE Secure Attrs : sun.authlevel 0 sun.spentityid https://lb4.sp-example.com:1081/opensso branch mainbranch sun.idpentityid https://lb2.idp-example.com:1081/opensso mail testuser@foo.com |
Enter https://lb2.idp-example.com:1081/opensso/samples/saml2/sae/saeIDPApp.jsp in the browser to regenerate the Secure Attributes Exchange IDP APP SAMPLE page.
The Secure Attributes Exchange IDP APP SAMPLE is regenerated and the following links are displayed.
Click here to invoke the remote SP App via http GET to local IDP : https://sae.sp-example.com:8181/ opensso/samples/saml2/sae/saeSPApp.jsp : ssourl Click here to invoke the remote SP App via http POST to IDP : https://sae.sp-example.com:8181/ opensso/samples/saml2/sae/saeSPApp.jsp : POST This URL will invoke global Logout : slourl |
ssourl, POST, and slourl are clickable.
Click slourl.
The Secure Attributes Exchange IDP APP SAMPLE is displayed.
Type the following values in the appropriate text field.
testuser
0
testuser@foo.com
mainbranch
https://sae.sp-example.com:8181/opensso/saml2/sae/saeSPApp.jsp
https://lb2.idp-example.com:1081/opensso/idpsaehandler/metaAlias/idp
https://sae.idp-example.com:8181/opensso/saml2/sae/saeIDPApp.jsp
symmetric
secret12
No value
No value
No value
Click Generate URL.
The Secure Attributes Exchange IDP APP SAMPLE page is displayed.
Secure Attributes Exchange IDP APP SAMPLE Setting up the following params: branch=mainbranch mail=testuser@foo.com sun.userid=testuser sun.authlevel=0 sun.spappurl=https://sae.sp-example.com:8181/opensso/ saml2/sae/saeSPApp.jsp sun.idpappurl=https://sae.idp-example.com:8181/opensso/ saml2/sae/saeIDPApp.jsp Click here to invoke the remote SP App via http GET to local IDP : https://sae.sp-example.com:8181/opensso/saml2/sae/saeSPApp.jsp : ssourl Click here to invoke the remote SP App via http POST to IDP : https://sae.sp-example.com:8181/opensso/saml2/sae/saeSPApp.jsp This URL will invoke global Logout : slourl |
Click slourl.
The SAE SP APP SAMPLE page is displayed proving successful logout.
SAE SP APP SAMPLE Secure Attrs : sun.cmd logout sun.returnurl https://lb4.sp-example.com:1081/opensso/SPSloRedirect/ metaAlias/sp?SAMLRequest=nZNva9swEMa%2FitHbkliS438iMQTCWErXpvUWxt5 d7HMqsCVPJ0P27WcnLaSDdlDQq5Oe%2Bz33cFoSdG2v7uzRDv4Jfw9IPghOXWtIna9 WbHBGWSBNykCHpHylyvW3OyXnXPXOelvZlgXbzYqRrKPDouKQQpOmnIsMRSMhgSgRIuU gU55jLEQlWbBHR9qaFRvbjGqiAbeGPBg%2FljjPZjyfyfy7jFSUjOcXCzajNW3An1XP3 vekwrA9zJI5aWdxXtlOCZ6J0PZoiGxY7srWPmGtHVY%2B7NDDutVAIfUsuLf%2BwTy4d ePR%2FQtcXIDFcgpAna25q0g%2BTgSI0E0eWXHlUc7xBF3fXrlsoFuGV4QX3P3Ycbv5B C6YlI8DtLrR00z%2FpbOg3L2veS9VFnyxrgP%2Fsa2poutZc36qvANDGo1nhfwqbv78u O334tGI26MRxzAWu%2F3NDp5%2FvsRxSeASR69KpGlPtqbG0yf2siC5iMe9SzMeJynK KhVCZsAhr6s6y2OIDg1WUSq4uODfEovX4psPUvwF&RelayState=s212b785d4bda31 faa635552f1233bbbb3a2c5badb&sun.appreturn=true Logout URL |
Click Logout URL on the page displayed in the previous step.
At the bottom of the displayed page, you will see This proves SLO success.
If there are issues running this test, see the OpenSSO Enterprise debug files located in the /export/ossoadm/config/opensso/debug/Federation directory on both the identity provider and the service provider sides.
In this deployment there is no user data on the service provider side so, because of this, we map all identity provider users to an anonymous user which represents all users in the identity provider user data store when it presents itself to the service provider. This use case illustrates how you can pass user profile attributes from the identity provider to the service provider, and from the service provider site to its agent-protected applications. Communication from the identity provider to the service provider takes place using SAML v2 protocols. Communication from the service provider to its agent-protected applications uses agent-to-LDAP attribute mapping. This chapter contains the following sections.
Create a test user and modify the user profile for attribute mapping. Use the following as a checklist to complete this procedure.
Access https://lb2.idp-example.com:1081/opensso/console from a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
The Common Tasks tab is displayed.
Click the Access Control tab.
Click the / (Top Level Realm) realm.
Under the Subjects tab, click User.
Under User, click New.
The New User page is displayed.
Enter the following values and click OK.
jsmith
John
Smith
John Smith
jsmith
jsmith.
Click Active.
Log out of the OpenSSO Enterprise console.
This procedure assumes you have completed To Create a Test User for Attribute Mapping.
Access https://lb2.idp-example.com:1081/opensso/console from a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
The Common Tasks tab is displayed.
Click the Access Control tab.
Click the / (Top Level Realm) realm.
Under the Subjects tab, click User.
Under User, click John Smith.
The Edit User — John Smith page is displayed.
Enter the following values and click Save.
jsmith@jsmith.com
408-555-5454
The profile is updated.
Log out of the OpenSSO Enterprise console.
This section contains the instructions to configure OpenSSO Enterprise for attribute mapping. Use the following as a checklist to complete the configurations.
Map the appropriate LDAP attributes in the user data store to the attributes passed using SAML v2 using the OpenSSO Enterprise console on the identity provider side. When attributes on one OpenSSO Enterprise instance on the identity provider side are mapped, the mapping is made available to the second OpenSSO Enterprise instance on the identity provider side through the previous configuration of the two instances as a site in 5.4 Configuring the OpenSSO Enterprise Platform Service
Access https://lb2.idp-example.com:1081/opensso/console from a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
The Common Tasks tab is displayed.
Click the Federation tab.
Under Entity Providers, click https://lb2.idp-example.com:1081/opensso.
The IDP profile page is displayed.
Click the Assertion Processing tab.
Under Attribute Mapping, enter the following values and click Add.
EmailAddress=EmailAddress Telephone=Telephone |
Click Save.
The profile is updated.
Log out of the OpenSSO Enterprise console.
Enable the Anonymous authentication module and confirm the creation of the anonymous user account on the service provider side.
This procedure assumes you have completed To Create a Test User for Attribute Mapping.
Access https://lb4.sp-example.com:1081/opensso/console from a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
The Common Tasks tab is displayed.
Click the Access Control tab.
Click the / (Top Level Realm) realm.
Click the Authentication tab.
Click the Modules Instances link.
Under Modules Instances, click New.
The New Module Instance page is displayed.
Enter the following values and click Save.
Anonymous
Select Anonymous
The profile is updated.
Under Modules Instances, click Anonymous.
The Anonymous module instance profile is displayed.
Confirm the default values for the following attributes.
If the values in your instance are different, change them and save the profile.
anonymous
0
Log out of the OpenSSO Enterprise console.
A transient name identifier is a temporary user identifier. In this use case, there is no user account on the service provider side so single sign-on is accomplished using a transient name identifier. All users passed from the identity provider to the service provider will be mapped to the anonymous user created in To Enable Anonymous Authentication. In this procedure, we modify the agent profile to use the transient name identifier format.
Access https://lb4.sp-example.com:1081/opensso/console from a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
The Common Tasks tab is displayed.
Click the Access Control tab.
Click the / (Top Level Realm) realm.
Click the Agents tab.
Click the Web tab.
The Web profile page is displayed.
Click webagent-1 in the Agent table.
The webagent-1 profile page is displayed.
Click the OpenSSO Services tab.
Select https://lb4.sp-example.com:1081/opensso/spssoinit?metaAlias=/sp&idpEntityID=https://lb2.idp-example.com:1081/opensso in the OpenSSO Login URL property box and click Delete.
Enter https://lb4.sp-example.com:1081/opensso/spssoinit?metaAlias=/sp&idpEntityID=https://lb2.idp-example.com:1081/opensso&NameIDFormat=transient in the OpenSSO Login URL text box and click Add.
Click Save.
The profile is updated.
Log out of the OpenSSO Enterprise console.
Map the attributes being sent from the identity provider to the attributes configured for the anonymous user on the service provider side.
Access https://lb4.sp-example.com:1081/opensso/console from a web browser.
Log in to the OpenSSO Enterprise console as the administrator.
amadmin
ossoadmin
The Common Tasks tab is displayed.
Click the Access Control tab.
Click the / (Top Level Realm) realm.
Click the Agents tab.
Click the Web tab.
The Web profile page is displayed.
Click webagent-1 in the Agent table.
The webagent-1 profile page is displayed.
Click the Application tab.
Click the Session Attribute Processing link.
Select HTTP_HEADER as the value for the Session Attribute Fetch Mode property.
Enter the following new values in the Session Attribute Map property text box and click Add.
Telephone
Telephone
Enter the following new values in the Session Attribute Map property text box and click Add.
EmailAddress
EmailAddress
Click Save.
The profile is updated.
Log out of the OpenSSO Enterprise console.
This test uses snoop.jsp to display the HTTP headers being passed in a browser window. Within the headers you see the attributes being passed to the service provider protected by the agent.
Log into the pr1.sp-example.com host machine as the root user.
Copy snoop.jsp to the /opt/SUNWwbsvr/https-pr1.sp-example.com/docs directory.
snoop.jsp is in Appendix F, The snoop.jsp File.
Access http://pr1.sp-example.com:1080/snoop.jsp from a web browser.
The Web Policy Agent redirects the request to the OpenSSO Enterprise console on the identity provider side.
Log in to the OpenSSO Enterprise console as the test user.
jsmith@jsmith.com
jsmith
JSP Snoop page is the header from the HTTP request in the browser. Note the following:
John Smith's telephone number and email address are included.
The Remote user is anonymous and serves as confirmation of the transient user previously configured.
JSP Snoop page Request information Requested URL: http://pr1.sp-example.com:1080/snoop.jsp Request method: GET Request URI: /snoop.jsp Request protocol: HTTP/1.1 Servlet path: /snoop.jsp Path info: null Path translated: null Query string: null Content length: -1 Content type: null Server name: pr1.sp-example.com Server port: 1080 Remote user: anonymous Remote address: 192.18.120.83 Remote host: 192.18.120.83 Authorization scheme: DSAME Request headers Header: Value: cookie JSESSIONID=A7092AD436027D5B18DFCC8C65D7B580; iPlanetDirectoryPro=AQIC5wM2LY4SfcxahJE41EKzHCTvKn lulj6F8sTjtxvBpA8=@AAJTSQACMDMAAlMxAAIwMQ==#; amlbcookie=01 host pr1.sp-example.com:1080 user-agent Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.8.1.15) Gecko/20080703 Firefox/2.0.0.15 accept text/xml,application/xml,application/xhtml+xml, text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 accept-language en-us,en;q=0.5 accept-encoding gzip,deflate accept-charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 keep-alive 300 connection keep-alive emailaddress jsmith@jsmith.com telephone 408-555-5454 Init parameters Parameter: Value: fork false mappedfile false logVerbosityLevel warning com.sun.appserv.jsp.classpath /opt/SUNWwbsvr/lib/webserv-rt.jar: /opt/SUNWwbsvr/lib/pwc.jar:/opt/SUNWwbsvr/lib/ant.jar: /opt/SUNWwbsvr/jdk/lib/tools.jar:/opt/SUNWwbsvr/lib/ktsearch.jar: /opt/SUNWwbsvr/lib/webserv-jstl.jar:/opt/SUNWwbsvr/lib/jsf-impl.jar: /opt/SUNWwbsvr/lib/jsf-api.jar:/opt/SUNWwbsvr/lib/webserv-jwsdp.jar: /opt/SUNWwbsvr/lib/container-auth.jar:/opt/SUNWwbsvr/lib/mail.jar: /opt/SUNWwbsvr/lib/activation.jar: httpMethods GET,HEAD,POST |