Integration with OnePass on Linux (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.
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
To get a copy of the appropriate repository file for your system, see https://shibboleth.net/downloads/service-provider/RPMS/ for a simple drop down form that will generate a copy for you. Per the note above, RHEL 7 systems must use the CentOS 7 repository.
Installation varies by OS, but usually you just drop the definition file into a directory such as /etc/yum.repos.d
yum install shibboleth.x86_64 (for 64-bit machine, for 32-bit machine, use package “shibboleth”)
SELinux enabled but permissive / SELinux disabled
Restart shibboleth service and apache service
Verify Shibboleth installation with
– yum info shibboleth.x86_64
– Open a web browser, go to https://localhost/Shibboleth.sso/Status (case sensitive), it should return an XML document with:
<Status><OK/></Status>
**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 /etc/shibboleth/
An apache configuration file for Shibboleth should be found in /etc/httpd/conf.d/shib.conf
In /etc/shibboleth, update below information on shibboleth2.xml
ApplicationDefaults, update entityID=”sp.example.org” to your application hostname, change REMOTE_USER=”NameID”, add signingAlg=”http://www.w3.org/2001/04/xmldsig-more#rsa-sha256″ digestAlg=”SHA256″
e.g. <ApplicationDefaults entityID=”https://abc.cuhk.edu.hk/shibboleth” REMOTE_USER=”eppn persistent-id NameID” signingAlg=”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 are 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 which will be provided by OnePass Support.
Restart shibd and httpd after configuration, and check any error at /var/log/shibboleth/
Sample shibboleth2.xml for Linux 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.
Provide your CADS no. to OnePass Team
The entity ID of your application
Metadata URL (The default is https://{yourhostname}/Shibboleth.sso/Metadata), must be accessible from campus network
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 PHP is installed in your server
By default, your server’s path /secure is protected by OnePass. If you want to change it, please refer to /etc/httpd/conf.d/shib.conf
The core attributes would be passed to your application by default, additional attributes need by request
Create a test.php in your /secure/test.php to show phpinfo()
<% php phpinfo() %>
Open a browser to access https://{yourhostname}/secure/test.php
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 REMOTE_USER
e.g. for php to get the LoginID using php variable: echo ‘LoginID:’ . $_SERVER[‘NameID’]
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.