Skip to content

Commit ff03540

Browse files
committed
Revise document to replace outdated NimbusOpaqueTokenIntrospector with SpringOpaqueTokenIntrospector
Signed-off-by: Yanming Zhou <[email protected]>
1 parent 39b195c commit ff03540

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/modules/ROOT/pages/servlet/oauth2/resource-server/opaque-token.adoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[[oauth2resourceserver-opaque-minimaldependencies]]
55
== Minimal Dependencies for Introspection
66
As described in xref:servlet/oauth2/resource-server/jwt.adoc#oauth2resourceserver-jwt-minimaldependencies[Minimal Dependencies for JWT] most of Resource Server support is collected in `spring-security-oauth2-resource-server`.
7-
However unless a custom <<oauth2resourceserver-opaque-introspector,`OpaqueTokenIntrospector`>> is provided, the Resource Server will fallback to NimbusOpaqueTokenIntrospector.
7+
However unless a custom <<oauth2resourceserver-opaque-introspector,`OpaqueTokenIntrospector`>> is provided, the Resource Server will fallback to SpringOpaqueTokenIntrospector.
88
Meaning that both `spring-security-oauth2-resource-server` and `oauth2-oidc-sdk` are necessary in order to have a working minimal Resource Server that supports opaque Bearer Tokens.
99
Please refer to `spring-security-oauth2-resource-server` in order to determine the correct version for `oauth2-oidc-sdk`.
1010

@@ -361,7 +361,7 @@ Xml::
361361
[source,xml,role="primary"]
362362
----
363363
<bean id="opaqueTokenIntrospector"
364-
class="org.springframework.security.oauth2.server.resource.introspection.NimbusOpaqueTokenIntrospector">
364+
class="org.springframework.security.oauth2.server.resource.introspection.SpringOpaqueTokenIntrospector">
365365
<constructor-arg value="${spring.security.oauth2.resourceserver.opaquetoken.introspection_uri}"/>
366366
<constructor-arg value="${spring.security.oauth2.resourceserver.opaquetoken.client_id}"/>
367367
<constructor-arg value="${spring.security.oauth2.resourceserver.opaquetoken.client_secret}"/>
@@ -445,7 +445,7 @@ Xml::
445445
[source,xml,role="secondary"]
446446
----
447447
<bean id="opaqueTokenIntrospector"
448-
class="org.springframework.security.oauth2.server.resource.introspection.NimbusOpaqueTokenIntrospector">
448+
class="org.springframework.security.oauth2.server.resource.introspection.SpringOpaqueTokenIntrospector">
449449
<constructor-arg value="https://idp.example.com/introspect"/>
450450
<constructor-arg value="client"/>
451451
<constructor-arg value="secret"/>
@@ -740,7 +740,7 @@ By default, Resource Server uses connection and socket timeouts of 30 seconds ea
740740
This may be too short in some scenarios.
741741
Further, it doesn't take into account more sophisticated patterns like back-off and discovery.
742742

743-
To adjust the way in which Resource Server connects to the authorization server, `NimbusOpaqueTokenIntrospector` accepts an instance of `RestOperations`:
743+
To adjust the way in which Resource Server connects to the authorization server, `SpringOpaqueTokenIntrospector` accepts an instance of `RestOperations`:
744744

745745
[tabs]
746746
======

0 commit comments

Comments
 (0)