Skip to content

Commit

Permalink
Polish gh-11665
Browse files Browse the repository at this point in the history
* Add authentication-converter-ref to 6.0
* Add @configuration to test configs
  • Loading branch information
sjohnr committed Sep 14, 2022
1 parent 2431dd1 commit 1aee40d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2463,6 +2463,7 @@ protected void configure(HttpSecurity http) throws Exception {

}

@Configuration
@EnableWebSecurity
static class OpaqueTokenAuthenticationConverterConfig extends WebSecurityConfigurerAdapter {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1075,6 +1075,7 @@ SecurityWebFilterChain springSecurity(ServerHttpSecurity http) {

}

@Configuration
@EnableWebFlux
@EnableWebFluxSecurity
static class ReactiveOpaqueTokenAuthenticationConverterConfig {
Expand Down

0 comments on commit 1aee40d

Please sign in to comment.