Enterprise Tester with SAML 2.0 capable identity provider services
Enterprise Tester supports SAML 2.0 connections to an external Identity Provider (IdP).
While ET should work with most IdPs that support SAML 2.0, we currently only test with the following IdPs:
This article will cover the basics, from the Enterprise Tester side of the configuration, and then provide an example of setting up Okta with Enterprise Tester showing both Okta and Enterprise Tester configuration.
- While a SAML 2.0 configuration is enabled, it will also be enforced when attempting to log into the application GUI. This means that local user accounts and passwords will no longer work for this purpose.
- Enterprise Tester API requests do not support SAML 2.0. The existing API authentication methods will continue to work as normal whether SAML 2.0 is configured or not.
- Enterprise Tester SAML 2.0 connections only handle authentication. User accounts, groups and permissions must be configured in Enterprise Tester separately.
SAML 2.0 Configuration Basics
Currently, a SAML 2.0 connection cannot be configured via the Enterprise Tester user interface; It must, instead, be configured via a configuration file located on the server Enterprise Tester is running on. This is done by adding several key/value pairs to the appSettings section of the web.config file. For more information about appSettings, please refer here.
To be able to configure several of the following properties, the IdP must be prepared first. The process will differ in different IdPs, an example of configuring Okta is given further down in this article.
|SAML.Enabled||To turn SAML support on or off||false||<add key="SAML.Enable" value="true"/>||Required setting|
|SAML.Provider||Used to switch between implementation styles of SAML 2.0||n/a||<add key="SAML.Provider" value="Microsoft" />||Optional setting|
This should usually be set to "Microsoft" but may need to be omitted all-together, depending on IdP
|SAML.Issuer||IDP Issuer URL||n/a||<add key="SAML.Issuer" value="http://www.okta.com/cKZ3800234nlvM8s"/>||Required setting|
Requires IdP configuration first
|SAML.IDP||IDP SSO URL||n/a||<add key=" "/>|
|SAML.Certificate||X.509 Certificate||n/a||<add key="-----BEGIN CERTIFICATE----- certificate body -----END CERTIFICATE-----"/>||Required setting|
Should be entered as a single line and should include the begin and end certificate tags
Requires IdP configuration first
|SAML.Logout||URL that a user will be redirected to if they choose to log out of Enterprise Tester||Enterprise Tester Login URL||<add key="SAML.Logout" value="https://myapps.microsoft.com"/>||Optional setting|
If not configured, a user choosing the logout option will be automatically logged back in again provided there session is still active with the IdP.
Example of the configuration as it might appear in the web.config file alongside other settings
Example - Enterprise Tester with Okta
Okta is an enterprise-grade, identity management service, built for the cloud, but compatible with many on-premises applications. With Okta, IT can manage any employee's access to any application or device. Okta runs in the cloud, on a secure, reliable, extensively audited platform, which integrates deeply with on-premises applications, directories, and identity management systems.
1) In Okta, create Enterprise Tester integration using SAML 2.0.
2) In Okta the SAML General Settings need to contain the following.
- Single Sign URL - this must be your Enterprise Tester instance e.g
- Audience URI - this is A9CC4713-F3D5-4321-9C19-14A58E117364
3) Make sure you record IDP information when selecting the "View Setup Instructions".
Configuring Enterprise Tester to use Okta
Add the following keys to the appSettings section in the Enterprise Tester web.config file. Note: Values used within these appsettings will be available after completing the Okta configuration above.
1) Enable SAML Support
2) IDP Issuer
3) IDP SSO URL
4) X.509 Certificate
5) Specify logout url
Do not add an Enterprise Tester URL here or users will be automatically logged back into Enterprise Tester.
SHA-256 XML Signature Support
On the Enterprise Tester server:
Download CLR Security Update
Download GACUTIL from here: http://www.microsoft.com/en-us/download/confirmation.aspx?id=19988.
Extract Security.Cryptography.dll assembly
Add Security.Cryptography.dll to GAC
full path... gacutil.exe /i Security.Cryptography.dll
View Security.Cryptography.dll assembly
gacutil.exe /l Security.Cryptography
Update machine.config in C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config and C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config. Insert the following code block after <system.web> section in <configuration>
"Security.Cryptography.RSAPKCS1SHA256SignatureDescription, Security.Cryptography, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31bf3856ad364e35"