Authentication with CAS

This tutorial introduces GeoServer CAS support and walks through the process of setting up authentication against a CAS server. It is recommended that the Authentication chain section be read before proceeding. Reference information on cas setup is also available CAS integration.

CAS server certificates

A running CAS server is needed.

The first step is to import the server certificates into the GeoServer JVM.

If you need to export the CRT from the CAS server, you must execute the following command on the server JVM:

keytool -export -alias <server_name> -keystore <cas_jvm_keystore_path> -file server.crt

Once you have the server.crt file, the procedure to import the certificate into the JVM is the following one:

keytool -import -trustcacerts -alias <server_name> -file server.crt -keystore <path_to_JRE_cacerts>

Enter the keystore password and confirm the certificate to be trustable.

Configure the CAS authentication provider

  1. Start GeoServer and login to the web admin interface as the admin user.

  2. Click the Authentication link located under the Security section of the navigation sidebar.

    ../../../_images/cas1.jpg
  3. Scroll down to the Authentication Filters panel and click the Add new link.

    ../../../_images/cas2.jpg
  4. Click the CAS link.

    ../../../_images/cas3.jpg
  5. Fill in the fields of the settings form as follows:

    ../../../_images/cas4.jpg
  6. Update the filter chains by adding the new CAS filter.

    ../../../_images/cas5.jpg
  7. Select the CAS Filter for each filter chain you want to protect with CAS.

    ../../../_images/cas6.jpg

    Be sure to select and order correctly the CAS Filter.

  8. Save.

Test a CAS login

  1. Navigate to the GeoServer home page and log out of the admin account.

  2. Try to login again, you should be able now to see the external CAS login form.

    ../../../_images/cas7.jpg