Skip to content

Commit 8e4006c

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: [Security] Fix the OIDC discovery cache configuration
2 parents cabb787 + 70f31b8 commit 8e4006c

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,12 +474,12 @@ 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
480481
Following the `OpenID Connect Specification`_, the ``sub`` claim is used as user
481-
identifier by default. To use another claim, specify it on the configuration:
482+
identifier by default. To use another claim, specify it using the ``claim`` option:
482483

483484
.. configuration-block::
484485

@@ -731,7 +732,8 @@ from the OpenID Connect Discovery), and configure the ``discovery`` option:
731732
issuers: ['https://oidc.example.com']
732733
discovery:
733734
base_uri: https://www.example.com/realms/demo/
734-
cache: cache.app
735+
cache:
736+
id: cache.app
735737
736738
.. code-block:: xml
737739
@@ -777,7 +779,7 @@ from the OpenID Connect Discovery), and configure the ``discovery`` option:
777779
->issuers(['https://oidc.example.com'])
778780
->discovery()
779781
->baseUri('https://www.example.com/realms/demo/')
780-
->cache('cache.app')
782+
->cache(['id' => 'cache.app'])
781783
;
782784
};
783785

0 commit comments

Comments
 (0)