This sample is an authentication plugin for the Web Client and WebDrawer.
This plugin relies on the Component Space library. You can download a free trial version of Component Space but to use it permanenty you will need to purchase a license.
This sample has been tested on 9.1 but should work in versions from 8.3.
Post any questions regarding this sample in the SDK support forum.
To build the project:
- copy the files ComponentSpace.SAML2.dll, HP.HPTRIM.ServiceAPI.Common.dll, and HP.HPTRIM.ServiceAPI.Model.dll to the lib folder
- build the project
- copy the files ComponentSpace.SAML2.dll, saml.config, and ComponentSpaceSAMLPlugin to your Web Client bin folder
Edit the file hprmServiceAPI.config and add the folliwng (as a child of the root element):
<pluginAssemblies>
<add name="ComponentSpaceSAMLPlugin"/>
</pluginAssemblies>
Edit the file saml.config (which was copied to the Web Client bind folder previously) so that:
- ServiceProvider\Name == the name of the application in your IdP
- PartnerIdentityProvider\Name is the URL for your IdP
- SingleSignOnServiceUrl and SingleLogoutServiceUrl are correct for your IdP
- PartnerCertificateFile is matched with a certificate sourced from your IdP
IIS will not be handling authentication so we use IIS Manager to allow anonymous access only.
For further assistance, including a run through of configuration in Azure AD, see this post.