Skip to content

Commit 70f31b8

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: [Security] Fix the OIDC discovery cache configuration
2 parents 5ff9f06 + 9420b24 commit 70f31b8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

security/access_token.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@ Next, configure the ``base_uri`` and ``discovery`` options:
434434
oidc_user_info:
435435
base_uri: https://www.example.com/realms/demo/
436436
discovery:
437-
cache: cache.app
437+
cache:
438+
id: cache.app
438439
439440
.. code-block:: xml
440441
@@ -473,7 +474,7 @@ Next, configure the ``base_uri`` and ``discovery`` options:
473474
->oidcUserInfo()
474475
->baseUri('https://www.example.com/realms/demo/')
475476
->discovery()
476-
->cache('cache.app')
477+
->cache(['id' => 'cache.app'])
477478
;
478479
};
479480
@@ -482,7 +483,7 @@ Next, configure the ``base_uri`` and ``discovery`` options:
482483
Support for OpenID Connect Discovery was introduced in Symfony 7.3.
483484

484485
Following the `OpenID Connect Specification`_, the ``sub`` claim is used as user
485-
identifier by default. To use another claim, specify it on the configuration:
486+
identifier by default. To use another claim, specify it using the ``claim`` option:
486487

487488
.. configuration-block::
488489

@@ -744,7 +745,8 @@ from the OpenID Connect Discovery), and configure the ``discovery`` option:
744745
issuers: ['https://oidc.example.com']
745746
discovery:
746747
base_uri: https://www.example.com/realms/demo/
747-
cache: cache.app
748+
cache:
749+
id: cache.app
748750
749751
.. code-block:: xml
750752
@@ -790,7 +792,7 @@ from the OpenID Connect Discovery), and configure the ``discovery`` option:
790792
->issuers(['https://oidc.example.com'])
791793
->discovery()
792794
->baseUri('https://www.example.com/realms/demo/')
793-
->cache('cache.app')
795+
->cache(['id' => 'cache.app'])
794796
;
795797
};
796798

0 commit comments

Comments
 (0)