Path to function: Management > Connections > Add > CAS

OpenAthens can connect to CAS (Apereo/JASIG's Central Authentication Service) so that you do not have to issue personal accounts for your users (you will still need your OpenAthens administrator account).

As well as the ability to use local accounts instead of maintaining a separate set of credentials, accesses to federated resources that already involve discovery (identifying the users' home organisation) will take the user directly to your CAS login.


Before you start you will need:

If you are migrating from an alternative IdP such as Shibboleth, also see: Migrating from your own IdP

If you're unsure about anything or get stuck, we're happy to help. Hit the support link in the top right of the admin area to get through to your local support guys.

Add the connection in OpenAthens

In the administration interface as the domain administrator, go to Management > Connections

  1. Click the add button on the left and select CAS

  2. Enter the CAS metadata URL or upload the xml file as supplied by your IT team.

    1. The metadata URL is typically something like https://HOST_NAME/cas/idp/metadata and would need to be accessible outside of your network if used.

  3. Set the user identifier field to match the attribute you are sending as the user identifier. This can be changed later, but needs to have a value to save the page. 

  4. Set the display name to match the attribute you want to use - if you are only sending one attribute or are not sure, you can set this the same as the user identifier. Again this can be changed later, but needs to have a value to save the page

  5. Do not set it as default at this time.

  6. Save changes

  7. Make a note of the metadata address displayed on the relying party tab
The detail fields displayed are

Display name

The name of the connection as it will appear at our authentication point when there is a choice of connector. Defaults to the name specified in the CAS metadata

Metadata URL

Where the CAS metadata is published. Populated only when metadata is loaded from a URL, it allows easy updates to the connection if your CAS system changes.


The entity identifier of your CAS instance. Drawn from the CAS metadata.

SSO endpoint

The login address, typically https://HOST_NAME/cas/idp/profile/SAML2/POST/SSO. Drawn from the CAS metadata.
Display name attributeThe attribute you specify here supplies the value displayed in account lists and audit where you would normally see the OpenAthens username. It does not have to be different from the Unique user attribute claim.
Unique user attribute

The attribute you specify here must supply a value unique to the user within the current user set and should supply a pseudonymous  value unique to that user for all time. This is used by the system to tell users apart and also used in the generation of targetedIDs and statistics. It does not have to be the username entered at your login point.

If using the SAML NameID here, the requirement for unique and persistent limits the type to either of:

  • urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
  • urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress

Not live = connection can only be used in debug mode. The visibility and default flags are ignored.

Live and visible (if this is the only local connection) = connection can only be used in debug mode.

Live and visible (if there are multiple live and visible connections) = users are offered a choice of connections, including this one. There is a domain preference to include OpenAthens accounts or not.

Live & visible & default = This is your only login option and users will be sent directly to your login whenever the organisation is known. A successful authentication will tell the authentication point to remember that location. A failed authentication will clear that setting. Debug mode will not show other login options.

Changes to the status usually take effect within moments.

Create local accounts

Automatically - any user authenticated by your system and passed back to us is deemed ok and will be accepted by the system

Manually - only user IDs you have previously uploaded via the list page will be accepted by our systems

Remove local accounts

Salt value

The salt used to generate a targetedID for users authenticated by this connection.

You might edit it if you were migrating from something like OpenAthens LA to MD so that your users can have the same targetedID value when they change systems. If you set it to blank the connection will use the same salt as your MD accounts.

Modifying this after you go live will change the identifiers seen by service providers for your users... which is rarely desirable.

Add OpenAthens as a service in CAS

The following section assumes you are familiar with CAS.

  1. Register the address you copied from the relying party tab earlier as both the entityID and metadata address in your CAS service registry - e.g: 

      "@class" : "",
      "serviceId" : "",
      "name" : "OpenAthens",
      "id" : 10000003,
      "evaluationOrder" : 10,
      "metadataLocation" : ""
  2. Set up your attribute release policy to release a unique user identifier which can be an attribute or the SAML nameID, but it must be persistent and unique amongst current users. Ideally it would be pseudonymous and unique for ever (i.e. never assigned to a new user).

Depending on your library's needs, this may be sufficient however you will often want to release more information so that attributes can be mapped to OpenAthens attributes and used for organisation, statistics, resource access, display names and resource allocation - e.g:

In all cases, the library will need the name of the attribute(S) for the next part of the set-up. Attribute names are case sensitive.

Configure mappings and permission sets

The final two areas to configure are permission set rules and attribute mappings:

When you're ready to go live, check both the live and visible boxes and then save. Your new connection should be testable a few seconds later.

The other tabs

Certificates - allows you to add a second certificate. Used when you need to change a server certificate on your end and want to minimise downtime for your users.

Advanced - Allows you to make several changes that are rarely necessary:

Anything to watch out for?

The minimum supported TLS version is 1.2.

When you use the refresh metadata button it will update everything in the connection with values from the metadata including endpoints, names and certificates. This will also undo any manual changes you have made on the advanced tab. The metadata URL can be removed to guard against this if you choose.


Pseudonymous identifiers are recommended for the unique user attribute to avoid potential problems with data protection legislation as that identifier will live on for a time in the audit trail after other mapped attributes are cleared.