Skip to content

Commit f8dd231

Browse files
authored
IBX-10292: Updated OAuth2 configuration (#2832)
1 parent 11be5d3 commit f8dd231

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

docs/users/oauth_server.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -105,30 +105,7 @@ security:
105105

106106
## Resource Server configuration
107107

108-
To allow resource routes to be accessible through OAuth authorization, you must define a firewall by using `Ibexa\OAuth2Server\Security\Guard\OAuth2Authenticator`.
109-
110-
The following firewall example allows the REST API to be accessed as an OAuth resource.
111-
It must be placed before the firewall with a less restrictive pattern like `ibexa_front`.
112-
113-
```yaml
114-
#…
115-
firewall:
116-
#…
117-
118-
ibexa_rest_oauth:
119-
pattern: ^/api/ibexa/v2
120-
user_checker: Ibexa\Core\MVC\Symfony\Security\UserChecker
121-
anonymous: ~
122-
guard:
123-
authenticators:
124-
- Ibexa\OAuth2Server\Security\Guard\OAuth2Authenticator
125-
entry_point: Ibexa\OAuth2Server\Security\Guard\OAuth2Authenticator
126-
stateless: true
127-
128-
ibexa_front:
129-
pattern: ^/
130-
#…
131-
```
108+
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.
132109

133110
## Client
134111

0 commit comments

Comments
 (0)