Integration with OnePass on Windows (CUHK Login via ADFS)
Information included on this page will help you to install and use Shibboleth for authentication and integration with OnePass on an Linux or Windows or other servers.
Service Provider using Windows version below
– Windows Server 2008 R2, or above
IIS is being started with SSL enabled
SSO and SLO should be signed
Assertion should be signed and encrypted
Signing algorithm should be SHA256 for the federation
The application server time must be kept up-to-date and accurate
Logout button should be enhanced for global sign out OnePass session
For IIS7 or above and Shibboleth SP 3.0
Prerequisites
A default installation of IIS is enough but “ISAPI Extensions” & “ISAPI Filters” have to be installed
Download the latest .msi Shibboleth SP installer (The 32-bit web server modules can function with a 64-bit shibd service, so there is no need to install a 32-bit shibd to handle 32-bit app pools)
Run the installer, accepting the default settings and “Configure IIS7 module” must be checked, the shibd service will also be installed for you
Reboot your server after installation completed
Verify Shibboleth installation with
In Services, the Shibboleth service should have Service = Running, Startup Type = Automatic and Logon As = Local System
Check C:\Windows\System32\InetSrv\config\applicationHost.config, IIS7 Shibboleth modules should be added as below
Run the installer, accepting the default settings, the shibd service will also be installed for you
Reboot your server after installation completed
Verify Shibboleth installation with
In Services, the Shibboleth service should have Service = Running, Startup Type = Automatic and Logon As = Local System
Open IIS Manager, click the server name and open ISAPI Filters. The settings should be
Name = Shibboleth and
Executable = C:\opt\shibboleth-sp\lib64\shibboleth\isapi-shib.dll
In IIS Manager, click the server name and open Handler Mappings. The setting should be
Path = *.sso,
State = Enabled,
Path Type = Unspecified,
Handler = IsapiModule, and
Entry Type = Inherited
In IIS Manager, click the website name under Sites, then open Handler Mappings. The settings should be
Path = *.sso,
State = Enabled,
Path Type = Unspecified,
Handler = IsapiModule, and
Entry Type = Inherited
**The configuration below is for your reference only. Some parameters and paths may be different with different Shibboleth versions / sub-versions. Kindly double-check the corresponding path name/certificate name in your configuration file.
Default configuration files should be found in C:\opt\shibboleth-sp\etc\shibboleth\
In C:\opt\shibboleth-sp\etc\shibboleth\, update below information on shibboleth2.xml
– Site id, In the ISAPI element, verify the Site id=”1″. Clicking Sites in IIS will reveal the ID assigned to this site
– name, update the name “sp.example.org” to your website hostname
– RequestMap, update Hostname from “sp.example.org” to your website hostname
– Path name, update Path tags to create a path to the parts of the service that will be Shibboleth-enabled
– ApplicationDefaults, update entityID=”sp.example.org” to the hostname, e.g. https://abc.cuhk.edu.hk/shibboleth, change REMOTE_USER=”NameID”, addsigningAlg=”http://www.w3.org/2001/04/xmldsig-more#rsa-sha256″ digestAlg=”SHA256″
– Sessions lifetime: update to “28800”, timeout: update to “1200”
– SSO entityID, should be updated to OnePass entityID, the entityIDs for UAT / production environments to be provided by OnePass Support.
– Handle type: update to “MetadataGenerator”, signing: update to “true”
– Errors supportContact: update to a valid email address for the person managing the SP configuration
– MetadataProvider type: update the url to OnePass UAT / Production environments that provided by OnePass Support
Example for installing an X509 certificate (If you want to generate a self-signed certificate for “CredentialResolver”)
– Use the keygen.bat command in C:\opt\shibboleth-sp\etc\shibboleth to create new certificate
– keygen.bat –h {your hostname} –e {IDP entityID} –y {number of years to issue}
e.g. keygen.bat –h abc.cuhk.edu.hk –e http://xyz.cuhk.edu.hk/services/trust –y 10 (Production)
Restart shibboleth service and IIS service after configuration, and check any error at C:\opt\shibboleth-sp\var\log\shibboleth\
Sample shibboleth2.xml for Windows host and OnePass testing environment
Core Attributes (The attributes are released by default)
such as Email Address, Role (Staff/Student/Alumni), Display Name
Additional attributes
Upon request and requires approval
For more information about the specifics of the attributes released, please contact ITSC Service Desk.
The core attributes would be passed to your application by default, additional attributes need by request
Include OnePass Logout URL plus your application logout together for your logout button
OnePass team would import your metadata and have configuration on OnePass Testing platform, email notification with testing accounts would be sent to you once ready for test
Test completion, vulnerability scanning must be pass before migrating to OnePass Production environment
Please schedule the production with OnePass Team 3 working days in advance.
Remember to clean up your browser cache first, it’ll be good to use incognito or InPrivate mode for testing
Assume ASP.Net is enabled in your server, access to server variables in ASP does work, but appears to require the use of upper-case variable names.
ASP.NET does not have this limitation but apparently only supports the use of server variables when the Application Pool is in “Integrated” rather than “Classic” pipeline mode.
By default, your server’s path /secure is protected by OnePass. If you want to change it, please refer to
C:\opt\shibboleth-sp\etc\shibboleth\shibboleth2.xml and update the “Path name”
Create a test.aspx in your /secure/test.aspx to print all variables:
<%
Response.Write(“<h3>Server Variables</h3>”); foreach (stringvarin Request.ServerVariables)
{
Response.Write(var + ” = ” + Request[var] + “<br>”);
}
%>
You will be redirected to OnePass login page, key in valid Login ID and password
You should be able to authenticate and find your Login ID in server variable NameID and and REMOTE_USER
e.g. for getting attribute variable: Request.ServerVariables(“REMOTE_USER”), Request.ServerVariables(“{attr name}”)
Logout, you will be redirected to OnePass Logout page. Access your website again and see if you have to fill in your credential to login OnePass
This website uses Cookies, including Cookies from Google Analytics, to ensure you get the best browsing experience. If you “Continue” to use this site, you consent to the use of Cookies. Read more about Cookies
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
Cookie
Duration
Description
cookielawinfo-checkbox-analytics
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional
11 months
The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance
11 months
This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy
11 months
The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.