Skip to content

Commit 4ec5beb

Browse files
Limm-jkrwinch
authored andcommitted
Update authentication.adoc
1 parent 571c7c8 commit 4ec5beb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/modules/ROOT/pages/servlet/saml2/login/authentication.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public class SecurityConfig {
139139
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
140140
OpenSaml4AuthenticationProvider authenticationProvider = new OpenSaml4AuthenticationProvider();
141141
authenticationProvider.setAssertionValidator(OpenSaml4AuthenticationProvider
142-
.createDefaultAssertionValidator(assertionToken -> {
142+
.createDefaultAssertionValidatorWithParameters(assertionToken -> {
143143
Map<String, Object> params = new HashMap<>();
144144
params.put(CLOCK_SKEW, Duration.ofMinutes(10).toMillis());
145145
// ... other validation parameters
@@ -171,7 +171,7 @@ open class SecurityConfig {
171171
val authenticationProvider = OpenSaml4AuthenticationProvider()
172172
authenticationProvider.setAssertionValidator(
173173
OpenSaml4AuthenticationProvider
174-
.createDefaultAssertionValidator(Converter<OpenSaml4AuthenticationProvider.AssertionToken, ValidationContext> {
174+
.createDefaultAssertionValidatorWithParameters(Converter<OpenSaml4AuthenticationProvider.AssertionToken, ValidationContext> {
175175
val params: MutableMap<String, Any> = HashMap()
176176
params[CLOCK_SKEW] =
177177
Duration.ofMinutes(10).toMillis()

0 commit comments

Comments
 (0)