Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space IDS and version 8.2.0

...

The application’s deployment descriptor web.xmlis modified to include the SAML SP servlet and filter configuration. The provided binary libraries are copied to the WEB-INF\lib directory. SAML SP identity information is created to the WEB-INF\saml2\sp directory and the IDP metadata is copied to the WEB-INF\saml2\sp\metadata directory.

Code Block
languagetext
themeRDark
titleListing 1. An overview of the SAML SP files after the integration
<webapp_directory>\WEB-INF\web.xml		   					[servlet and filter configuration] 
<webapp_directory>\WEB-INF\lib\*.jar						[SAML SP binary libraries]
<webapp_directory>\WEB-INF\saml2\sp\identity.properties		[SAML SP identity]
<webapp_directory>\WEB-INF\saml2\sp\metadata\metadata.xml	[IDP metadata]

...

Copy the binary libraries from ubispservlet/webapp/WEB-INF/lib to the WEB-INF/lib directory of the web application.

Code Block
languagetext
themeRDark
titleListing 2. Copying the binary libraries
cd ubispservlet\webapp\WEB-INF\lib
copy *.jar <webapp_directory>\WEB-INF\lib\.

...

The HTTP endpoint is the fully qualified URL address where ServiceProviderServlet is bound. The path of ServiceProviderServlet is /spsso.
The identity is generated into a file named identity.properties. This file is located in the /WEB-INF/saml2/sp/identity.properties path of the web application.

Code Block
languagetextthemeRDark
titleListing 3. Creating the Service Provider identity
cd <webapp_directory>\WEB-INF
mkdir saml2\sp
java -jar lib\ubisaml2.jar Generate https://sp.example.com/webapp/spsso -o saml2\sp

...

SAML metadata is an XML formatted document. The metadata represents the public information about the Service Provider identity.

Code Block
languagetextthemeRDark
titleListing 4. Write the SAML metadata of the Service Provider to the c:\temp\sp.xml file
cd <webapp_directory>\WEB-INF
java -jar lib\ubisaml2.jar Metadata saml2\sp -f c:\temp\sp.xml

...

Using the Ubisecure Management Application

Image RemovedImage Added

Figure 1. Select SAML Service Provider from the drop down list and click Activate


Image RemovedImage Added

Figure 2. Click Browse and select the file with the SP metadata, then click OK 


Image RemovedImage Added

Figure 3. The SAML Service Provider ID field now shows the Entity ID of your SP

...

Download the Ubisecure IDP metadata from the SAML 2.0 link on the Ubisecure Management home page. Save this file into the /WEB-INF/saml2/sp/metadata folder of your web application.

Image Modified

Figure 4. Click SAML 2.0 to download the IDP metadata file

...