Skip to content

Commit 446c7a0

Browse files
committed
Change doc to reference SpringOpaqueTokenIntrospector
Signed-off-by: Andreas Svanberg <[email protected]>
1 parent 7986da1 commit 446c7a0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +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.
8-
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.
9-
Please refer to `spring-security-oauth2-resource-server` in order to determine the correct version for `oauth2-oidc-sdk`.
7+
However unless a custom <<oauth2resourceserver-opaque-introspector,`OpaqueTokenIntrospector`>> is provided, the Resource Server will fallback to SpringOpaqueTokenIntrospector.
108

119
[[oauth2resourceserver-opaque-minimalconfiguration]]
1210
== Minimal Configuration for Introspection
@@ -361,7 +359,7 @@ Xml::
361359
[source,xml,role="primary"]
362360
----
363361
<bean id="opaqueTokenIntrospector"
364-
class="org.springframework.security.oauth2.server.resource.introspection.NimbusOpaqueTokenIntrospector">
362+
class="org.springframework.security.oauth2.server.resource.introspection.SpringOpaqueTokenIntrospector">
365363
<constructor-arg value="${spring.security.oauth2.resourceserver.opaquetoken.introspection_uri}"/>
366364
<constructor-arg value="${spring.security.oauth2.resourceserver.opaquetoken.client_id}"/>
367365
<constructor-arg value="${spring.security.oauth2.resourceserver.opaquetoken.client_secret}"/>
@@ -445,7 +443,7 @@ Xml::
445443
[source,xml,role="secondary"]
446444
----
447445
<bean id="opaqueTokenIntrospector"
448-
class="org.springframework.security.oauth2.server.resource.introspection.NimbusOpaqueTokenIntrospector">
446+
class="org.springframework.security.oauth2.server.resource.introspection.SpringOpaqueTokenIntrospector">
449447
<constructor-arg value="https://idp.example.com/introspect"/>
450448
<constructor-arg value="client"/>
451449
<constructor-arg value="secret"/>
@@ -740,7 +738,7 @@ By default, Resource Server uses connection and socket timeouts of 30 seconds ea
740738
This may be too short in some scenarios.
741739
Further, it doesn't take into account more sophisticated patterns like back-off and discovery.
742740

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

745743
[tabs]
746744
======

0 commit comments

Comments
 (0)