index.rst 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .. _security_tutorials_cas:
  2. Authentication with CAS
  3. =======================
  4. This tutorial introduces GeoServer CAS support and walks through the process of
  5. setting up authentication against a CAS server. It is recommended that the
  6. :ref:`security_auth_chain` section be read before proceeding. Reference information on cas setup
  7. is also available :ref:`cas`.
  8. CAS server certificates
  9. -----------------------
  10. A running `CAS server <https://apereo.github.io/cas/5.3.x/index.html>`_ is needed.
  11. The first step is to import the server certificates into the GeoServer JVM.
  12. If you need to export the `CRT` from the CAS server, you must execute the following
  13. command on the server JVM::
  14. keytool -export -alias <server_name> -keystore <cas_jvm_keystore_path> -file server.crt
  15. Once you have the `server.crt` file, the procedure to import the certificate into
  16. the JVM is the following one::
  17. keytool -import -trustcacerts -alias <server_name> -file server.crt -keystore <path_to_JRE_cacerts>
  18. Enter the keystore password and confirm the certificate to be trustable.
  19. Configure the CAS authentication provider
  20. ------------------------------------------
  21. #. Start GeoServer and login to the web admin interface as the ``admin`` user.
  22. #. Click the ``Authentication`` link located under the ``Security`` section of
  23. the navigation sidebar.
  24. .. figure:: images/cas1.jpg
  25. :align: center
  26. #. Scroll down to the ``Authentication Filters`` panel and click the ``Add new`` link.
  27. .. figure:: images/cas2.jpg
  28. :align: center
  29. #. Click the ``CAS`` link.
  30. .. figure:: images/cas3.jpg
  31. :align: center
  32. #. Fill in the fields of the settings form as follows:
  33. .. figure:: images/cas4.jpg
  34. :align: center
  35. #. Update the filter chains by adding the new CAS filter.
  36. .. figure:: images/cas5.jpg
  37. :align: center
  38. #. Select the CAS Filter for each filter chain you want to protect with CAS.
  39. .. figure:: images/cas6.jpg
  40. :align: center
  41. Be sure to select and order correctly the CAS Filter.
  42. #. Save.
  43. Test a CAS login
  44. -----------------
  45. #. Navigate to the GeoServer home page and log out of the admin account.
  46. #. Try to login again, you should be able now to see the external CAS login form.
  47. .. figure:: images/cas7.jpg
  48. :align: center