I have a Drupal installation configured with shib_auth and some mod_rewrite rules in the top level directory to ensure that users hiting the site are signed in. This is working correctly.
But I have one module that provides a sort of API which is secured by Oauth. I need an exception so the API path does not get-redirected to SSO.
The path I want to except is: https://base-url/h5p/d2l/launch
I have attempted to use: RewriteRule ^h5p - [L] But this doesn't appear to be working.
The full mod_rewrite rule is below:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#RewriteRule ^h5p - [L]
RewriteRule ^Shibboleth\.sso - [L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Any help is appreciated.