From 6f10ab9385a60fb0053f0950dc6e3cbc1069777d Mon Sep 17 00:00:00 2001 From: Jesper Kristensen Date: Mon, 16 Nov 2026 14:54:34 +0100 Subject: [PATCH 1/2] Add read-only MCP end-point with drupal/mcp_server - Add mcp_server, mcp_server_oauth, mcp_server_tool_bridge and tool_belt. - Map five read tools of Tool Belt with the OAuth scope mcp:read. - Add the role os2loop_user_mcp that gives access to /mcp. - Let nginx send /.well-known/ requests to Drupal. --- .docker/templates/default.conf.template | 4 +- composer.json | 4 + composer.lock | 2958 +++++++++++++---- config/sync/core.extension.yml | 11 + config/sync/mcp_server.settings.yml | 11 + ...ge.mcp_tool_config.entity_field_values.yml | 14 + ...ool_bridge.mcp_tool_config.entity_list.yml | 14 + ...idge.mcp_tool_config.entity_load_by_id.yml | 14 + ...cp_tool_config.entity_load_by_property.yml | 14 + ...bridge.mcp_tool_config.entity_metadata.yml | 14 + .../simple_oauth.oauth2_scope.mcp_read.yml | 19 + ...oauth.oauth2_token.bundle.access_token.yml | 10 + ...le_oauth.oauth2_token.bundle.auth_code.yml | 10 + ...auth.oauth2_token.bundle.refresh_token.yml | 10 + config/sync/simple_oauth.settings.yml | 7 + ...ple_oauth_client_registration.settings.yml | 5 + .../simple_oauth_server_metadata.settings.yml | 24 + ....user_add_role_action.os2loop_user_mcp.yml | 14 + ...er_remove_role_action.os2loop_user_mcp.yml | 14 + config/sync/user.role.os2loop_user_mcp.yml | 16 + 20 files changed, 2559 insertions(+), 628 deletions(-) create mode 100644 config/sync/mcp_server.settings.yml create mode 100644 config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_field_values.yml create mode 100644 config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_list.yml create mode 100644 config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_load_by_id.yml create mode 100644 config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_load_by_property.yml create mode 100644 config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_metadata.yml create mode 100644 config/sync/simple_oauth.oauth2_scope.mcp_read.yml create mode 100644 config/sync/simple_oauth.oauth2_token.bundle.access_token.yml create mode 100644 config/sync/simple_oauth.oauth2_token.bundle.auth_code.yml create mode 100644 config/sync/simple_oauth.oauth2_token.bundle.refresh_token.yml create mode 100644 config/sync/simple_oauth.settings.yml create mode 100644 config/sync/simple_oauth_client_registration.settings.yml create mode 100644 config/sync/simple_oauth_server_metadata.settings.yml create mode 100644 config/sync/system.action.user_add_role_action.os2loop_user_mcp.yml create mode 100644 config/sync/system.action.user_remove_role_action.os2loop_user_mcp.yml create mode 100644 config/sync/user.role.os2loop_user_mcp.yml diff --git a/.docker/templates/default.conf.template b/.docker/templates/default.conf.template index c4d0c033d..12e1227de 100644 --- a/.docker/templates/default.conf.template +++ b/.docker/templates/default.conf.template @@ -50,8 +50,8 @@ server { } # Block access to "hidden" files and directories whose names begin with a - # period. - location ~ (^|/)\. { + # period. Drupal serves "/.well-known/" (OAuth metadata for the MCP server). + location ~ (^|/)\.(?!well-known/) { return 403; } diff --git a/composer.json b/composer.json index 3d2ffd0b4..9fae42eaa 100644 --- a/composer.json +++ b/composer.json @@ -35,6 +35,9 @@ "drupal/inline_entity_form": "^3.0@RC", "drupal/mailsystem": "^4.4", "drupal/masquerade": "^2.0@RC", + "drupal/mcp_server": "^2.0@beta", + "drupal/mcp_server_oauth": "^1.0@alpha", + "drupal/mcp_server_tool_bridge": "^1.0@beta", "drupal/message": "^1.4", "drupal/openid_connect": "^3.0@alpha", "drupal/paragraphs": "^1.16", @@ -51,6 +54,7 @@ "drupal/toc_filter": "^2.1", "drupal/token": "^1.12", "drupal/token_filter": "^2.0", + "drupal/tool_belt": "^1.0@alpha", "drupal/twig_tweak": "^3.2", "drupal/upgrade_status": "^4.3", "drupal/view_unpublished": "^1.2", diff --git a/composer.lock b/composer.lock index e486e114c..28d366668 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "8acc9e666047271edd4fade507187202", + "content-hash": "813327ff8371c0e4768f36e9b8f5a589", "packages": [ { "name": "asm89/stack-cors", @@ -992,6 +992,74 @@ }, "time": "2022-12-20T22:53:13+00:00" }, + { + "name": "defuse/php-encryption", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/defuse/php-encryption.git", + "reference": "f53396c2d34225064647a05ca76c1da9d99e5828" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/defuse/php-encryption/zipball/f53396c2d34225064647a05ca76c1da9d99e5828", + "reference": "f53396c2d34225064647a05ca76c1da9d99e5828", + "shasum": "" + }, + "require": { + "ext-openssl": "*", + "paragonie/random_compat": ">= 2", + "php": ">=5.6.0" + }, + "require-dev": { + "phpunit/phpunit": "^5|^6|^7|^8|^9|^10", + "yoast/phpunit-polyfills": "^2.0.0" + }, + "bin": [ + "bin/generate-defuse-key" + ], + "type": "library", + "autoload": { + "psr-4": { + "Defuse\\Crypto\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Hornby", + "email": "taylor@defuse.ca", + "homepage": "https://defuse.ca/" + }, + { + "name": "Scott Arciszewski", + "email": "info@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "Secure PHP Encryption Library", + "keywords": [ + "aes", + "authenticated encryption", + "cipher", + "crypto", + "cryptography", + "encrypt", + "encryption", + "openssl", + "security", + "symmetric key cryptography" + ], + "support": { + "issues": "https://github.com/defuse/php-encryption/issues", + "source": "https://github.com/defuse/php-encryption/tree/v2.4.0" + }, + "time": "2023-06-19T06:10:36+00:00", + "published-time": "2023-06-19T06:16:55+00:00" + }, { "name": "dekor/php-array-table", "version": "2.0", @@ -1116,6 +1184,54 @@ }, "time": "2024-07-08T12:26:09+00:00" }, + { + "name": "doctrine/deprecations", + "version": "1.1.6", + "source": { + "type": "git", + "url": "https://github.com/doctrine/deprecations.git", + "reference": "d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca", + "reference": "d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "phpunit/phpunit": "<=7.5 || >=14" + }, + "require-dev": { + "doctrine/coding-standard": "^9 || ^12 || ^14", + "phpstan/phpstan": "1.4.10 || 2.1.30", + "phpstan/phpstan-phpunit": "^1.0 || ^2", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12.4 || ^13.0", + "psr/log": "^1 || ^2 || ^3" + }, + "suggest": { + "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Deprecations\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", + "homepage": "https://www.doctrine-project.org/", + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/1.1.6" + }, + "time": "2026-02-07T07:09:04+00:00" + }, { "name": "doctrine/lexer", "version": "3.0.3", @@ -1870,6 +1986,59 @@ "issues": "http://drupal.org/project/config_ignore" } }, + { + "name": "drupal/consumers", + "version": "1.24.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/consumers.git", + "reference": "8.x-1.24" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/consumers-8.x-1.24.zip", + "reference": "8.x-1.24", + "shasum": "63acc012badaec2dd15cb4dd3e9cab9cb8a83eef" + }, + "require": { + "drupal/core": "^10.3 || ^11" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.24", + "datestamp": "1770824862", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "bojan_dev", + "homepage": "https://www.drupal.org/user/2801849" + }, + { + "name": "e0ipso", + "homepage": "https://www.drupal.org/user/550110" + }, + { + "name": "eojthebrave", + "homepage": "https://www.drupal.org/user/79230" + } + ], + "description": "Declare all the consumers of your API.", + "homepage": "https://www.drupal.org/project/consumers", + "support": { + "source": "https://git.drupalcode.org/project/consumers" + }, + "published-time": "2026-02-11T15:47:37+00:00" + }, { "name": "drupal/convert_media_tags_to_markup", "version": "4.0.0", @@ -3593,6 +3762,211 @@ "irc": "irc://irc.freenode.org/drupal-contribute" } }, + { + "name": "drupal/mcp_server", + "version": "2.0.0-beta7", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/mcp_server.git", + "reference": "2.0.0-beta7" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/mcp_server-2.0.0-beta7.zip", + "reference": "2.0.0-beta7", + "shasum": "d90959d604f3afd97edde033156f776643ca86b7" + }, + "require": { + "drupal/core": "^10 || ^11", + "mcp/sdk": "^0.9", + "php": "^8.3", + "psr/simple-cache": "^3.0" + }, + "require-dev": { + "drupal/coder": "^8", + "drupal/tool": "1.0.0-beta2", + "mglaman/phpstan-drupal": "^1.2.12 || ^2.0", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^1.12 || ^2.1", + "phpstan/phpstan-deprecation-rules": "^1.2 || ^2.0" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.0.0-beta7", + "datestamp": "1793290857", + "security-coverage": { + "status": "not-covered", + "message": "Beta releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "scripts": { + "syntax:check": [ + "find . -type f \\( -name '*.php' -o -name '*.module' -o -name '*.install' \\) ! -path './vendor/*' ! -path './node_modules/*' -exec php -l {} + | grep -v 'No syntax errors detected' || echo 'All PHP files have valid syntax'" + ], + "lint:check": [ + "@syntax:check", + "php ./vendor/bin/phpcs --ignore=vendor/*,node_modules/* --standard=Drupal,DrupalPractice --extensions=php,module/php,install/php,inc/php,yml ." + ], + "lint:fix": [ + "php ./vendor/bin/phpcbf --ignore=vendor/*,node_modules/* --standard=Drupal,DrupalPractice --extensions=php,module/php,install/php,inc/php,yml ." + ], + "release": [ + "npm run semantic-release" + ] + }, + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Mateu Aguiló Bosch", + "homepage": "https://www.drupal.org/user/550110", + "email": "mateu@mateuaguilo.com" + }, + { + "name": "gagosha", + "homepage": "https://www.drupal.org/user/3506581" + }, + { + "name": "jibla", + "homepage": "https://www.drupal.org/user/1013184" + }, + { + "name": "mglaman", + "homepage": "https://www.drupal.org/user/2416470" + } + ], + "description": "Drupal integration module for Model Context Protocol (MCP) using the official mcp/sdk. Enables AI assistants to interact with Drupal resources, content, and APIs through MCP tools, resources, and prompts.", + "homepage": "https://www.drupal.org/project/mcp_server", + "support": { + "source": "https://drupal.org/project/mcp_server", + "issues": "https://drupal.org/project/issues/mcp_server" + }, + "published-time": "2026-10-29T16:20:36+00:00" + }, + { + "name": "drupal/mcp_server_oauth", + "version": "1.0.0-alpha2", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/mcp_server_oauth.git", + "reference": "1.0.0-alpha2" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/mcp_server_oauth-1.0.0-alpha2.zip", + "reference": "1.0.0-alpha2", + "shasum": "923fddd9b885dfc0c9f1b517b620cfdfdf334344" + }, + "require": { + "drupal/core": "^11", + "drupal/mcp_server": "^2", + "drupal/simple_oauth": "^6", + "drupal/simple_oauth_client_registration": "*", + "drupal/simple_oauth_server_metadata": "*", + "e0ipso/simple_oauth_21": "^1", + "php": "^8.3" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "1.0.0-alpha2", + "datestamp": "1793292235", + "security-coverage": { + "status": "not-covered", + "message": "Alpha releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "e0ipso", + "homepage": "https://www.drupal.org/user/550110" + }, + { + "name": "mglaman", + "homepage": "https://www.drupal.org/user/2416470" + } + ], + "description": "OAuth2 scope-based authorization for MCP Server tools.", + "homepage": "https://www.drupal.org/project/mcp_server_oauth", + "keywords": [ + "Actively maintained", + "Artificial Intelligence (AI)" + ], + "support": { + "source": "https://git.drupalcode.org/project/mcp_server_oauth" + }, + "published-time": "2026-10-29T16:43:34+00:00" + }, + { + "name": "drupal/mcp_server_tool_bridge", + "version": "1.0.0-beta5", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/mcp_server_tool_bridge.git", + "reference": "1.0.0-beta5" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/mcp_server_tool_bridge-1.0.0-beta5.zip", + "reference": "1.0.0-beta5", + "shasum": "5bf94b101ab7c3bbfaac8cd55278c4c1d6da1244" + }, + "require": { + "drupal/core": "^10 || ^11", + "drupal/mcp_server": "^2.0.0-beta5", + "drupal/tool": "^1.0.0-beta12", + "php": "^8.3" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "1.0.0-beta5", + "datestamp": "1792606656", + "security-coverage": { + "status": "not-covered", + "message": "Beta releases are not covered by Drupal security advisories." + } + } + }, + "autoload": { + "psr-4": { + "Drupal\\mcp_server_tool_bridge\\": "src/" + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "e0ipso", + "homepage": "https://www.drupal.org/user/550110" + }, + { + "name": "mglaman", + "homepage": "https://www.drupal.org/user/2416470" + } + ], + "description": "Bridges Drupal Tool API tools into the MCP protocol via McpToolConfig entities.", + "homepage": "https://www.drupal.org/project/mcp_server_tool_bridge", + "keywords": [ + "Actively maintained", + "Artificial Intelligence (AI)" + ], + "support": { + "source": "https://git.drupalcode.org/project/mcp_server_tool_bridge" + }, + "published-time": "2026-10-21T18:17:16+00:00" + }, { "name": "drupal/message", "version": "1.9.0", @@ -4227,31 +4601,35 @@ } }, { - "name": "drupal/snowball_stemmer", - "version": "2.1.4", + "name": "drupal/simple_oauth", + "version": "6.1.4", "source": { "type": "git", - "url": "https://git.drupalcode.org/project/snowball_stemmer.git", - "reference": "2.1.4" + "url": "https://git.drupalcode.org/project/simple_oauth.git", + "reference": "6.1.4" }, "dist": { "type": "zip", - "url": "https://ftp.drupal.org/files/projects/snowball_stemmer-2.1.4.zip", - "reference": "2.1.4", - "shasum": "65ca5934fcf2a805b6eaa2e49bd47bc1236bd769" + "url": "https://ftp.drupal.org/files/projects/simple_oauth-6.1.4.zip", + "reference": "6.1.4", + "shasum": "f210f853ad3445e5b81ce96ceebd7e438eccc1d7" }, "require": { - "drupal/core": "^10.1 || ^11", - "wamania/php-stemmer": "^2.0 || ^3.0" + "drupal/consumers": "^1.24", + "drupal/core": "^10.3 || ^11", + "league/oauth2-server": "^9.0", + "php": ">=8.1", + "steverhoades/oauth2-openid-connect-server": "^3.0" }, "require-dev": { - "drupal/search_api": "^1.30" + "drupal/simple_oauth_static_scope": "*", + "phpspec/prophecy-phpunit": "^2" }, "type": "drupal-module", "extra": { "drupal": { - "version": "2.1.4", - "datestamp": "1742127837", + "version": "6.1.4", + "datestamp": "1793813022", "security-coverage": { "status": "covered", "message": "Covered by Drupal's security advisory policy" @@ -4260,15 +4638,81 @@ }, "notification-url": "https://packages.drupal.org/8/downloads", "license": [ - "GPL-2.0" + "GPL-2.0-or-later" ], "authors": [ { - "name": "ekes", - "homepage": "https://www.drupal.org/user/10083" - } - ], - "description": "Snowball stemmer service and processor plugin for Search API", + "name": "Mateu Aguiló Bosch", + "homepage": "https://www.drupal.org/user/2801849", + "email": "mateu.aguilo.bosch@gmail.com" + }, + { + "name": "bradjones1", + "homepage": "https://www.drupal.org/user/405824" + }, + { + "name": "e0ipso", + "homepage": "https://www.drupal.org/user/550110" + }, + { + "name": "kingdutch", + "homepage": "https://www.drupal.org/user/1868952" + }, + { + "name": "pcambra", + "homepage": "https://www.drupal.org/user/122101" + } + ], + "description": "The Simple OAuth module for Drupal", + "homepage": "https://www.drupal.org/project/simple_oauth", + "support": { + "source": "https://git.drupalcode.org/project/simple_oauth" + }, + "published-time": "2026-11-03T10:58:50+00:00" + }, + { + "name": "drupal/snowball_stemmer", + "version": "2.1.4", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/snowball_stemmer.git", + "reference": "2.1.4" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/snowball_stemmer-2.1.4.zip", + "reference": "2.1.4", + "shasum": "65ca5934fcf2a805b6eaa2e49bd47bc1236bd769" + }, + "require": { + "drupal/core": "^10.1 || ^11", + "wamania/php-stemmer": "^2.0 || ^3.0" + }, + "require-dev": { + "drupal/search_api": "^1.30" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.1.4", + "datestamp": "1742127837", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0" + ], + "authors": [ + { + "name": "ekes", + "homepage": "https://www.drupal.org/user/10083" + } + ], + "description": "Snowball stemmer service and processor plugin for Search API", "homepage": "https://www.drupal.org/project/snowball_stemmer", "support": { "source": "https://git.drupalcode.org/project/snowball_stemmer" @@ -4642,6 +5086,136 @@ "source": "https://git.drupalcode.org/project/token_filter" } }, + { + "name": "drupal/tool", + "version": "1.0.0-beta12", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/tool.git", + "reference": "1.0.0-beta12" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/tool-1.0.0-beta12.zip", + "reference": "1.0.0-beta12", + "shasum": "cb3fa3b0aab7d3ee59c4c09cfd8b68cc04f7cd48" + }, + "require": { + "drupal/core": "^10.5 || ^11", + "php": ">=8.2" + }, + "require-dev": { + "drupal/ai": "^1.2.16", + "drupal/ai_agents": "^1.2" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "1.0.0-beta12", + "datestamp": "1792530025", + "security-coverage": { + "status": "not-covered", + "message": "Beta releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "ajits", + "homepage": "https://www.drupal.org/user/981944" + }, + { + "name": "b_sharpe", + "homepage": "https://www.drupal.org/user/2512258" + }, + { + "name": "jurgenhaas", + "homepage": "https://www.drupal.org/user/168924" + }, + { + "name": "marcus_johansson", + "homepage": "https://www.drupal.org/user/385947" + }, + { + "name": "mglaman", + "homepage": "https://www.drupal.org/user/2416470" + }, + { + "name": "michaellander", + "homepage": "https://www.drupal.org/user/636494" + }, + { + "name": "yautja_cetanu", + "homepage": "https://www.drupal.org/user/626050" + } + ], + "description": "Provides a tool plugin for creating well defined actions.", + "homepage": "https://www.drupal.org/project/tool", + "support": { + "source": "https://drupal.org/project/tool", + "issues": "https://drupal.org/project/issues/tool" + }, + "published-time": "2026-10-20T21:00:04+00:00" + }, + { + "name": "drupal/tool_belt", + "version": "1.0.0-alpha6", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/tool_belt.git", + "reference": "1.0.0-alpha6" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/tool_belt-1.0.0-alpha6.zip", + "reference": "1.0.0-alpha6", + "shasum": "0fd245cb07dbfd13a1a2491c68a2a5f1b24fcdd1" + }, + "require": { + "drupal/core": "^10.5 || ^11 || ^12", + "drupal/tool": "^1.0.0-beta10" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "1.0.0-alpha6", + "datestamp": "1790577600", + "security-coverage": { + "status": "not-covered", + "message": "Alpha releases are not covered by Drupal security advisories." + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "ajits", + "homepage": "https://www.drupal.org/user/981944" + }, + { + "name": "b_sharpe", + "homepage": "https://www.drupal.org/user/2512258" + }, + { + "name": "michaellander", + "homepage": "https://www.drupal.org/user/636494" + } + ], + "description": "A default collection of tools covering common Drupal core actions.", + "homepage": "https://www.drupal.org/project/tool_belt", + "support": { + "source": "https://git.drupalcode.org/project/tool_belt", + "issues": "https://www.drupal.org/project/issues/tool_belt" + }, + "published-time": "2026-09-28T06:39:39+00:00" + }, { "name": "drupal/twig_tweak", "version": "3.4.2", @@ -5283,6 +5857,53 @@ ], "time": "2026-09-08T18:24:55+00:00" }, + { + "name": "e0ipso/simple_oauth_21", + "version": "v1.13.1", + "source": { + "type": "git", + "url": "https://github.com/e0ipso/simple_oauth_21.git", + "reference": "b45cbce5f1eb87c1ba0f89dcebd3d61bd2fe4a7f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/e0ipso/simple_oauth_21/zipball/b45cbce5f1eb87c1ba0f89dcebd3d61bd2fe4a7f", + "reference": "b45cbce5f1eb87c1ba0f89dcebd3d61bd2fe4a7f", + "shasum": "" + }, + "provide": { + "drupal/simple_oauth_client_registration": "self.version", + "drupal/simple_oauth_device_flow": "self.version", + "drupal/simple_oauth_native_apps": "self.version", + "drupal/simple_oauth_pkce": "self.version", + "drupal/simple_oauth_server_metadata": "self.version" + }, + "require-dev": { + "drupal/coder": "^8", + "mglaman/phpstan-drupal": "^2.0", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-deprecation-rules": "^2.0" + }, + "type": "drupal-module", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "Mateu Aguiló Bosch", + "email": "mateu@mateuaguilo.com" + } + ], + "description": "Implements OAuth 2.1 on top of Simple OAuth for Drupal", + "support": { + "issues": "https://github.com/e0ipso/simple_oauth_21/issues", + "source": "https://github.com/e0ipso/simple_oauth_21/tree/v1.13.1" + }, + "time": "2026-09-29T14:31:47+00:00", + "published-time": "2026-09-29T14:32:40+00:00" + }, { "name": "egulias/email-validator", "version": "4.0.4", @@ -5993,6 +6614,80 @@ }, "time": "2026-10-09T14:45:13+00:00" }, + { + "name": "lcobucci/jwt", + "version": "5.6.1", + "source": { + "type": "git", + "url": "https://github.com/lcobucci/jwt.git", + "reference": "482760068e5a55a9045feddb3e2fc3f878cbd577" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/lcobucci/jwt/zipball/482760068e5a55a9045feddb3e2fc3f878cbd577", + "reference": "482760068e5a55a9045feddb3e2fc3f878cbd577", + "shasum": "" + }, + "require": { + "ext-openssl": "*", + "ext-sodium": "*", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", + "psr/clock": "^1.0" + }, + "require-dev": { + "infection/infection": "^0.29", + "lcobucci/clock": "^3.2", + "lcobucci/coding-standard": "^11.0", + "phpbench/phpbench": "^1.2", + "phpstan/extension-installer": "^1.2", + "phpstan/phpstan": "^1.10.7", + "phpstan/phpstan-deprecation-rules": "^1.1.3", + "phpstan/phpstan-phpunit": "^1.3.10", + "phpstan/phpstan-strict-rules": "^1.5.0", + "phpunit/phpunit": "^11.1" + }, + "suggest": { + "lcobucci/clock": ">= 3.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Lcobucci\\JWT\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Luís Cobucci", + "email": "lcobucci@gmail.com", + "role": "Developer" + } + ], + "description": "A simple library to work with JSON Web Token and JSON Web Signature", + "keywords": [ + "JWS", + "jwt" + ], + "support": { + "issues": "https://github.com/lcobucci/jwt/issues", + "source": "https://github.com/lcobucci/jwt/tree/5.6.1" + }, + "funding": [ + { + "url": "https://github.com/lcobucci", + "type": "github" + }, + { + "url": "https://www.patreon.com/lcobucci", + "type": "patreon" + } + ], + "time": "2026-10-10T09:42:14+00:00", + "published-time": "2026-10-10T09:43:25+00:00" + }, { "name": "league/container", "version": "4.2.5", @@ -6167,42 +6862,40 @@ "time": "2025-12-27T15:18:42+00:00" }, { - "name": "maennchen/zipstream-php", - "version": "3.2.2", + "name": "league/event", + "version": "3.0.3", "source": { "type": "git", - "url": "https://github.com/maennchen/ZipStream-PHP.git", - "reference": "77bebeb4c6c340bb3c11c843b2cffd8bbfde4d5e" + "url": "https://github.com/thephpleague/event.git", + "reference": "ec38ff7ea10cad7d99a79ac937fbcffb9334c210" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/77bebeb4c6c340bb3c11c843b2cffd8bbfde4d5e", - "reference": "77bebeb4c6c340bb3c11c843b2cffd8bbfde4d5e", + "url": "https://api.github.com/repos/thephpleague/event/zipball/ec38ff7ea10cad7d99a79ac937fbcffb9334c210", + "reference": "ec38ff7ea10cad7d99a79ac937fbcffb9334c210", "shasum": "" }, "require": { - "ext-mbstring": "*", - "ext-zlib": "*", - "php-64bit": "^8.3" + "php": ">=7.2.0", + "psr/event-dispatcher": "^1.0" }, - "require-dev": { - "brianium/paratest": "^7.7", - "ext-zip": "*", - "friendsofphp/php-cs-fixer": "^3.86", - "guzzlehttp/guzzle": "^7.5", - "mikey179/vfsstream": "^1.6", - "php-coveralls/php-coveralls": "^2.5", - "phpunit/phpunit": "^12.0", - "vimeo/psalm": "^6.0" + "provide": { + "psr/event-dispatcher-implementation": "1.0" }, - "suggest": { - "guzzlehttp/psr7": "^2.4", - "psr/http-message": "^2.0" + "require-dev": { + "friendsofphp/php-cs-fixer": "^2.16", + "phpstan/phpstan": "^0.12.45", + "phpunit/phpunit": "^8.5" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0-dev" + } + }, "autoload": { "psr-4": { - "ZipStream\\": "src/" + "League\\Event\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -6211,26 +6904,371 @@ ], "authors": [ { - "name": "Paul Duncan", - "email": "pabs@pablotron.org" - }, - { - "name": "Jonatan Männchen", - "email": "jonatan@maennchen.ch" - }, - { - "name": "Jesse Donat", - "email": "donatj@gmail.com" - }, - { - "name": "András Kolesár", - "email": "kolesar@kolesar.hu" + "name": "Frank de Jonge", + "email": "info@frenky.net" } ], - "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", + "description": "Event package", "keywords": [ - "stream", - "zip" + "emitter", + "event", + "listener" + ], + "support": { + "issues": "https://github.com/thephpleague/event/issues", + "source": "https://github.com/thephpleague/event/tree/3.0.3" + }, + "time": "2024-09-04T16:06:53+00:00", + "published-time": "2024-09-04T20:43:40+00:00" + }, + { + "name": "league/oauth2-server", + "version": "9.4.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/oauth2-server.git", + "reference": "9d2f6fc0a0b5aa1bb02506971d3a4ecff2c6526c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/oauth2-server/zipball/9d2f6fc0a0b5aa1bb02506971d3a4ecff2c6526c", + "reference": "9d2f6fc0a0b5aa1bb02506971d3a4ecff2c6526c", + "shasum": "" + }, + "require": { + "defuse/php-encryption": "^2.4", + "ext-json": "*", + "ext-openssl": "*", + "lcobucci/jwt": "^5.6", + "league/event": "^3.0", + "league/uri": "^7.8", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", + "psr/clock": "^1.0", + "psr/http-message": "^2.0", + "psr/http-server-middleware": "^1.0" + }, + "replace": { + "league/oauth2server": "*", + "lncd/oauth2": "*" + }, + "require-dev": { + "laminas/laminas-diactoros": "^3.8", + "paragonie/random_compat": "^9.99.100", + "php-parallel-lint/php-parallel-lint": "^1.4", + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.1.38", + "phpstan/phpstan-deprecation-rules": "^2.0", + "phpstan/phpstan-phpunit": "^2.0.12", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^11.5.50", + "roave/security-advisories": "dev-master", + "slevomat/coding-standard": "^8.27.1", + "squizlabs/php_codesniffer": "^4.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\OAuth2\\Server\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Alex Bilbie", + "email": "hello@alexbilbie.com", + "homepage": "http://www.alexbilbie.com", + "role": "Developer" + }, + { + "name": "Andy Millington", + "email": "andrew@noexceptions.io", + "homepage": "https://www.noexceptions.io", + "role": "Developer" + } + ], + "description": "A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.", + "homepage": "https://oauth2.thephpleague.com/", + "keywords": [ + "Authentication", + "api", + "auth", + "authorisation", + "authorization", + "oauth", + "oauth 2", + "oauth 2.0", + "oauth2", + "protect", + "resource", + "secure", + "server" + ], + "support": { + "issues": "https://github.com/thephpleague/oauth2-server/issues", + "source": "https://github.com/thephpleague/oauth2-server/tree/9.4.1" + }, + "funding": [ + { + "url": "https://github.com/sephster", + "type": "github" + } + ], + "time": "2026-06-25T15:24:07+00:00", + "published-time": "2026-06-25T15:28:46+00:00" + }, + { + "name": "league/uri", + "version": "7.10.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri.git", + "reference": "be89e2382e37acdef232259071ade5180821397b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri/zipball/be89e2382e37acdef232259071ade5180821397b", + "reference": "be89e2382e37acdef232259071ade5180821397b", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "league/uri-interfaces": "^7.10.0", + "php": "^8.1", + "psr/http-factory": "^1" + }, + "conflict": { + "league/uri-schemes": "^1.0" + }, + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-dom": "to convert the URI into an HTML anchor tag", + "ext-fileinfo": "to create Data URI from file contennts", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "ext-uri": "to use the PHP native URI class", + "jeremykendall/php-domain-parser": "to further parse the URI host and resolve its Public Suffix and Top Level Domain", + "league/uri-components": "to provide additional tools to manipulate URI objects components", + "league/uri-polyfill": "to backport the PHP URI extension for older versions of PHP", + "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle URLs using the WHATWG URL Living Standard specification", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "URI manipulation library", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "URN", + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "middleware", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc2141", + "rfc3986", + "rfc3987", + "rfc6570", + "rfc8141", + "uri", + "uri-template", + "url", + "ws" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri/tree/7.10.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2026-11-04T12:45:07+00:00", + "published-time": "2026-11-04T13:02:21+00:00" + }, + { + "name": "league/uri-interfaces", + "version": "7.10.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri-interfaces.git", + "reference": "ea66240cff4ae9a56ce85d577a04d038b771e51c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/ea66240cff4ae9a56ce85d577a04d038b771e51c", + "reference": "ea66240cff4ae9a56ce85d577a04d038b771e51c", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^8.1", + "psr/http-message": "^1.1 || ^2.0" + }, + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle URLs using the WHATWG URL Living Standard specification", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "Common tools for parsing and resolving RFC3987/RFC3986 URI", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc3986", + "rfc3987", + "rfc6570", + "uri", + "url", + "ws" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri-interfaces/tree/7.10.0" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2026-11-04T12:45:07+00:00", + "published-time": "2026-11-04T13:02:27+00:00" + }, + { + "name": "maennchen/zipstream-php", + "version": "3.2.2", + "source": { + "type": "git", + "url": "https://github.com/maennchen/ZipStream-PHP.git", + "reference": "77bebeb4c6c340bb3c11c843b2cffd8bbfde4d5e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/maennchen/ZipStream-PHP/zipball/77bebeb4c6c340bb3c11c843b2cffd8bbfde4d5e", + "reference": "77bebeb4c6c340bb3c11c843b2cffd8bbfde4d5e", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "ext-zlib": "*", + "php-64bit": "^8.3" + }, + "require-dev": { + "brianium/paratest": "^7.7", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.86", + "guzzlehttp/guzzle": "^7.5", + "mikey179/vfsstream": "^1.6", + "php-coveralls/php-coveralls": "^2.5", + "phpunit/phpunit": "^12.0", + "vimeo/psalm": "^6.0" + }, + "suggest": { + "guzzlehttp/psr7": "^2.4", + "psr/http-message": "^2.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "ZipStream\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paul Duncan", + "email": "pabs@pablotron.org" + }, + { + "name": "Jonatan Männchen", + "email": "jonatan@maennchen.ch" + }, + { + "name": "Jesse Donat", + "email": "donatj@gmail.com" + }, + { + "name": "András Kolesár", + "email": "kolesar@kolesar.hu" + } + ], + "description": "ZipStream is a library for dynamically streaming dynamic zip files from PHP without writing to the disk at all on the server.", + "keywords": [ + "stream", + "zip" ], "support": { "issues": "https://github.com/maennchen/ZipStream-PHP/issues", @@ -6541,52 +7579,146 @@ "time": "2026-07-21T11:56:06+00:00" }, { - "name": "mglaman/phpstan-drupal", - "version": "2.2.2", + "name": "mcp/sdk", + "version": "v0.9.0", "source": { "type": "git", - "url": "https://github.com/mglaman/phpstan-drupal.git", - "reference": "99d198489a50bf5a654187bf2e6acd55786157d7" + "url": "https://github.com/modelcontextprotocol/php-sdk.git", + "reference": "be71c78bc3bce25f50d6a7e592017b8af6a2120f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/99d198489a50bf5a654187bf2e6acd55786157d7", - "reference": "99d198489a50bf5a654187bf2e6acd55786157d7", + "url": "https://api.github.com/repos/modelcontextprotocol/php-sdk/zipball/be71c78bc3bce25f50d6a7e592017b8af6a2120f", + "reference": "be71c78bc3bce25f50d6a7e592017b8af6a2120f", "shasum": "" }, "require": { + "ext-fileinfo": "*", + "opis/json-schema": "^2.4", "php": "^8.1", - "phpstan/phpstan": "^2.1", - "phpstan/phpstan-deprecation-rules": "^2.0", - "symfony/finder": "^6.2 || ^7.0 || ^8.0", - "symfony/yaml": "^6.2 || ^7.0 || ^8.0", - "webflo/drupal-finder": "^1.3.1 || ^2.0" + "php-http/discovery": "^1.20", + "phpdocumentor/reflection-docblock": "^5.6 || ^6.0", + "psr/clock": "^1.0", + "psr/container": "^1.0 || ^2.0", + "psr/event-dispatcher": "^1.0", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.1", + "psr/http-message": "^1.1 || ^2.0", + "psr/http-server-handler": "^1.0", + "psr/http-server-middleware": "^1.0", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "symfony/deprecation-contracts": "^2.5 || ^3.0", + "symfony/uid": "^5.4 || ^6.4 || ^7.3 || ^8.0" + }, + "conflict": { + "phpstan/phpstan": "2.3.0" }, "require-dev": { - "behat/mink": "^1.10", - "composer/installers": "^1.9 || ^2", - "drupal/core-recommended": "^11", - "drush/drush": "^11 || ^12 || ^13", - "phpstan/extension-installer": "^1.4.3", - "phpstan/phpstan-strict-rules": "^2.0", - "phpunit/phpunit": "^9 || ^10 || ^11", - "slevomat/coding-standard": "^8.6", - "squizlabs/php_codesniffer": "^3.7", - "symfony/phpunit-bridge": "^6.2 || ^7.0 || ^8.0" + "composer/semver": "^3.0", + "ext-openssl": "*", + "firebase/php-jwt": "^6.10 || ^7.0", + "laminas/laminas-httphandlerrunner": "^2.12", + "nyholm/psr7": "^1.8", + "nyholm/psr7-server": "^1.1", + "phar-io/composer-distributor": "^1.0.2", + "php-cs-fixer/shim": "^3.91", + "phpdocumentor/shim": "^3", + "phpstan/phpstan": "^2.1", + "phpunit/phpunit": "^10.5", + "psr/cache": "^1.0 || ^2.0 || ^3.0", + "psr/simple-cache": "^2.0 || ^3.0", + "symfony/cache": "^5.4 || ^6.4 || ^7.3 || ^8.0", + "symfony/console": "^5.4 || ^6.4 || ^7.3 || ^8.0", + "symfony/finder": "^5.4 || ^6.4 || ^7.3 || ^8.0", + "symfony/http-client": "^5.4 || ^6.4 || ^7.3 || ^8.0", + "symfony/lock": "^5.4 || ^6.4 || ^7.3 || ^8.0", + "symfony/process": "^5.4 || ^6.4 || ^7.3 || ^8.0" }, "suggest": { - "jangregor/phpstan-prophecy": "Provides a prophecy/prophecy extension for phpstan/phpstan.", - "phpstan/phpstan-deprecation-rules": "For catching deprecations, especially in Drupal core.", - "phpstan/phpstan-phpunit": "PHPUnit extensions and rules for PHPStan." + "firebase/php-jwt": "Required for the JwtTokenValidator.", + "psr/cache-implementation": "Required for JwtTokenValidator::fromIssuer() to cache metadata and keys.", + "symfony/finder": "Required for file-based discovery.", + "symfony/lock": "Required for the SymfonyLockSessionLock." }, - "type": "phpstan-extension", - "extra": { - "phpstan": { - "includes": [ - "extension.neon", - "rules.neon" - ] - }, + "type": "library", + "autoload": { + "psr-4": { + "Mcp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Christopher Hertel", + "email": "mail@christopher-hertel.de" + }, + { + "name": "Kyrian Obikwelu", + "email": "koshnawaza@gmail.com" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com" + } + ], + "description": "Model Context Protocol SDK for Client and Server applications in PHP", + "support": { + "issues": "https://github.com/modelcontextprotocol/php-sdk/issues", + "source": "https://github.com/modelcontextprotocol/php-sdk/tree/v0.9.0" + }, + "time": "2026-10-18T14:29:29+00:00", + "published-time": "2026-10-18T14:45:02+00:00" + }, + { + "name": "mglaman/phpstan-drupal", + "version": "2.2.2", + "source": { + "type": "git", + "url": "https://github.com/mglaman/phpstan-drupal.git", + "reference": "99d198489a50bf5a654187bf2e6acd55786157d7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mglaman/phpstan-drupal/zipball/99d198489a50bf5a654187bf2e6acd55786157d7", + "reference": "99d198489a50bf5a654187bf2e6acd55786157d7", + "shasum": "" + }, + "require": { + "php": "^8.1", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-deprecation-rules": "^2.0", + "symfony/finder": "^6.2 || ^7.0 || ^8.0", + "symfony/yaml": "^6.2 || ^7.0 || ^8.0", + "webflo/drupal-finder": "^1.3.1 || ^2.0" + }, + "require-dev": { + "behat/mink": "^1.10", + "composer/installers": "^1.9 || ^2", + "drupal/core-recommended": "^11", + "drush/drush": "^11 || ^12 || ^13", + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9 || ^10 || ^11", + "slevomat/coding-standard": "^8.6", + "squizlabs/php_codesniffer": "^3.7", + "symfony/phpunit-bridge": "^6.2 || ^7.0 || ^8.0" + }, + "suggest": { + "jangregor/phpstan-prophecy": "Provides a prophecy/prophecy extension for phpstan/phpstan.", + "phpstan/phpstan-deprecation-rules": "For catching deprecations, especially in Drupal core.", + "phpstan/phpstan-phpunit": "PHPUnit extensions and rules for PHPStan." + }, + "type": "phpstan-extension", + "extra": { + "phpstan": { + "includes": [ + "extension.neon", + "rules.neon" + ] + }, "installer-paths": { "tests/fixtures/drupal/core": [ "type:drupal-core" @@ -6739,6 +7871,250 @@ }, "time": "2026-09-13T18:51:52+00:00" }, + { + "name": "opis/json-schema", + "version": "2.6.1", + "source": { + "type": "git", + "url": "https://github.com/opis/json-schema.git", + "reference": "7d8685a78db131eb6a1571cc7b4db8f4b59e8628" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opis/json-schema/zipball/7d8685a78db131eb6a1571cc7b4db8f4b59e8628", + "reference": "7d8685a78db131eb6a1571cc7b4db8f4b59e8628", + "shasum": "" + }, + "require": { + "ext-json": "*", + "opis/string": "^2.1", + "opis/uri": "^1.0", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "ext-bcmath": "*", + "ext-intl": "*", + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Opis\\JsonSchema\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Sorin Sarca", + "email": "sarca_sorin@hotmail.com" + }, + { + "name": "Marius Sarca", + "email": "marius.sarca@gmail.com" + } + ], + "description": "Json Schema Validator for PHP", + "homepage": "https://opis.io/json-schema", + "keywords": [ + "json", + "json-schema", + "schema", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/opis/json-schema/issues", + "source": "https://github.com/opis/json-schema/tree/2.6.1" + }, + "time": "2026-11-06T04:25:16+00:00", + "published-time": "2026-11-06T04:35:54+00:00" + }, + { + "name": "opis/string", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/opis/string.git", + "reference": "3e4d2aaff518ac518530b89bb26ed40f4503635e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opis/string/zipball/3e4d2aaff518ac518530b89bb26ed40f4503635e", + "reference": "3e4d2aaff518ac518530b89bb26ed40f4503635e", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "ext-json": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Opis\\String\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Marius Sarca", + "email": "marius.sarca@gmail.com" + }, + { + "name": "Sorin Sarca", + "email": "sarca_sorin@hotmail.com" + } + ], + "description": "Multibyte strings as objects", + "homepage": "https://opis.io/string", + "keywords": [ + "multi-byte", + "opis", + "string", + "string manipulation", + "utf-8" + ], + "support": { + "issues": "https://github.com/opis/string/issues", + "source": "https://github.com/opis/string/tree/2.1.0" + }, + "time": "2025-10-17T12:38:41+00:00", + "published-time": "2025-10-17T12:40:48+00:00" + }, + { + "name": "opis/uri", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/opis/uri.git", + "reference": "0f3ca49ab1a5e4a6681c286e0b2cc081b93a7d5a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/opis/uri/zipball/0f3ca49ab1a5e4a6681c286e0b2cc081b93a7d5a", + "reference": "0f3ca49ab1a5e4a6681c286e0b2cc081b93a7d5a", + "shasum": "" + }, + "require": { + "opis/string": "^2.0", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpunit/phpunit": "^9" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Opis\\Uri\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Marius Sarca", + "email": "marius.sarca@gmail.com" + }, + { + "name": "Sorin Sarca", + "email": "sarca_sorin@hotmail.com" + } + ], + "description": "Build, parse and validate URIs and URI-templates", + "homepage": "https://opis.io", + "keywords": [ + "URI Template", + "parse url", + "punycode", + "uri", + "uri components", + "url", + "validate uri" + ], + "support": { + "issues": "https://github.com/opis/uri/issues", + "source": "https://github.com/opis/uri/tree/1.1.0" + }, + "time": "2021-05-22T15:57:08+00:00", + "published-time": "2021-05-22T16:01:15+00:00" + }, + { + "name": "paragonie/random_compat", + "version": "v9.99.100", + "source": { + "type": "git", + "url": "https://github.com/paragonie/random_compat.git", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a", + "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a", + "shasum": "" + }, + "require": { + "php": ">= 7" + }, + "require-dev": { + "phpunit/phpunit": "4.*|5.*", + "vimeo/psalm": "^1" + }, + "suggest": { + "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." + }, + "type": "library", + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com" + } + ], + "description": "PHP 5.x polyfill for random_bytes() and random_int() from PHP 7", + "keywords": [ + "csprng", + "polyfill", + "pseudorandom", + "random" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/random_compat/issues", + "source": "https://github.com/paragonie/random_compat" + }, + "time": "2020-10-15T08:29:30+00:00", + "published-time": "2020-10-15T08:34:16+00:00" + }, { "name": "pear/archive_tar", "version": "1.6.1", @@ -7070,61 +8446,323 @@ "issues": "https://github.com/phootwork/phootwork/issues", "source": "https://github.com/phootwork/lang/tree/v3.2.3" }, - "time": "2024-10-03T13:43:19+00:00" + "time": "2024-10-03T13:43:19+00:00" + }, + { + "name": "php-http/discovery", + "version": "1.20.0", + "source": { + "type": "git", + "url": "https://github.com/php-http/discovery.git", + "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-http/discovery/zipball/82fe4c73ef3363caed49ff8dd1539ba06044910d", + "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d", + "shasum": "" + }, + "require": { + "composer-plugin-api": "^1.0|^2.0", + "php": "^7.1 || ^8.0" + }, + "conflict": { + "nyholm/psr7": "<1.0", + "zendframework/zend-diactoros": "*" + }, + "provide": { + "php-http/async-client-implementation": "*", + "php-http/client-implementation": "*", + "psr/http-client-implementation": "*", + "psr/http-factory-implementation": "*", + "psr/http-message-implementation": "*" + }, + "require-dev": { + "composer/composer": "^1.0.2|^2.0", + "graham-campbell/phpspec-skip-example-extension": "^5.0", + "php-http/httplug": "^1.0 || ^2.0", + "php-http/message-factory": "^1.0", + "phpspec/phpspec": "^5.1 || ^6.1 || ^7.3", + "sebastian/comparator": "^3.0.5 || ^4.0.8", + "symfony/phpunit-bridge": "^6.4.4 || ^7.0.1" + }, + "type": "composer-plugin", + "extra": { + "class": "Http\\Discovery\\Composer\\Plugin", + "plugin-optional": true + }, + "autoload": { + "psr-4": { + "Http\\Discovery\\": "src/" + }, + "exclude-from-classmap": [ + "src/Composer/Plugin.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com" + } + ], + "description": "Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations", + "homepage": "http://php-http.org", + "keywords": [ + "adapter", + "client", + "discovery", + "factory", + "http", + "message", + "psr17", + "psr7" + ], + "support": { + "issues": "https://github.com/php-http/discovery/issues", + "source": "https://github.com/php-http/discovery/tree/1.20.0" + }, + "time": "2024-10-02T11:20:13+00:00" + }, + { + "name": "php-tuf/composer-stager", + "version": "v2.1.1", + "source": { + "type": "git", + "url": "https://github.com/php-tuf/composer-stager.git", + "reference": "64f3b033736483af81551b0f41ab1126510cfea0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-tuf/composer-stager/zipball/64f3b033736483af81551b0f41ab1126510cfea0", + "reference": "64f3b033736483af81551b0f41ab1126510cfea0", + "shasum": "" + }, + "require": { + "ext-json": "*", + "php": ">=8.1.0", + "symfony/filesystem": "^6.2 || ^7.0 || ^8.0", + "symfony/process": "^6.4.33 || ^7.3.11 || ^8.0", + "symfony/translation-contracts": "^3.1" + }, + "conflict": { + "symfony/process": ">=6.4 <6.4.33 || >=7.3 <7.3.11 || >=7.4 <7.4.5 || >=8.0 <8.0.5", + "symfony/symfony": ">=6.4 <6.4.33 || >=7.3 <7.3.11 || >=7.4 <7.4.5 || >=8.0 <8.0.5", + "symfony/yaml": ">=2.0.0 <5.4.52 || >=6.0.0 <6.4.40 || >=7.0.0 <7.4.12 || >=8.0.0 <8.0.12" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "ext-simplexml": "*", + "phpspec/prophecy": "^1.17", + "phpspec/prophecy-phpunit": "^2.0", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^10.5.19", + "slevomat/coding-standard": "^8.13", + "squizlabs/php_codesniffer": "^3.7", + "symfony/config": "^6.3 || ^8.0", + "symfony/dependency-injection": "^6.3", + "symfony/yaml": "^6.3", + "thecodingmachine/phpstan-strict-rules": "^1.0" + }, + "suggest": { + "symfony/dependency-injection": "For dependency injection", + "symfony/translation": "For internationalization tools" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-develop": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "PhpTuf\\ComposerStager\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Travis Carden", + "email": "travis.carden@gmail.com", + "role": "Developer" + } + ], + "description": "Stages Composer commands so they can be safely run on a production codebase.", + "homepage": "https://github.com/php-tuf/composer-stager", + "support": { + "issues": "https://github.com/php-tuf/composer-stager/issues", + "source": "https://github.com/php-tuf/composer-stager" + }, + "time": "2026-07-07T14:30:49+00:00" + }, + { + "name": "phpdocumentor/reflection-common", + "version": "2.2.1", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "ee15a5a2022c8383906b225055e9496a6a5e6e3b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/ee15a5a2022c8383906b225055e9496a6a5e6e3b", + "reference": "ee15a5a2022c8383906b225055e9496a6a5e6e3b", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.8", + "phpunit/phpunit": "^9.5", + "vimeo/psalm": "^4.25" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "https://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", + "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.2.1" + }, + "time": "2025-11-10T21:21:55+00:00" + }, + { + "name": "phpdocumentor/reflection-docblock", + "version": "6.0.3", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", + "reference": "7bae67520aa9f5ecc506d646810bd40d9da54582" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/7bae67520aa9f5ecc506d646810bd40d9da54582", + "reference": "7bae67520aa9f5ecc506d646810bd40d9da54582", + "shasum": "" + }, + "require": { + "doctrine/deprecations": "^1.1", + "ext-filter": "*", + "php": "^7.4 || ^8.0", + "phpdocumentor/reflection-common": "^2.2", + "phpdocumentor/type-resolver": "^2.0", + "phpstan/phpdoc-parser": "^2.0", + "webmozart/assert": "^1.9.1 || ^2" + }, + "require-dev": { + "mockery/mockery": "~1.3.5 || ~1.6.0", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-mockery": "^1.1", + "phpstan/phpstan-webmozart-assert": "^1.2", + "phpunit/phpunit": "^9.5", + "psalm/phar": "^5.26", + "shipmonk/dead-code-detector": "^0.5.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + }, + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "support": { + "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/6.0.3" + }, + "time": "2026-03-18T20:49:53+00:00" }, { - "name": "php-tuf/composer-stager", - "version": "v2.1.1", + "name": "phpdocumentor/type-resolver", + "version": "2.1.0", "source": { "type": "git", - "url": "https://github.com/php-tuf/composer-stager.git", - "reference": "64f3b033736483af81551b0f41ab1126510cfea0" + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "dbe2133bb23e2e33a6834f4ed417f24a1b167769" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-tuf/composer-stager/zipball/64f3b033736483af81551b0f41ab1126510cfea0", - "reference": "64f3b033736483af81551b0f41ab1126510cfea0", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/dbe2133bb23e2e33a6834f4ed417f24a1b167769", + "reference": "dbe2133bb23e2e33a6834f4ed417f24a1b167769", "shasum": "" }, "require": { - "ext-json": "*", - "php": ">=8.1.0", - "symfony/filesystem": "^6.2 || ^7.0 || ^8.0", - "symfony/process": "^6.4.33 || ^7.3.11 || ^8.0", - "symfony/translation-contracts": "^3.1" - }, - "conflict": { - "symfony/process": ">=6.4 <6.4.33 || >=7.3 <7.3.11 || >=7.4 <7.4.5 || >=8.0 <8.0.5", - "symfony/symfony": ">=6.4 <6.4.33 || >=7.3 <7.3.11 || >=7.4 <7.4.5 || >=8.0 <8.0.5", - "symfony/yaml": ">=2.0.0 <5.4.52 || >=6.0.0 <6.4.40 || >=7.0.0 <7.4.12 || >=8.0.0 <8.0.12" + "doctrine/deprecations": "^1.0", + "php": "^7.4 || ^8.0", + "phpdocumentor/reflection-common": "^2.0", + "phpstan/phpdoc-parser": "^2.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^1.0", - "ext-simplexml": "*", - "phpspec/prophecy": "^1.17", - "phpspec/prophecy-phpunit": "^2.0", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^10.5.19", - "slevomat/coding-standard": "^8.13", - "squizlabs/php_codesniffer": "^3.7", - "symfony/config": "^6.3 || ^8.0", - "symfony/dependency-injection": "^6.3", - "symfony/yaml": "^6.3", - "thecodingmachine/phpstan-strict-rules": "^1.0" - }, - "suggest": { - "symfony/dependency-injection": "For dependency injection", - "symfony/translation": "For internationalization tools" + "ext-tokenizer": "*", + "phpbench/phpbench": "^1.2", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.5", + "psalm/phar": "^4" }, "type": "library", "extra": { "branch-alias": { - "dev-develop": "2.x-dev" + "dev-1.x": "1.x-dev", + "dev-2.x": "2.x-dev" } }, "autoload": { "psr-4": { - "PhpTuf\\ComposerStager\\": "src/" + "phpDocumentor\\Reflection\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -7133,18 +8771,16 @@ ], "authors": [ { - "name": "Travis Carden", - "email": "travis.carden@gmail.com", - "role": "Developer" + "name": "Mike van Riel", + "email": "me@mikevanriel.com" } ], - "description": "Stages Composer commands so they can be safely run on a production codebase.", - "homepage": "https://github.com/php-tuf/composer-stager", + "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { - "issues": "https://github.com/php-tuf/composer-stager/issues", - "source": "https://github.com/php-tuf/composer-stager" + "issues": "https://github.com/phpDocumentor/TypeResolver/issues", + "source": "https://github.com/phpDocumentor/TypeResolver/tree/2.1.0" }, - "time": "2026-07-07T14:30:49+00:00" + "time": "2026-09-27T19:32:54+00:00" }, { "name": "phpoffice/phpspreadsheet", @@ -7309,6 +8945,53 @@ }, "time": "2021-09-22T16:57:06+00:00" }, + { + "name": "phpstan/phpdoc-parser", + "version": "2.3.6", + "source": { + "type": "git", + "url": "https://github.com/phpstan/phpdoc-parser.git", + "reference": "1427af4647235b4a73b13940b1f1258d3584f36e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/1427af4647235b4a73b13940b1f1258d3584f36e", + "reference": "1427af4647235b4a73b13940b1f1258d3584f36e", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "doctrine/annotations": "^2.0", + "nikic/php-parser": "^5.3.0", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/extension-installer": "^1.0", + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpstan/phpstan-strict-rules": "^2.0", + "phpunit/phpunit": "^9.6", + "symfony/process": "^5.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "PHPStan\\PhpDocParser\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "PHPDoc parser with support for nullable, intersection and generic types", + "support": { + "issues": "https://github.com/phpstan/phpdoc-parser/issues", + "source": "https://github.com/phpstan/phpdoc-parser/tree/2.3.6" + }, + "time": "2026-09-27T20:07:45+00:00" + }, { "name": "phpstan/phpstan", "version": "2.3.1", @@ -7424,6 +9107,55 @@ }, "time": "2026-07-22T06:50:43+00:00" }, + { + "name": "psr/clock", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/clock.git", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Clock\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for reading the clock.", + "homepage": "https://github.com/php-fig/clock", + "keywords": [ + "clock", + "now", + "psr", + "psr-20", + "time" + ], + "support": { + "issues": "https://github.com/php-fig/clock/issues", + "source": "https://github.com/php-fig/clock/tree/1.0.0" + }, + "time": "2022-11-25T14:36:26+00:00", + "published-time": "2022-11-25T14:59:22+00:00" + }, { "name": "psr/container", "version": "2.0.2", @@ -7687,6 +9419,121 @@ }, "time": "2023-04-04T09:54:51+00:00" }, + { + "name": "psr/http-server-handler", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-server-handler.git", + "reference": "84c4fb66179be4caaf8e97bd239203245302e7d4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-server-handler/zipball/84c4fb66179be4caaf8e97bd239203245302e7d4", + "reference": "84c4fb66179be4caaf8e97bd239203245302e7d4", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Server\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP server-side request handler", + "keywords": [ + "handler", + "http", + "http-interop", + "psr", + "psr-15", + "psr-7", + "request", + "response", + "server" + ], + "support": { + "source": "https://github.com/php-fig/http-server-handler/tree/1.0.2" + }, + "time": "2023-04-10T20:06:20+00:00", + "published-time": "2023-04-10T20:07:30+00:00" + }, + { + "name": "psr/http-server-middleware", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-server-middleware.git", + "reference": "c1481f747daaa6a0782775cd6a8c26a1bf4a3829" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-server-middleware/zipball/c1481f747daaa6a0782775cd6a8c26a1bf4a3829", + "reference": "c1481f747daaa6a0782775cd6a8c26a1bf4a3829", + "shasum": "" + }, + "require": { + "php": ">=7.0", + "psr/http-message": "^1.0 || ^2.0", + "psr/http-server-handler": "^1.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Server\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP server-side middleware", + "keywords": [ + "http", + "http-interop", + "middleware", + "psr", + "psr-15", + "psr-7", + "request", + "response" + ], + "support": { + "issues": "https://github.com/php-fig/http-server-middleware/issues", + "source": "https://github.com/php-fig/http-server-middleware/tree/1.0.2" + }, + "time": "2023-04-11T06:14:47+00:00", + "published-time": "2023-04-11T06:15:22+00:00" + }, { "name": "psr/log", "version": "3.0.2", @@ -8120,13 +9967,60 @@ "security": "https://github.com/sebastianbergmann/diff/security/policy", "source": "https://github.com/sebastianbergmann/diff/tree/6.0.2" }, - "funding": [ + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-07-03T04:53:05+00:00" + }, + { + "name": "steverhoades/oauth2-openid-connect-server", + "version": "v3.0.1", + "source": { + "type": "git", + "url": "https://github.com/steverhoades/oauth2-openid-connect-server.git", + "reference": "f20665aeeeec78fb336c1bc89e8152b4b2380221" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/steverhoades/oauth2-openid-connect-server/zipball/f20665aeeeec78fb336c1bc89e8152b4b2380221", + "reference": "f20665aeeeec78fb336c1bc89e8152b4b2380221", + "shasum": "" + }, + "require": { + "lcobucci/jwt": "4.1.5|^4.2|^4.3|^5.0", + "league/oauth2-server": "^8.4.2|^9.0", + "php": ">=7.4" + }, + "require-dev": { + "laminas/laminas-diactoros": "^1.3.2 || ^3.3", + "phpunit/phpunit": "^5.0|^9.5" + }, + "type": "library", + "autoload": { + "psr-4": { + "OpenIDConnectServer\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ { - "url": "https://github.com/sebastianbergmann", - "type": "github" + "name": "Steve Rhoades", + "email": "sedonami@gmail.com" } ], - "time": "2024-07-03T04:53:05+00:00" + "description": "An OpenID Connect Server that sites on The PHP League's OAuth2 Server", + "support": { + "issues": "https://github.com/steverhoades/oauth2-openid-connect-server/issues", + "source": "https://github.com/steverhoades/oauth2-openid-connect-server/tree/v3.0.1" + }, + "time": "2024-09-26T16:19:13+00:00", + "published-time": "2024-09-26T16:19:53+00:00" }, { "name": "symfony/console", @@ -10195,6 +12089,90 @@ ], "time": "2026-09-25T15:46:47+00:00" }, + { + "name": "symfony/polyfill-uuid", + "version": "v1.43.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "b23ff8245cc5c4479ea2be3d0132d2e6dd433993" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/b23ff8245cc5c4479ea2be3d0132d2e6dd433993", + "reference": "b23ff8245cc5c4479ea2be3d0132d2e6dd433993", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-uuid": "*" + }, + "suggest": { + "ext-uuid": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Uuid\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for uuid functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.43.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-09-24T05:20:52+00:00", + "published-time": "2026-09-30T10:23:49+00:00" + }, { "name": "symfony/process", "version": "v7.4.21", @@ -10882,6 +12860,85 @@ ], "time": "2026-06-05T06:23:12+00:00" }, + { + "name": "symfony/uid", + "version": "v8.1.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/uid.git", + "reference": "cb487cf30380f0b0b090973bb9c0588193c06685" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/uid/zipball/cb487cf30380f0b0b090973bb9c0588193c06685", + "reference": "cb487cf30380f0b0b090973bb9c0588193c06685", + "shasum": "" + }, + "require": { + "php": ">=8.4.1", + "symfony/polyfill-uuid": "^1.15" + }, + "require-dev": { + "symfony/console": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Uid\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to generate and represent UIDs", + "homepage": "https://symfony.com", + "keywords": [ + "UID", + "ulid", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/uid/tree/v8.1.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-10-12T14:32:04+00:00", + "published-time": "2026-10-14T06:48:53+00:00" + }, { "name": "symfony/validator", "version": "v7.4.21", @@ -11645,6 +13702,72 @@ "source": "https://github.com/webflo/drupal-finder/tree/1.3.1" }, "time": "2024-06-28T13:45:36+00:00" + }, + { + "name": "webmozart/assert", + "version": "2.5.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/assert.git", + "reference": "8a163706bbcac613733dba03f51e13b5eb1bb819" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/8a163706bbcac613733dba03f51e13b5eb1bb819", + "reference": "8a163706bbcac613733dba03f51e13b5eb1bb819", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-date": "*", + "ext-filter": "*", + "php": "^8.2" + }, + "suggest": { + "ext-intl": "", + "ext-simplexml": "", + "ext-spl": "" + }, + "type": "library", + "extra": { + "psalm": { + "pluginClass": "Webmozart\\Assert\\PsalmPlugin" + }, + "branch-alias": { + "dev-master": "2.0-dev", + "dev-feature/2-0": "2.0-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + }, + { + "name": "Woody Gilk", + "email": "woody.gilk@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "support": { + "issues": "https://github.com/webmozarts/assert/issues", + "source": "https://github.com/webmozarts/assert/tree/2.5.0" + }, + "time": "2026-10-05T23:14:19+00:00" } ], "packages-dev": [ @@ -12568,57 +14691,9 @@ { "url": "https://tidelift.com/funding/github/packagist/doctrine%2Fcommon", "type": "tidelift" - } - ], - "time": "2025-01-01T22:12:03+00:00" - }, - { - "name": "doctrine/deprecations", - "version": "1.1.6", - "source": { - "type": "git", - "url": "https://github.com/doctrine/deprecations.git", - "reference": "d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca", - "reference": "d4fe3e6fd9bb9e72557a19674f44d8ac7db4c6ca", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "conflict": { - "phpunit/phpunit": "<=7.5 || >=14" - }, - "require-dev": { - "doctrine/coding-standard": "^9 || ^12 || ^14", - "phpstan/phpstan": "1.4.10 || 2.1.30", - "phpstan/phpstan-phpunit": "^1.0 || ^2", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6 || ^10.5 || ^11.5 || ^12.4 || ^13.0", - "psr/log": "^1 || ^2 || ^3" - }, - "suggest": { - "psr/log": "Allows logging deprecations via PSR-3 logger implementation" - }, - "type": "library", - "autoload": { - "psr-4": { - "Doctrine\\Deprecations\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" + } ], - "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", - "homepage": "https://www.doctrine-project.org/", - "support": { - "issues": "https://github.com/doctrine/deprecations/issues", - "source": "https://github.com/doctrine/deprecations/tree/1.1.6" - }, - "time": "2026-02-07T07:09:04+00:00" + "time": "2025-01-01T22:12:03+00:00" }, { "name": "doctrine/event-manager", @@ -14643,85 +16718,6 @@ }, "time": "2022-02-21T01:04:05+00:00" }, - { - "name": "php-http/discovery", - "version": "1.20.0", - "source": { - "type": "git", - "url": "https://github.com/php-http/discovery.git", - "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-http/discovery/zipball/82fe4c73ef3363caed49ff8dd1539ba06044910d", - "reference": "82fe4c73ef3363caed49ff8dd1539ba06044910d", - "shasum": "" - }, - "require": { - "composer-plugin-api": "^1.0|^2.0", - "php": "^7.1 || ^8.0" - }, - "conflict": { - "nyholm/psr7": "<1.0", - "zendframework/zend-diactoros": "*" - }, - "provide": { - "php-http/async-client-implementation": "*", - "php-http/client-implementation": "*", - "psr/http-client-implementation": "*", - "psr/http-factory-implementation": "*", - "psr/http-message-implementation": "*" - }, - "require-dev": { - "composer/composer": "^1.0.2|^2.0", - "graham-campbell/phpspec-skip-example-extension": "^5.0", - "php-http/httplug": "^1.0 || ^2.0", - "php-http/message-factory": "^1.0", - "phpspec/phpspec": "^5.1 || ^6.1 || ^7.3", - "sebastian/comparator": "^3.0.5 || ^4.0.8", - "symfony/phpunit-bridge": "^6.4.4 || ^7.0.1" - }, - "type": "composer-plugin", - "extra": { - "class": "Http\\Discovery\\Composer\\Plugin", - "plugin-optional": true - }, - "autoload": { - "psr-4": { - "Http\\Discovery\\": "src/" - }, - "exclude-from-classmap": [ - "src/Composer/Plugin.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com" - } - ], - "description": "Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations", - "homepage": "http://php-http.org", - "keywords": [ - "adapter", - "client", - "discovery", - "factory", - "http", - "message", - "psr17", - "psr7" - ], - "support": { - "issues": "https://github.com/php-http/discovery/issues", - "source": "https://github.com/php-http/discovery/tree/1.20.0" - }, - "time": "2024-10-02T11:20:13+00:00" - }, { "name": "php-http/guzzle7-adapter", "version": "1.1.0", @@ -14749,178 +16745,14 @@ }, "require-dev": { "php-http/client-integration-tests": "^3.0", - "php-http/message-factory": "^1.1", - "phpspec/prophecy-phpunit": "^2.0", - "phpunit/phpunit": "^8.0|^9.3" - }, - "type": "library", - "autoload": { - "psr-4": { - "Http\\Adapter\\Guzzle7\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Tobias Nyholm", - "email": "tobias.nyholm@gmail.com" - } - ], - "description": "Guzzle 7 HTTP Adapter", - "homepage": "http://httplug.io", - "keywords": [ - "Guzzle", - "http" - ], - "support": { - "issues": "https://github.com/php-http/guzzle7-adapter/issues", - "source": "https://github.com/php-http/guzzle7-adapter/tree/1.1.0" - }, - "time": "2024-11-26T11:14:36+00:00" - }, - { - "name": "php-http/httplug", - "version": "2.4.1", - "source": { - "type": "git", - "url": "https://github.com/php-http/httplug.git", - "reference": "5cad731844891a4c282f3f3e1b582c46839d22f4" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-http/httplug/zipball/5cad731844891a4c282f3f3e1b582c46839d22f4", - "reference": "5cad731844891a4c282f3f3e1b582c46839d22f4", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0", - "php-http/promise": "^1.1", - "psr/http-client": "^1.0", - "psr/http-message": "^1.0 || ^2.0" - }, - "require-dev": { - "friends-of-phpspec/phpspec-code-coverage": "^4.1 || ^5.0 || ^6.0", - "phpspec/phpspec": "^5.1 || ^6.0 || ^7.0" - }, - "type": "library", - "autoload": { - "psr-4": { - "Http\\Client\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Eric GELOEN", - "email": "geloen.eric@gmail.com" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com", - "homepage": "https://sagikazarmark.hu" - } - ], - "description": "HTTPlug, the HTTP client abstraction for PHP", - "homepage": "http://httplug.io", - "keywords": [ - "client", - "http" - ], - "support": { - "issues": "https://github.com/php-http/httplug/issues", - "source": "https://github.com/php-http/httplug/tree/2.4.1" - }, - "time": "2024-09-23T11:39:58+00:00" - }, - { - "name": "php-http/promise", - "version": "1.3.1", - "source": { - "type": "git", - "url": "https://github.com/php-http/promise.git", - "reference": "fc85b1fba37c169a69a07ef0d5a8075770cc1f83" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-http/promise/zipball/fc85b1fba37c169a69a07ef0d5a8075770cc1f83", - "reference": "fc85b1fba37c169a69a07ef0d5a8075770cc1f83", - "shasum": "" - }, - "require": { - "php": "^7.1 || ^8.0" - }, - "require-dev": { - "friends-of-phpspec/phpspec-code-coverage": "^4.3.2 || ^6.3", - "phpspec/phpspec": "^5.1.2 || ^6.2 || ^7.4" - }, - "type": "library", - "autoload": { - "psr-4": { - "Http\\Promise\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Joel Wurtz", - "email": "joel.wurtz@gmail.com" - }, - { - "name": "Márk Sági-Kazár", - "email": "mark.sagikazar@gmail.com" - } - ], - "description": "Promise used for asynchronous HTTP requests", - "homepage": "http://httplug.io", - "keywords": [ - "promise" - ], - "support": { - "issues": "https://github.com/php-http/promise/issues", - "source": "https://github.com/php-http/promise/tree/1.3.1" - }, - "time": "2024-03-15T13:55:21+00:00" - }, - { - "name": "phpdocumentor/reflection-common", - "version": "2.2.1", - "source": { - "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionCommon.git", - "reference": "ee15a5a2022c8383906b225055e9496a6a5e6e3b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/ee15a5a2022c8383906b225055e9496a6a5e6e3b", - "reference": "ee15a5a2022c8383906b225055e9496a6a5e6e3b", - "shasum": "" - }, - "require": { - "php": "^7.4 || ^8.0" - }, - "require-dev": { - "phpstan/phpstan": "^1.8", - "phpunit/phpunit": "^9.5", - "vimeo/psalm": "^4.25" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-2.x": "2.x-dev" - } + "php-http/message-factory": "^1.1", + "phpspec/prophecy-phpunit": "^2.0", + "phpunit/phpunit": "^8.0|^9.3" }, + "type": "library", "autoload": { "psr-4": { - "phpDocumentor\\Reflection\\": "src/" + "Http\\Adapter\\Guzzle7\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -14929,67 +16761,50 @@ ], "authors": [ { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com" } ], - "description": "Common reflection classes used by phpdocumentor to reflect the code structure", - "homepage": "https://www.phpdoc.org", + "description": "Guzzle 7 HTTP Adapter", + "homepage": "http://httplug.io", "keywords": [ - "FQSEN", - "phpDocumentor", - "phpdoc", - "reflection", - "static analysis" + "Guzzle", + "http" ], "support": { - "issues": "https://github.com/phpDocumentor/ReflectionCommon/issues", - "source": "https://github.com/phpDocumentor/ReflectionCommon/tree/2.2.1" + "issues": "https://github.com/php-http/guzzle7-adapter/issues", + "source": "https://github.com/php-http/guzzle7-adapter/tree/1.1.0" }, - "time": "2025-11-10T21:21:55+00:00" + "time": "2024-11-26T11:14:36+00:00" }, { - "name": "phpdocumentor/reflection-docblock", - "version": "6.0.3", + "name": "php-http/httplug", + "version": "2.4.1", "source": { "type": "git", - "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "7bae67520aa9f5ecc506d646810bd40d9da54582" + "url": "https://github.com/php-http/httplug.git", + "reference": "5cad731844891a4c282f3f3e1b582c46839d22f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/7bae67520aa9f5ecc506d646810bd40d9da54582", - "reference": "7bae67520aa9f5ecc506d646810bd40d9da54582", + "url": "https://api.github.com/repos/php-http/httplug/zipball/5cad731844891a4c282f3f3e1b582c46839d22f4", + "reference": "5cad731844891a4c282f3f3e1b582c46839d22f4", "shasum": "" }, "require": { - "doctrine/deprecations": "^1.1", - "ext-filter": "*", - "php": "^7.4 || ^8.0", - "phpdocumentor/reflection-common": "^2.2", - "phpdocumentor/type-resolver": "^2.0", - "phpstan/phpdoc-parser": "^2.0", - "webmozart/assert": "^1.9.1 || ^2" + "php": "^7.1 || ^8.0", + "php-http/promise": "^1.1", + "psr/http-client": "^1.0", + "psr/http-message": "^1.0 || ^2.0" }, "require-dev": { - "mockery/mockery": "~1.3.5 || ~1.6.0", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan": "^1.8", - "phpstan/phpstan-mockery": "^1.1", - "phpstan/phpstan-webmozart-assert": "^1.2", - "phpunit/phpunit": "^9.5", - "psalm/phar": "^5.26", - "shipmonk/dead-code-detector": "^0.5.1" + "friends-of-phpspec/phpspec-code-coverage": "^4.1 || ^5.0 || ^6.0", + "phpspec/phpspec": "^5.1 || ^6.0 || ^7.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.x-dev" - } - }, "autoload": { "psr-4": { - "phpDocumentor\\Reflection\\": "src" + "Http\\Client\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -14998,60 +16813,52 @@ ], "authors": [ { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" + "name": "Eric GELOEN", + "email": "geloen.eric@gmail.com" }, { - "name": "Jaap van Otterdijk", - "email": "opensource@ijaap.nl" + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" } ], - "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "description": "HTTPlug, the HTTP client abstraction for PHP", + "homepage": "http://httplug.io", + "keywords": [ + "client", + "http" + ], "support": { - "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/6.0.3" + "issues": "https://github.com/php-http/httplug/issues", + "source": "https://github.com/php-http/httplug/tree/2.4.1" }, - "time": "2026-03-18T20:49:53+00:00" + "time": "2024-09-23T11:39:58+00:00" }, { - "name": "phpdocumentor/type-resolver", - "version": "2.1.0", + "name": "php-http/promise", + "version": "1.3.1", "source": { "type": "git", - "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "dbe2133bb23e2e33a6834f4ed417f24a1b167769" + "url": "https://github.com/php-http/promise.git", + "reference": "fc85b1fba37c169a69a07ef0d5a8075770cc1f83" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/dbe2133bb23e2e33a6834f4ed417f24a1b167769", - "reference": "dbe2133bb23e2e33a6834f4ed417f24a1b167769", + "url": "https://api.github.com/repos/php-http/promise/zipball/fc85b1fba37c169a69a07ef0d5a8075770cc1f83", + "reference": "fc85b1fba37c169a69a07ef0d5a8075770cc1f83", "shasum": "" }, "require": { - "doctrine/deprecations": "^1.0", - "php": "^7.4 || ^8.0", - "phpdocumentor/reflection-common": "^2.0", - "phpstan/phpdoc-parser": "^2.0" + "php": "^7.1 || ^8.0" }, "require-dev": { - "ext-tokenizer": "*", - "phpbench/phpbench": "^1.2", - "phpstan/extension-installer": "^1.4", - "phpstan/phpstan": "^2.1", - "phpstan/phpstan-phpunit": "^2.0", - "phpunit/phpunit": "^9.5", - "psalm/phar": "^4" + "friends-of-phpspec/phpspec-code-coverage": "^4.3.2 || ^6.3", + "phpspec/phpspec": "^5.1.2 || ^6.2 || ^7.4" }, "type": "library", - "extra": { - "branch-alias": { - "dev-1.x": "1.x-dev", - "dev-2.x": "2.x-dev" - } - }, "autoload": { "psr-4": { - "phpDocumentor\\Reflection\\": "src" + "Http\\Promise\\": "src/" } }, "notification-url": "https://packagist.org/downloads/", @@ -15060,16 +16867,24 @@ ], "authors": [ { - "name": "Mike van Riel", - "email": "me@mikevanriel.com" + "name": "Joel Wurtz", + "email": "joel.wurtz@gmail.com" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com" } ], - "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", + "description": "Promise used for asynchronous HTTP requests", + "homepage": "http://httplug.io", + "keywords": [ + "promise" + ], "support": { - "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/2.1.0" + "issues": "https://github.com/php-http/promise/issues", + "source": "https://github.com/php-http/promise/tree/1.3.1" }, - "time": "2026-09-27T19:32:54+00:00" + "time": "2024-03-15T13:55:21+00:00" }, { "name": "phpspec/prophecy", @@ -15245,53 +17060,6 @@ }, "time": "2024-09-04T20:21:43+00:00" }, - { - "name": "phpstan/phpdoc-parser", - "version": "2.3.6", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "1427af4647235b4a73b13940b1f1258d3584f36e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/1427af4647235b4a73b13940b1f1258d3584f36e", - "reference": "1427af4647235b4a73b13940b1f1258d3584f36e", - "shasum": "" - }, - "require": { - "php": "^7.4 || ^8.0" - }, - "require-dev": { - "doctrine/annotations": "^2.0", - "nikic/php-parser": "^5.3.0", - "php-parallel-lint/php-parallel-lint": "^1.2", - "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^2.0", - "phpstan/phpstan-phpunit": "^2.0", - "phpstan/phpstan-strict-rules": "^2.0", - "phpunit/phpunit": "^9.6", - "symfony/process": "^5.2" - }, - "type": "library", - "autoload": { - "psr-4": { - "PHPStan\\PhpDocParser\\": [ - "src/" - ] - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "PHPDoc parser with support for nullable, intersection and generic types", - "support": { - "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/2.3.6" - }, - "time": "2026-09-27T20:07:45+00:00" - }, { "name": "phpstan/phpstan-phpunit", "version": "2.1.1", @@ -18046,72 +19814,6 @@ } ], "time": "2026-02-23T13:21:35+00:00" - }, - { - "name": "webmozart/assert", - "version": "2.5.0", - "source": { - "type": "git", - "url": "https://github.com/webmozarts/assert.git", - "reference": "8a163706bbcac613733dba03f51e13b5eb1bb819" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/8a163706bbcac613733dba03f51e13b5eb1bb819", - "reference": "8a163706bbcac613733dba03f51e13b5eb1bb819", - "shasum": "" - }, - "require": { - "ext-ctype": "*", - "ext-date": "*", - "ext-filter": "*", - "php": "^8.2" - }, - "suggest": { - "ext-intl": "", - "ext-simplexml": "", - "ext-spl": "" - }, - "type": "library", - "extra": { - "psalm": { - "pluginClass": "Webmozart\\Assert\\PsalmPlugin" - }, - "branch-alias": { - "dev-master": "2.0-dev", - "dev-feature/2-0": "2.0-dev" - } - }, - "autoload": { - "psr-4": { - "Webmozart\\Assert\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - }, - { - "name": "Woody Gilk", - "email": "woody.gilk@gmail.com" - } - ], - "description": "Assertions to validate method input/output with nice error messages.", - "keywords": [ - "assert", - "check", - "validate" - ], - "support": { - "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/2.5.0" - }, - "time": "2026-10-05T23:14:19+00:00" } ], "aliases": [], @@ -18123,7 +19825,11 @@ "drupal/entity_usage": 10, "drupal/inline_entity_form": 5, "drupal/masquerade": 5, + "drupal/mcp_server": 10, + "drupal/mcp_server_oauth": 15, + "drupal/mcp_server_tool_bridge": 10, "drupal/openid_connect": 15, + "drupal/tool_belt": 15, "drupal/viewsreference": 10 }, "prefer-stable": true, @@ -18132,5 +19838,5 @@ "php": "^8.3" }, "platform-dev": {}, - "plugin-api-version": "2.9.0" + "plugin-api-version": "2.11.0" } diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 325119295..57e7b6ac7 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -13,6 +13,7 @@ module: config_filter: 0 config_ignore: 0 config_translation: 0 + consumers: 0 contextual: 0 convert_media_tags_to_markup: 0 csv_serialization: 0 @@ -41,6 +42,9 @@ module: locale: 0 mailsystem: 0 masquerade: 0 + mcp_server: 0 + mcp_server_oauth: 0 + mcp_server_tool_bridge: 0 media: 0 media_library: 0 menu_link_content: 0 @@ -90,6 +94,10 @@ module: search_api_db: 0 serialization: 0 simple_menu_permissions: 0 + simple_oauth: 0 + simple_oauth_21: 0 + simple_oauth_client_registration: 0 + simple_oauth_server_metadata: 0 snowball_stemmer: 0 statistics: 0 system: 0 @@ -100,6 +108,9 @@ module: toc_filter: 0 token: 0 token_filter: 0 + tool: 0 + tool_belt: 0 + tool_belt_content: 0 toolbar: 0 twig_tweak: 0 user: 0 diff --git a/config/sync/mcp_server.settings.yml b/config/sync/mcp_server.settings.yml new file mode 100644 index 000000000..3c868d4cd --- /dev/null +++ b/config/sync/mcp_server.settings.yml @@ -0,0 +1,11 @@ +_core: + default_config_hash: X-5E5ttrkcyeCk7ua_-ucBAscwA1cKMj-srqqDDMBX4 +langcode: en +server_name: 'Drupal MCP Server' +server_version: 1.0.0 +server_instructions: '' +pagination_limit: 50 +pending: + poll_interval_ms: 300 + sampling_timeout: 25 + elicitation_timeout: 600 diff --git a/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_field_values.yml b/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_field_values.yml new file mode 100644 index 000000000..2e15c8365 --- /dev/null +++ b/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_field_values.yml @@ -0,0 +1,14 @@ +uuid: dcf812a7-4cdb-432f-9915-26fa1a0ca578 +langcode: en +status: true +dependencies: + module: + - mcp_server_oauth +third_party_settings: + mcp_server_oauth: + authentication_mode: required + scopes: + - 'mcp:read' +id: entity_field_values +tool_id: 'tool_belt:entity_field_values' +description: null diff --git a/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_list.yml b/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_list.yml new file mode 100644 index 000000000..e5db77449 --- /dev/null +++ b/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_list.yml @@ -0,0 +1,14 @@ +uuid: 974f90bb-12ed-4a4b-bfe1-f1285dca4e73 +langcode: en +status: true +dependencies: + module: + - mcp_server_oauth +third_party_settings: + mcp_server_oauth: + authentication_mode: required + scopes: + - 'mcp:read' +id: entity_list +tool_id: 'tool_belt:entity_list' +description: null diff --git a/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_load_by_id.yml b/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_load_by_id.yml new file mode 100644 index 000000000..367c79019 --- /dev/null +++ b/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_load_by_id.yml @@ -0,0 +1,14 @@ +uuid: 73b71ad9-8db6-4962-babd-1b3133b79c10 +langcode: en +status: true +dependencies: + module: + - mcp_server_oauth +third_party_settings: + mcp_server_oauth: + authentication_mode: required + scopes: + - 'mcp:read' +id: entity_load_by_id +tool_id: 'tool_belt:entity_load_by_id' +description: null diff --git a/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_load_by_property.yml b/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_load_by_property.yml new file mode 100644 index 000000000..6668ecfef --- /dev/null +++ b/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_load_by_property.yml @@ -0,0 +1,14 @@ +uuid: a9eedf82-aa63-4c7a-8292-9b117ccd22ff +langcode: en +status: true +dependencies: + module: + - mcp_server_oauth +third_party_settings: + mcp_server_oauth: + authentication_mode: required + scopes: + - 'mcp:read' +id: entity_load_by_property +tool_id: 'tool_belt:entity_load_by_property' +description: null diff --git a/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_metadata.yml b/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_metadata.yml new file mode 100644 index 000000000..33f75e7a6 --- /dev/null +++ b/config/sync/mcp_server_tool_bridge.mcp_tool_config.entity_metadata.yml @@ -0,0 +1,14 @@ +uuid: 8199b04b-c820-45bd-944f-f1bf76a42a02 +langcode: en +status: true +dependencies: + module: + - mcp_server_oauth +third_party_settings: + mcp_server_oauth: + authentication_mode: required + scopes: + - 'mcp:read' +id: entity_metadata +tool_id: 'tool_belt:entity_metadata' +description: null diff --git a/config/sync/simple_oauth.oauth2_scope.mcp_read.yml b/config/sync/simple_oauth.oauth2_scope.mcp_read.yml new file mode 100644 index 000000000..c83d2b2af --- /dev/null +++ b/config/sync/simple_oauth.oauth2_scope.mcp_read.yml @@ -0,0 +1,19 @@ +uuid: e4ae4ebd-0cc9-45a3-92ba-b432baf83029 +langcode: en +status: true +dependencies: { } +id: mcp_read +name: 'mcp:read' +description: 'Read content through MCP' +grant_types: + authorization_code: + status: true + description: 'Read content through MCP' + refresh_token: + status: true + description: 'Read content through MCP' +umbrella: false +parent: null +granularity_id: role +granularity_configuration: + role: os2loop_user_mcp diff --git a/config/sync/simple_oauth.oauth2_token.bundle.access_token.yml b/config/sync/simple_oauth.oauth2_token.bundle.access_token.yml new file mode 100644 index 000000000..a964d8129 --- /dev/null +++ b/config/sync/simple_oauth.oauth2_token.bundle.access_token.yml @@ -0,0 +1,10 @@ +uuid: 2f29490e-f86f-4d16-9668-71541a5f6774 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: f7Fq1Sh24P1luZf4RRdeDs4be4diwuU5P-XkpuxjyLk +id: access_token +label: 'Access Token' +description: 'The access token type.' +locked: true diff --git a/config/sync/simple_oauth.oauth2_token.bundle.auth_code.yml b/config/sync/simple_oauth.oauth2_token.bundle.auth_code.yml new file mode 100644 index 000000000..4b0c744d6 --- /dev/null +++ b/config/sync/simple_oauth.oauth2_token.bundle.auth_code.yml @@ -0,0 +1,10 @@ +uuid: e2ef0c32-0579-4508-b694-3135461416e7 +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: zlxpI1nUDS46lrOkyHiD-72D5OFvlADLiyXT5B1iErk +id: auth_code +label: 'Auth code' +description: 'The auth code type.' +locked: true diff --git a/config/sync/simple_oauth.oauth2_token.bundle.refresh_token.yml b/config/sync/simple_oauth.oauth2_token.bundle.refresh_token.yml new file mode 100644 index 000000000..00715b960 --- /dev/null +++ b/config/sync/simple_oauth.oauth2_token.bundle.refresh_token.yml @@ -0,0 +1,10 @@ +uuid: def1205d-3b8d-4f98-a782-917ce89c107a +langcode: en +status: true +dependencies: { } +_core: + default_config_hash: dTxawscb7hlymHgGQJP1DO58uotCWthP68yXbmv6LL8 +id: refresh_token +label: 'Refresh token' +description: 'The refresh token type.' +locked: true diff --git a/config/sync/simple_oauth.settings.yml b/config/sync/simple_oauth.settings.yml new file mode 100644 index 000000000..02fca474c --- /dev/null +++ b/config/sync/simple_oauth.settings.yml @@ -0,0 +1,7 @@ +_core: + default_config_hash: ci56aVE-Jo4w_Xy5Gkk1coAwO-fj7Q87l0PKc5E9sfo +scope_provider: dynamic +token_cron_batch_size: 0 +public_key: /app/private-files/oauth/public.key +private_key: /app/private-files/oauth/private.key +disable_openid_connect: false diff --git a/config/sync/simple_oauth_client_registration.settings.yml b/config/sync/simple_oauth_client_registration.settings.yml new file mode 100644 index 000000000..56748dc0a --- /dev/null +++ b/config/sync/simple_oauth_client_registration.settings.yml @@ -0,0 +1,5 @@ +_core: + default_config_hash: kbpR6b7sLsbjjK4FEjDXDILgGWQ-K333tS-nG_djA-o +default_grant_types: + - authorization_code + - refresh_token diff --git a/config/sync/simple_oauth_server_metadata.settings.yml b/config/sync/simple_oauth_server_metadata.settings.yml new file mode 100644 index 000000000..e7c1bfe22 --- /dev/null +++ b/config/sync/simple_oauth_server_metadata.settings.yml @@ -0,0 +1,24 @@ +_core: + default_config_hash: MpKQaM-JKKQ_j6iGlpGEWoZzBPV0b8Durrriwvhcntg +registration_endpoint: 'http://os2loop.local.itkdev.dk/oauth/register' +revocation_endpoint: '' +introspection_endpoint: '' +device_authorization_endpoint: '' +service_documentation: 'https://www.drupal.org/project/simple_oauth' +op_policy_uri: '' +op_tos_uri: '' +ui_locales_supported: + - en-US + - da-DK +additional_claims_supported: { } +additional_signing_algorithms: { } +resource_documentation: '' +resource_policy_uri: '' +resource_tos_uri: '' +response_types_supported: + - code + - id_token + - 'code id_token' +response_modes_supported: + - query + - fragment diff --git a/config/sync/system.action.user_add_role_action.os2loop_user_mcp.yml b/config/sync/system.action.user_add_role_action.os2loop_user_mcp.yml new file mode 100644 index 000000000..61dba5d04 --- /dev/null +++ b/config/sync/system.action.user_add_role_action.os2loop_user_mcp.yml @@ -0,0 +1,14 @@ +uuid: 514f1bf5-dc19-4e66-bb75-364e41f7de57 +langcode: en +status: true +dependencies: + config: + - user.role.os2loop_user_mcp + module: + - user +id: user_add_role_action.os2loop_user_mcp +label: 'Add the MCP read-only role to the selected user(s)' +type: user +plugin: user_add_role_action +configuration: + rid: os2loop_user_mcp diff --git a/config/sync/system.action.user_remove_role_action.os2loop_user_mcp.yml b/config/sync/system.action.user_remove_role_action.os2loop_user_mcp.yml new file mode 100644 index 000000000..e13a6abb3 --- /dev/null +++ b/config/sync/system.action.user_remove_role_action.os2loop_user_mcp.yml @@ -0,0 +1,14 @@ +uuid: 995c5397-0599-41d8-ac56-7f53d7986549 +langcode: en +status: true +dependencies: + config: + - user.role.os2loop_user_mcp + module: + - user +id: user_remove_role_action.os2loop_user_mcp +label: 'Remove the MCP read-only role from the selected user(s)' +type: user +plugin: user_remove_role_action +configuration: + rid: os2loop_user_mcp diff --git a/config/sync/user.role.os2loop_user_mcp.yml b/config/sync/user.role.os2loop_user_mcp.yml new file mode 100644 index 000000000..e7b16a889 --- /dev/null +++ b/config/sync/user.role.os2loop_user_mcp.yml @@ -0,0 +1,16 @@ +uuid: 89dd2a0f-3955-40b6-acc9-33f209ada643 +langcode: en +status: true +dependencies: + module: + - mcp_server + - simple_oauth + - system +id: os2loop_user_mcp +label: 'MCP read-only' +weight: 12 +is_admin: false +permissions: + - 'access content' + - 'access mcp server' + - 'grant simple_oauth codes' From e0a00236dacf068cb75896f47f1d2c2258106d47 Mon Sep 17 00:00:00 2001 From: Jesper Kristensen Date: Tue, 17 Nov 2026 16:26:54 +0100 Subject: [PATCH 2/2] Added POC on OIDC token auth on MCP --- README.md | 109 ++++++++++++ composer.json | 1 + composer.lock | 77 ++++++++- .../simple_oauth.oauth2_scope.mcp_read.yml | 3 + config/sync/user.role.authenticated.yml | 2 + .../os2loop_user_login.services.yml | 28 ++++ .../OidcBearerAuthenticationProvider.php | 141 ++++++++++++++++ .../src/Mcp/OidcBearerToolScopeMiddleware.php | 37 +++++ .../src/Routing/RouteSubscriber.php | 28 ++++ .../OidcBearerAuthenticationProviderTest.php | 155 ++++++++++++++++++ 10 files changed, 580 insertions(+), 1 deletion(-) create mode 100644 web/profiles/custom/os2loop/modules/os2loop_user_login/src/Authentication/OidcBearerAuthenticationProvider.php create mode 100644 web/profiles/custom/os2loop/modules/os2loop_user_login/src/Mcp/OidcBearerToolScopeMiddleware.php create mode 100644 web/profiles/custom/os2loop/modules/os2loop_user_login/src/Routing/RouteSubscriber.php create mode 100644 web/profiles/custom/os2loop/modules/os2loop_user_login/tests/src/Unit/OidcBearerAuthenticationProviderTest.php diff --git a/README.md b/README.md index 0f09a434c..697183cc0 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,115 @@ Commands to get machine names docker compose exec phpfpm vendor/bin/drush field:info ``` +## MCP server and Open WebUI + +The site has an MCP end-point at `/mcp`. Open WebUI can call it with the +Azure AD B2C access token of the signed-in user. The request then runs as the +Drupal user with the same `sub` claim. The user must sign in to the site one +time before the user can use MCP. + +Each signed-in user has the permission `access mcp server`. The Drupal +permissions of the user control the access to the content. + +The site does not accept B2C tokens until you set +`$settings['os2loop_oidc_bearer']`. + +```mermaid +sequenceDiagram + actor User + participant WebUI as Open WebUI + participant AD as Azure AD (B2C) + participant Site as OS2Loop /mcp + + User->>WebUI: Sign in + WebUI->>AD: Sign in with the scope "mcp" of the OS2Loop API + AD-->>WebUI: Access token (iss, aud, scp, sub) + User->>WebUI: Use an MCP tool in a chat + WebUI->>Site: Authorization: Bearer #lt;access token#gt; + Site->>AD: Get the signing keys (jwks_uri, cached 1 hour) + Site->>Site: Check the signature, iss, aud, scp and exp + Site->>Site: Find the Drupal user from sub (authmap) + Site-->>WebUI: Tool result with the access of that user +``` + +Open WebUI and the site have different app registrations in the same +directory. The site finds the user only if the user signed in to the site one +time before. + +### Azure AD app registrations + +1. Open the app registration of the OS2Loop site and go to `Expose an API`. +2. Set the Application ID URI (for example `api://`). +3. Add the scope `mcp`. +4. Open the app registration of Open WebUI and go to `API permissions`. +5. Click `Add a permission`, then `My APIs`, and select the OS2Loop API. +6. Select the scope `mcp` and grant admin consent. + +### Site + +Get a real access token that Open WebUI sends, and decode it (for example +with ). Copy the `iss` and `aud` values from the token. The +values depend on the token version: + +- v1 token (Entra ID default): `iss` is `https://sts.windows.net//` + and `aud` is the Application ID URI (`api://...`). +- v2 token (B2C, or `accessTokenAcceptedVersion: 2`): `iss` ends in `/v2.0/` + and `aud` is the client ID. + +Get `jwks_uri` from the OpenID Connect discovery document of the tenant (or +of the B2C policy). + +Add this to `web/sites/default/settings.local.php`: + +```php +$settings['os2loop_oidc_bearer'] = [ + // The "iss" value of a real access token. + 'issuer' => 'https://.b2clogin.com//v2.0/', + // The "jwks_uri" value of the discovery document. + 'jwks_uri' => 'https://.b2clogin.com/.onmicrosoft.com//discovery/v2.0/keys', + // The "aud" value of a real access token (the OS2Loop API). + 'audience' => '', + // Optional. The claim that holds the user ID. The default is "sub". + // 'claim' => 'oid', +]; +``` + +Then clear the cache: + +```sh +vendor/bin/drush cache:rebuild +``` + +### Open WebUI + +1. Add the full scope URI and `offline_access` to the scope variable. Example + of a scope URI: `https://.onmicrosoft.com//mcp`. + - Generic OIDC provider (`OPENID_PROVIDER_URL`): use `OAUTH_SCOPES`. + - Microsoft provider: use `MICROSOFT_OAUTH_SCOPE`. +2. Start Open WebUI again. Each user must sign out and sign in again. +3. Go to `Settings > Integrations > External Tool Servers` and click + `+ Add Connection`. +4. Set `Type` to `MCP (Streamable HTTP)`. +5. Set `URL` to `https:///mcp`. +6. Set `Auth` to `OAuth` and save. + +### Troubleshooting + +The site writes the reason for each refused token to the log: + +```sh +vendor/bin/drush watchdog:show --type=os2loop_user_login +``` + +- `no active user for the subject ""`: the user did not sign in to the + site, or the site stored a different claim. Compare the value with + `vendor/bin/drush sql:query "SELECT authname FROM authmap WHERE provider = 'openid_connect.generic' LIMIT 5"`. + If necessary, set `claim` in the settings. +- `no scp claim`: B2C did not issue an access token for the API. Check the + scope variable of Open WebUI. +- `wrong audience`: `audience` is not the `aud` value of the token. Copy the + value from a real token, but only if it identifies the OS2Loop API. + ## Updates ```sh diff --git a/composer.json b/composer.json index 9fae42eaa..c8c2ee41f 100644 --- a/composer.json +++ b/composer.json @@ -64,6 +64,7 @@ "drupal/viewsreference": "^2.0@beta", "drupal/xls_serialization": "^2.0", "drush/drush": "^13.0", + "firebase/php-jwt": "^7.0", "jjj/chosen": "^2.2" }, "require-dev": { diff --git a/composer.lock b/composer.lock index 28d366668..daf33aa79 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "813327ff8371c0e4768f36e9b8f5a589", + "content-hash": "b4a572cb34bb9cdaf5a4c1f75901e693", "packages": [ { "name": "asm89/stack-cors", @@ -6032,6 +6032,81 @@ }, "time": "2026-09-15T15:42:51+00:00" }, + { + "name": "firebase/php-jwt", + "version": "v7.2.1", + "source": { + "type": "git", + "url": "https://github.com/googleapis/php-jwt.git", + "reference": "0501f5729b9e2448516674aff07c7d1727869b8e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/googleapis/php-jwt/zipball/0501f5729b9e2448516674aff07c7d1727869b8e", + "reference": "0501f5729b9e2448516674aff07c7d1727869b8e", + "shasum": "" + }, + "require": { + "php": "^8.0" + }, + "require-dev": { + "guzzlehttp/guzzle": "^7.4||^8.0", + "phpfastcache/phpfastcache": "^9.2", + "phpseclib/phpseclib": "~3.0", + "phpspec/prophecy-phpunit": "^2.2", + "phpunit/phpunit": "^9.5", + "psr/cache": "^2.0||^3.0", + "psr/http-client": "^1.0", + "psr/http-factory": "^1.0" + }, + "suggest": { + "ext-sodium": "Support EdDSA (Ed25519) signatures", + "paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present", + "phpseclib/phpseclib": "Support PS256 (RSASSA-PSS) signatures" + }, + "type": "library", + "extra": { + "component": { + "id": "jwt", + "path": "Jwt", + "entry": "README.md", + "target": "googleapis/php-jwt.git" + } + }, + "autoload": { + "psr-4": { + "Firebase\\JWT\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Neuman Vong", + "email": "neuman+pear@twilio.com", + "role": "Developer" + }, + { + "name": "Anant Narayanan", + "email": "anant@php.net", + "role": "Developer" + } + ], + "description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.", + "homepage": "https://github.com/googleapis/php-jwt", + "keywords": [ + "jwt", + "php" + ], + "support": { + "issues": "https://github.com/googleapis/php-jwt/issues", + "source": "https://github.com/googleapis/php-jwt/tree/v7.2.1" + }, + "time": "2026-09-28T17:51:46+00:00", + "published-time": "2026-09-28T18:08:24+00:00" + }, { "name": "grasmash/expander", "version": "3.0.1", diff --git a/config/sync/simple_oauth.oauth2_scope.mcp_read.yml b/config/sync/simple_oauth.oauth2_scope.mcp_read.yml index c83d2b2af..75c23b09a 100644 --- a/config/sync/simple_oauth.oauth2_scope.mcp_read.yml +++ b/config/sync/simple_oauth.oauth2_scope.mcp_read.yml @@ -12,6 +12,9 @@ grant_types: refresh_token: status: true description: 'Read content through MCP' + client_credentials: + status: true + description: 'Read content through MCP' umbrella: false parent: null granularity_id: role diff --git a/config/sync/user.role.authenticated.yml b/config/sync/user.role.authenticated.yml index b4266d018..b70758214 100644 --- a/config/sync/user.role.authenticated.yml +++ b/config/sync/user.role.authenticated.yml @@ -19,6 +19,7 @@ dependencies: - entity_print - filter - flag + - mcp_server - media - node - search_api_autocomplete @@ -33,6 +34,7 @@ is_admin: false permissions: - 'access comments' - 'access content' + - 'access mcp server' - 'access user profiles' - 'create os2loop_media_file media' - 'create os2loop_media_image media' diff --git a/web/profiles/custom/os2loop/modules/os2loop_user_login/os2loop_user_login.services.yml b/web/profiles/custom/os2loop/modules/os2loop_user_login/os2loop_user_login.services.yml index 4d1b4fdbc..73fd0c5af 100644 --- a/web/profiles/custom/os2loop/modules/os2loop_user_login/os2loop_user_login.services.yml +++ b/web/profiles/custom/os2loop/modules/os2loop_user_login/os2loop_user_login.services.yml @@ -9,3 +9,31 @@ services: - "@messenger" - "@request_stack" - "@path.current" + + logger.channel.os2loop_user_login: + parent: logger.channel_base + arguments: ["os2loop_user_login"] + + os2loop_user_login.oidc_bearer_authentication: + class: Drupal\os2loop_user_login\Authentication\OidcBearerAuthenticationProvider + arguments: + - "@http_client" + - "@cache.default" + - "@externalauth.authmap" + - "@entity_type.manager" + - "@logger.channel.os2loop_user_login" + tags: + - { name: authentication_provider, provider_id: os2loop_oidc_bearer, priority: 40 } + + os2loop_user_login.route_subscriber: + class: Drupal\os2loop_user_login\Routing\RouteSubscriber + tags: + - { name: event_subscriber } + + os2loop_user_login.mcp_tool_scope_middleware: + class: Drupal\os2loop_user_login\Mcp\OidcBearerToolScopeMiddleware + decorates: mcp_server_oauth.tool_scope_middleware + decoration_on_invalid: ignore + arguments: + - "@.inner" + - "@request_stack" diff --git a/web/profiles/custom/os2loop/modules/os2loop_user_login/src/Authentication/OidcBearerAuthenticationProvider.php b/web/profiles/custom/os2loop/modules/os2loop_user_login/src/Authentication/OidcBearerAuthenticationProvider.php new file mode 100644 index 000000000..14c6504d9 --- /dev/null +++ b/web/profiles/custom/os2loop/modules/os2loop_user_login/src/Authentication/OidcBearerAuthenticationProvider.php @@ -0,0 +1,141 @@ +getToken($request)); + if (!$issuer || count($parts) !== 3) { + return FALSE; + } + // Read the issuer without a signature check. All other tokens go to the + // subsequent providers. authenticate() does the full validation. + $claims = json_decode((string) base64_decode(strtr($parts[1], '-_', '+/')), TRUE); + + return is_array($claims) && ($claims['iss'] ?? NULL) === $issuer; + } + + /** + * {@inheritdoc} + */ + public function authenticate(Request $request): ?AccountInterface { + $settings = Settings::get('os2loop_oidc_bearer', []); + try { + // Permit 60 seconds of clock difference. + JWT::$leeway = 60; + $claims = (array) JWT::decode( + (string) $this->getToken($request), + JWK::parseKeySet($this->getJwks($settings['jwks_uri'] ?? ''), 'RS256') + ); + } + catch (\Exception $exception) { + return $this->refuse($exception->getMessage()); + } + + if (($claims['iss'] ?? NULL) !== ($settings['issuer'] ?? NULL)) { + return $this->refuse('wrong issuer'); + } + if (empty($settings['audience']) || !in_array($settings['audience'], (array) ($claims['aud'] ?? []), TRUE)) { + return $this->refuse('wrong audience'); + } + // An ID token has no scope claim. Accept access tokens only. + if (empty($claims['scp'])) { + return $this->refuse('no scp claim'); + } + $subject = $claims[$settings['claim'] ?? 'sub'] ?? NULL; + $uid = is_string($subject) && $subject !== '' ? $this->authmap->getUid($subject, self::AUTHMAP_PROVIDER) : FALSE; + $account = $uid ? $this->entityTypeManager->getStorage('user')->load($uid) : NULL; + if (!$account instanceof UserInterface || !$account->isActive()) { + return $this->refuse(sprintf('no active user for the subject "%s"', is_string($subject) ? $subject : '')); + } + + $request->attributes->set(self::REQUEST_ATTRIBUTE, TRUE); + + return $account; + } + + /** + * Gets the bearer token of the request. + */ + private function getToken(Request $request): ?string { + $header = (string) $request->headers->get('Authorization'); + + return str_starts_with($header, 'Bearer ') ? substr($header, 7) : NULL; + } + + /** + * Gets the signing keys of the identity provider. + * + * @return array + * The JSON Web Key Set. + */ + private function getJwks(string $uri): array { + // ponytail: no new download for an unknown key ID. A new signing key works + // after one hour at most. Add a rate-limited download if this is too long. + if ($cached = $this->cache->get(self::JWKS_CACHE_ID)) { + return $cached->data; + } + $jwks = json_decode((string) $this->httpClient->request('GET', $uri, ['timeout' => 5])->getBody(), TRUE, 512, JSON_THROW_ON_ERROR); + $this->cache->set(self::JWKS_CACHE_ID, $jwks, time() + 3600); + + return $jwks; + } + + /** + * Writes the reason to the log. The log does not get the token. + */ + private function refuse(string $reason): ?AccountInterface { + $this->logger->warning('OIDC bearer token refused: @reason', ['@reason' => $reason]); + + return NULL; + } + +} diff --git a/web/profiles/custom/os2loop/modules/os2loop_user_login/src/Mcp/OidcBearerToolScopeMiddleware.php b/web/profiles/custom/os2loop/modules/os2loop_user_login/src/Mcp/OidcBearerToolScopeMiddleware.php new file mode 100644 index 000000000..66eb41769 --- /dev/null +++ b/web/profiles/custom/os2loop/modules/os2loop_user_login/src/Mcp/OidcBearerToolScopeMiddleware.php @@ -0,0 +1,37 @@ +requestStack->getCurrentRequest()?->attributes->get(OidcBearerAuthenticationProvider::REQUEST_ATTRIBUTE)) { + return $handler->handle($request); + } + + return $this->inner->process($request, $handler); + } + +} diff --git a/web/profiles/custom/os2loop/modules/os2loop_user_login/src/Routing/RouteSubscriber.php b/web/profiles/custom/os2loop/modules/os2loop_user_login/src/Routing/RouteSubscriber.php new file mode 100644 index 000000000..70c6c3052 --- /dev/null +++ b/web/profiles/custom/os2loop/modules/os2loop_user_login/src/Routing/RouteSubscriber.php @@ -0,0 +1,28 @@ +get('mcp_server.handle'); + if ($route === NULL) { + return; + } + $auth = $route->getOption('_auth') ?? []; + if (!in_array('os2loop_oidc_bearer', $auth, TRUE)) { + $auth[] = 'os2loop_oidc_bearer'; + $route->setOption('_auth', $auth); + } + } + +} diff --git a/web/profiles/custom/os2loop/modules/os2loop_user_login/tests/src/Unit/OidcBearerAuthenticationProviderTest.php b/web/profiles/custom/os2loop/modules/os2loop_user_login/tests/src/Unit/OidcBearerAuthenticationProviderTest.php new file mode 100644 index 000000000..ba66dff9d --- /dev/null +++ b/web/profiles/custom/os2loop/modules/os2loop_user_login/tests/src/Unit/OidcBearerAuthenticationProviderTest.php @@ -0,0 +1,155 @@ +key = self::createKey(); + $rsa = openssl_pkey_get_details($this->key)['rsa']; + $jwks = [ + 'keys' => [ + [ + 'kty' => 'RSA', + 'use' => 'sig', + 'kid' => 'k1', + 'n' => JWT::urlsafeB64Encode($rsa['n']), + 'e' => JWT::urlsafeB64Encode($rsa['e']), + ], + ], + ]; + new Settings([ + 'os2loop_oidc_bearer' => [ + 'issuer' => self::ISSUER, + 'jwks_uri' => 'https://idp.example/keys', + 'audience' => self::AUDIENCE, + ], + ]); + + $user = $this->createMock(UserInterface::class); + $user->method('isActive')->willReturn(TRUE); + $storage = $this->createMock(EntityStorageInterface::class); + $storage->method('load')->willReturnMap([[7, $user]]); + $entityTypeManager = $this->createMock(EntityTypeManagerInterface::class); + $entityTypeManager->method('getStorage')->willReturn($storage); + $authmap = $this->createMock(AuthmapInterface::class); + $authmap->method('getUid')->willReturnMap([['subject-1', 'openid_connect.generic', 7]]); + + $this->provider = new OidcBearerAuthenticationProvider( + new Client(['handler' => HandlerStack::create(new MockHandler([new Response(200, [], json_encode($jwks))]))]), + $this->createMock(CacheBackendInterface::class), + $authmap, + $entityTypeManager, + new NullLogger(), + ); + } + + /** + * Tests that only a valid access token of a known user gives an account. + */ + #[DataProvider('claimsProvider')] + public function testAuthenticate(array $claims, bool $expected): void { + $request = $this->createRequest($claims, $this->key); + + $this->assertSame($expected, $this->provider->authenticate($request) !== NULL); + $this->assertSame($expected, $request->attributes->has(OidcBearerAuthenticationProvider::REQUEST_ATTRIBUTE)); + } + + /** + * Provides claim changes and the expected result. + */ + public static function claimsProvider(): array { + return [ + 'valid token' => [[], TRUE], + 'audience as list' => [['aud' => ['other', self::AUDIENCE]], TRUE], + 'wrong audience' => [['aud' => 'other'], FALSE], + 'wrong issuer' => [['iss' => 'https://evil.example/'], FALSE], + 'expired' => [['exp' => time() - 300], FALSE], + 'ID token without scp' => [['scp' => NULL], FALSE], + 'unknown user' => [['sub' => 'subject-2'], FALSE], + ]; + } + + /** + * Tests that a token with a signature of a different key is refused. + */ + public function testWrongSignature(): void { + $this->assertNull($this->provider->authenticate($this->createRequest([], self::createKey()))); + } + + /** + * Tests that the provider applies only to tokens of the configured issuer. + */ + public function testApplies(): void { + $this->assertTrue($this->provider->applies($this->createRequest([], $this->key))); + $this->assertFalse($this->provider->applies($this->createRequest(['iss' => 'https://other.example/'], $this->key))); + $this->assertFalse($this->provider->applies(Request::create('/mcp', 'POST'))); + } + + /** + * Creates a request with a signed token. + */ + private function createRequest(array $claims, \OpenSSLAsymmetricKey $key): Request { + $claims = array_filter($claims + [ + 'iss' => self::ISSUER, + 'aud' => self::AUDIENCE, + 'sub' => 'subject-1', + 'scp' => 'mcp', + 'exp' => time() + 300, + ], static fn ($value) => $value !== NULL); + $request = Request::create('/mcp', 'POST'); + $request->headers->set('Authorization', 'Bearer ' . JWT::encode($claims, $key, 'RS256', 'k1')); + + return $request; + } + + /** + * Creates an RSA key. + */ + private static function createKey(): \OpenSSLAsymmetricKey { + return openssl_pkey_new(['private_key_bits' => 2048, 'private_key_type' => OPENSSL_KEYTYPE_RSA]); + } + +}