Koozali.org: home of the SME Server

Enable SCIM support in an ibay

Offline beast

  • *
  • 245
  • +0/-0
Enable SCIM support in an ibay
« on: June 06, 2021, 05:01:36 PM »
Hi All

I am unable to get a php script that support SCIM to work

If I for example use MS Azure AD it will make a url like https://domain/scim/User

The https://domain/scim/ part is a folder with an index.php file but the User part is an instruction to the php file and does not correlate with the folder structure.

I have tried to use the following .htaccess file:

Code: [Select]
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>

RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>

But when I call the url https://domain/scim/User it return with: "You don't have permission to access https://domain/scim/User on this server."

I tried to add +FollowSymLinks to options and I get: "The requested URL [local folder]/scim/index.php was not found on this server."

What to do?

Thank you for any reply
/Benny
« Last Edit: June 06, 2021, 05:06:10 PM by beast »