Skip to content

Commit 1aee40d

Browse files
author
Steve Riesenberg
committed
Polish gh-11665
* Add authentication-converter-ref to 6.0 * Add @configuration to test configs
1 parent 2431dd1 commit 1aee40d

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

config/src/main/resources/org/springframework/security/config/spring-security-6.0.rnc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,9 @@ opaque-token.attlist &=
667667
opaque-token.attlist &=
668668
## Reference to an OpaqueTokenIntrospector
669669
attribute introspector-ref {xsd:token}?
670+
opaque-token.attlist &=
671+
## Reference to an OpaqueTokenAuthenticationConverter responsible for converting successful introspection result into an Authentication.
672+
attribute authentication-converter-ref {xsd:token}?
670673

671674
saml2-login =
672675
## Configures authentication support for SAML 2.0 Login

config/src/main/resources/org/springframework/security/config/spring-security-6.0.xsd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,13 @@
20372037
</xs:documentation>
20382038
</xs:annotation>
20392039
</xs:attribute>
2040+
<xs:attribute name="authentication-converter-ref" type="xs:token">
2041+
<xs:annotation>
2042+
<xs:documentation>Reference to an OpaqueTokenAuthenticationConverter responsible for converting successful
2043+
introspection result into an Authentication.
2044+
</xs:documentation>
2045+
</xs:annotation>
2046+
</xs:attribute>
20402047
</xs:attributeGroup>
20412048

20422049
<xs:attributeGroup name="saml2-login.attlist">

config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurerTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,6 +2463,7 @@ protected void configure(HttpSecurity http) throws Exception {
24632463

24642464
}
24652465

2466+
@Configuration
24662467
@EnableWebSecurity
24672468
static class OpaqueTokenAuthenticationConverterConfig extends WebSecurityConfigurerAdapter {
24682469

config/src/test/java/org/springframework/security/config/web/server/OAuth2ResourceServerSpecTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,7 @@ SecurityWebFilterChain springSecurity(ServerHttpSecurity http) {
10751075

10761076
}
10771077

1078+
@Configuration
10781079
@EnableWebFlux
10791080
@EnableWebFluxSecurity
10801081
static class ReactiveOpaqueTokenAuthenticationConverterConfig {

0 commit comments

Comments
 (0)