Skip to content

A free open source IT asset/license management system

Removed SCIM warning

snipe1d0f5876cdb9
diff --git a/resources/lang/en-US/admin/settings/general.php b/resources/lang/en-US/admin/settings/general.php
index 705134aa7a..061024262e 100644
--- a/resources/lang/en-US/admin/settings/general.php
+++ b/resources/lang/en-US/admin/settings/general.php
@@ -170,7 +170,7 @@ return [
'blocked_api_user_agents_text' => 'Blocked API User-Agent patterns',
'blocked_api_user_agents_help' => 'One pattern per line. Each pattern is matched case-insensitively against the start of the request\'s User-Agent, so "curl/" matches "curl/8.5.0" but not a UA that only mentions "curl/" later in the string. The textarea is pre-filled with common scripted clients (curl, Postman, python-requests, etc.). Add, remove, or clear lines as needed.',
'block_blank_api_user_agents_text' => 'Also reject API requests with a blank User-Agent',
- 'block_blank_api_user_agents_help' => 'When enabled, API requests that arrive without a User-Agent header (or with an empty one) are rejected. <strong>Leave this off if you have integrations that legitimately send an empty User-Agent, for example, Microsoft Entra ID SCIM provisioning.</strong>',
+ 'block_blank_api_user_agents_help' => 'When enabled, API requests that arrive without a User-Agent header (or with an empty one) are rejected. <strong>This will not apply to SCIM requests, as Microsoft EntraID sends a blank User-Agent.</strong>',
'blocked_api_user_agent_rejected' => 'This API endpoint rejected the request based on its User-Agent.',
'login_common_disabled_text' => 'Disable other authentication mechanisms',
'login_common_disabled_help' => 'This option disables other authentication mechanisms. Just enable this option if you are sure that your REMOTE_USER login is already working',
diff --git a/resources/views/settings/api.blade.php b/resources/views/settings/api.blade.php
index 4725d61972..45baab7785 100644
--- a/resources/views/settings/api.blade.php
+++ b/resources/views/settings/api.blade.php
@@ -87,7 +87,6 @@
<label for="block_blank_api_user_agents">{{ trans('admin/settings/general.block_blank_api_user_agents_text') }}</label>
</label>
<p class="help-block">
- <x-icon type="warning" class="text-warning"/>
{!! trans('admin/settings/general.block_blank_api_user_agents_help') !!}
</p>
{!! $errors->first('block_blank_api_user_agents', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
diff --git a/routes/scim.php b/routes/scim.php
index 3aaae04309..9062b7c685 100644
--- a/routes/scim.php
+++ b/routes/scim.php
@@ -16,7 +16,7 @@ use Illuminate\Support\Facades\Route;
SCIMRouteProvider::publicRoutes(); // Make sure to load public routes *FIRST*
-Route::middleware(['auth:api', EnforceApiUserAgent::class, 'api-throttle:api', 'authorize:superadmin'])->group(function () {
+Route::middleware(['auth:api', EnforceApiUserAgent::class . ':allow_blank_user_agent', 'api-throttle:api', 'authorize:superadmin'])->group(function () {
SCIMRouteProvider::routes(
[
/*