Polish gh-11665

* Add authentication-converter-ref to 6.0
* Add @Configuration to test configs
This commit is contained in:
Steve Riesenberg 2022-09-14 10:14:11 -05:00
parent 2431dd1103
commit 1aee40dcca
No known key found for this signature in database
GPG Key ID: 5F311AB48A55D521
4 changed files with 12 additions and 0 deletions

View File

@ -667,6 +667,9 @@ opaque-token.attlist &=
opaque-token.attlist &=
## Reference to an OpaqueTokenIntrospector
attribute introspector-ref {xsd:token}?
opaque-token.attlist &=
## Reference to an OpaqueTokenAuthenticationConverter responsible for converting successful introspection result into an Authentication.
attribute authentication-converter-ref {xsd:token}?
saml2-login =
## Configures authentication support for SAML 2.0 Login

View File

@ -2037,6 +2037,13 @@
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="authentication-converter-ref" type="xs:token">
<xs:annotation>
<xs:documentation>Reference to an OpaqueTokenAuthenticationConverter responsible for converting successful
introspection result into an Authentication.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:attributeGroup>
<xs:attributeGroup name="saml2-login.attlist">

View File

@ -2463,6 +2463,7 @@ public class OAuth2ResourceServerConfigurerTests {
}
@Configuration
@EnableWebSecurity
static class OpaqueTokenAuthenticationConverterConfig extends WebSecurityConfigurerAdapter {

View File

@ -1075,6 +1075,7 @@ public class OAuth2ResourceServerSpecTests {
}
@Configuration
@EnableWebFlux
@EnableWebFluxSecurity
static class ReactiveOpaqueTokenAuthenticationConverterConfig {