Log In By CAS

Since Seafile-pro 6.3.0, Seafile supports CAS single-sign-on protocol.

Requirements

Supposed you have a usable CAS service, and the service can be accessed by the https://<CAS-SERVER-IP>:<PORT>/cas/.

configure seahub_settings.py

  • Add the following lines in conf/seahub_settings.py
  1. ENABLE_CAS = True
  2. CAS_SERVER_URL = 'https://192.168.99.100:8443/cas/'
  3. CAS_LOGOUT_COMPLETELY = True
  4. # Uncomment following line if CAS server is using self-signed certificate
  5. #CAS_SERVER_CERT_VERIFY = False
  • Restart the seahub
  1. ./seahub.sh restart

Now, you can login to Seafile web interface with CAS authentication. Please click the “Single Sign-on” on the Seafile’s login page.