From f923ec35cc2eccf54fd5b10fd3ba55080041d50c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Wed, 16 Jul 2025 15:50:58 +0200 Subject: [PATCH] IBX-10292: Updated OAuth2 configuration --- docs/users/oauth_server.md | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/docs/users/oauth_server.md b/docs/users/oauth_server.md index a76420fbf9..a5f9256af6 100644 --- a/docs/users/oauth_server.md +++ b/docs/users/oauth_server.md @@ -105,30 +105,7 @@ security: ## Resource Server configuration -To allow resource routes to be accessible through OAuth authorization, you must define a firewall by using `Ibexa\OAuth2Server\Security\Guard\OAuth2Authenticator`. - -The following firewall example allows the REST API to be accessed as an OAuth resource. -It must be placed before the firewall with a less restrictive pattern like `ibexa_front`. - -```yaml - #… - firewall: - #… - - ibexa_rest_oauth: - pattern: ^/api/ibexa/v2 - user_checker: Ibexa\Core\MVC\Symfony\Security\UserChecker - anonymous: ~ - guard: - authenticators: - - Ibexa\OAuth2Server\Security\Guard\OAuth2Authenticator - entry_point: Ibexa\OAuth2Server\Security\Guard\OAuth2Authenticator - stateless: true - - ibexa_front: - pattern: ^/ - #… -``` +To allow resource routes to be accessible through OAuth authorization, enable OAuth2 integration for the `ibexa_rest` firewall by setting the `oauth2` property to true. ## Client