Skip to sub-navigation Skip to content Skip to footer
Status Alerts
Technology Services
  • myVCU
  • Email
  • eLearning
  • Submit a Help Request
    • Home
    • About Us
    • IT Support Center
    • Software Center
    • IT Knowledge Base
      1. Technology Services
      2. About Us
      3. Application Services
      4. Web Services
      5. Resources
      6. CAS (Central Authentication Service)
      7. Using CAS on a VCU Website

      Using CAS on a VCU Website

      In order to use CAS on a website, your website must be stored on a CAS-enabled server.

      HTML pages and corresponding documents (pdfs, etc) can be protected by CAS. If a user tries to access a URL with CAS protected directory, they will be prompted to log in with their VCU eID to view the site's content.

      Access for Any eID

      In the directory, you would like to protect, create a .htaccess file. An .htaccess can be created by using Notepad or any text editor, and saving the document as .htaccess. Add the following text to your .htaccess file:

      AuthName "CAS"
      AuthType CAS
      require valid-user
      

      Access for Individual eIDs

      Create a .htaccess file as described above. In the file, paste the following text - replace foo with any group name, and the AuthGroupFile path to a path where you will store your group_file document:

      AuthType CAS
      AuthGroupFile /www/www.ts.vcu.edu/etc/group_file
      require group foo
      

      The group file document should contain a list of eIDs with access and is formatted. This file can be saved with the extension of .htpswrd and should contain a list of eIDs as in the following example:

      foo: eID1 eID2
      

      All the eids need to be on the same line. If you would like to use multiple lines, add additional groups

      require group foo foo1
      foo: eID1 eID2
      foo1: eID3 eID3
      

      If you are only managing a few users, you can put all the information in a single .htaccess file on your root.

      AuthName "CAS"
      AuthType CAS
      require user eID1 eID2 eID3 eID4 eID5
      

      Note: Predefined groups by departments and employee type are not currently available in CAS.

      This article was updated: 01/30/2018

      • Virginia Commonwealth University
      • Division of Administration
      • Technology Services
      • 707 W. Broad St., Box 843059
      • Richmond, VA 23284
      • Phone: (804) 828-2227
      • Privacy | Accessibility | Webmaster
      • Updated: 01/30/2018
      • Facebook
      • Twitter
      • YouTube
      • Instagram

      Virginia Commonwealth University is a nationally renowned public research institution dedicated to the success and well-being of all members of its community. VCU student, faculty and staff groups and associations are open without regard to any characteristic or identity protected by law.