You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

You can find more information about SAML authentication and its communication flow in the SAML Authentication article.


The instructions given below are based on version 3.0.12 of the Circulation Manager. Currently, the Circulation Manager supports only SAML version 2.0 or greater. As of this writing, the instructions have been tested with the following single-sign-on products:

  • ?
  • Microsoft ADFS (version X.x)

Description of Data Required for Configuration

SAML-based authentication for patrons requires certain configuration to be set up to work correctly. Configuration parameters are described in the Table I.

Table I. SAML Authentication Provider Configuration

Parameter Name

Mandatory

Description

Service Provider’s XML metadata

Yes

SAML metadata of the Circulation Manager's Service Provider in an XML format. MUST contain exactly one SPSSODescriptor tag with at least one AssertionConsumerService tag with Binding attribute set to urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST.

Service Provider’s private key

No

Private key used for encrypting and signing SAML requests

Identity Provider’s XML metadata

Yes

SAML metadata of Identity Providers in an XML format.

MAY contain multiple IDPSSODescriptor tags but each of them MUST contain at least one SingleSignOnService tag with Binding attribute set to urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect.

You can use OneLogin SAML Tools to build IdP metadata

Internal signing secret for OAuth and SAML bearer tokens

No

Secret used for signing Bearer tokens issued by SAML authentication provider and used by client applications to confirm their authentication status

Generating the Required Service Provider Data

In order to get started with a SAML configuration in the Circulation Manager, you will need to generate or obtain the requisite information shown above. Since the Circulation Manager acts as the Service Provider, you must create an XML document with the appropriate service information included. If you are new to SAML, it will be easiest to use tools provided by OneLogin, Inc., whose SAML developers toolkit is used to code this integration.  The OneLogin SAML Tools include two you will want to use to build the Circulation Manager's SP metadata document:

While the Service Provider private key is optional, we highly recommend–and the SAML Identity Provider may require–that the SAML requests from the Circulation Manager be signed. So we will begin by creating a self-signed X.509 certificate whose public key will be included in your Service Provider metadata document. If you will not be using a certificate for signing requests, you can skip section A and B below, and go straight to section C.

Last, in addition to the Service Provider metadata, you will also need an XML document describing access to the Identity Provider's system. However, that document will have data that must come from organization operating the Identity provider (perhaps a third-party to the library). If possible, obtain a copy of the provider's Identity Provider XML metadata document. If you must create your own, OneLogin also provides a tool to generate the IdP document: Build IdP Metadata. For the configuration steps below, we assume you will get the IdP XML document direct from the provider.

A. Generate a Self-Signed Certificate

To begin, you will need an X.509 certificate. This could be commercially obtained certificate. However, in our limited experience, a self-signed certificate will be acceptable. OneLogin provides an online form to make it easy to create a basic cert. They do provide a warning related to the security of information you supply. For most implementations, the online generator provides sufficient security; however, if security is a major concern for your Circulation Manager implementation, you should create the certificate separately, on a local computer. Instructions to create

B. Adding the Certificate to Your Circulation Manager

(in progress)

C. Build SP XML File

(in progress)

Configuring a SAML Patron Authentication Integration

To set up a new SAML authentication provider in Circulation Manager, follow the steps below.

  • Login to the Circulation Manager interface as usual
  • Click the Patron Authentication item in the left sidebar
  • Click Create new patron authentication service
  • Enter a name for the integration, probably with the library name to which it connects; for example, Somewhere University Library
  • Select the SAML 2.0 Web SSO item from the Protocol drop down field
  • (image goes here)
  • Copy the XML document text shown at the bottom of the Build SP Metadata page from Section C above
  • Paste the XML document you copied into the Service Provider's XML metadata field, as shown below
  • (image goes here)
  • Copy the XML document text you received for the Identity Provider service
  • Paste the XML document you have copied into the Identity Provider's XML metadata field, as shown below
  • (image goes here)
  • Copy the text from the Private Key for sign the metadata field in the Build SP Metadata page from Section C above
  • Click the Optional Fields bar
  • Paste the private key text you have copied into the Service Provider's private key field, as shown below
  • (image goes here)
  • If desired for initial debugging, you can turn on Debug mode by entering the numeral 1 into the Service Provider's debug mode field.
  • To assign a library to this integration, click the Libraries bar
  • Click the drop-down menu for the Add Library field
  • Select the library name for which the SAML integration will be used
  • Review the configuration fields and click the Submit button when you are finished
  • (final image here)


If you want SAML assertions to be encrypted you need to set up an SP’s private key in Optional Fields group:

After you filled in all the parameters, you can link this provider to a library using Libraries group and then click on Submit to finish.

  • No labels