Example .htaccess file
#### Restricting access to NYU users #### AuthType openid-connect AuthName "Authorized NYU users only" Require valid-user #### Restricting access to specific NYU users based on their NetID #### # abc123 and abc345 are two different NetIDs in this example AuthType openid-connect AuthName "Authorized NYU users only" Require claim sub:abc123 Require claim sub:abc345 #### Restricting based on CIMS groups #### # To restrict access to NYU users who are members of a # are in a particular group # Not available at this time #### Restricting based on .htpasswd file #### # You can password protect a web directory so that only a given # set of users can access it. # You'll need to create a .htpasswd file that is referred # to in your .htaccess file. The .htpasswd should reside outside # your web hierarchy for security reasons. # To create and/or add users to your .htpasswd file use the # /usr/bin/htpasswd command. # # note: set the permissions on .htpasswd as follows # "chmod 644 .htpasswd" # and make sure the permissions on "some-nonweb-dir" are set to 711 # AuthType Basic AuthUserFile /home/username/some-nonweb-dir/.htpasswd AuthName "Members ONLY" require valid-user #### Restricting based on domains #### # You can also restrict access to a web directory based on domains # deny from all allow from .cs.nyu.edu .cims.nyu.edu .net.nyu.edu .med.nyu.edu AuthType Basic AuthName "Members ONLY"