From d208974effc5088a808d74c1391034a223ccc6ee Mon Sep 17 00:00:00 2001 From: Bart Sopers <15631208+bartsopers@users.noreply.github.com> Date: Mon, 22 Jun 2026 15:58:11 +0200 Subject: [PATCH] Fix incorrect example in SAML2 authentication docs In the 'Configuring a Principal's Granted Authorities' example, call setGrantedAuthoritiesConverter instead of setPrincipalNameConverter Signed-off-by: Bart Sopers <15631208+bartsopers@users.noreply.github.com> --- .../ROOT/pages/servlet/saml2/login/authentication.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/modules/ROOT/pages/servlet/saml2/login/authentication.adoc b/docs/modules/ROOT/pages/servlet/saml2/login/authentication.adoc index c9df44e9c6c..06267fda98d 100644 --- a/docs/modules/ROOT/pages/servlet/saml2/login/authentication.adoc +++ b/docs/modules/ROOT/pages/servlet/saml2/login/authentication.adoc @@ -368,7 +368,7 @@ Java:: @Bean ResponseAuthenticationConverter authenticationConverter() { ResponseAuthenticationConverter authenticationConverter = new ResponseAuthenticationConverter(); - authenticationConverter.setPrincipalNameConverter((assertion) -> { + authenticationConverter.setGrantedAuthoritiesConverter((assertion) -> { // ... grant the needed authorities based on attributes in the assertion }); return authenticationConverter; @@ -382,7 +382,7 @@ Kotlin:: @Bean fun authenticationConverter(): ResponseAuthenticationConverter { val authenticationConverter = ResponseAuthenticationConverter() - authenticationConverter.setPrincipalNameConverter{ assertion -> + authenticationConverter.setGrantedAuthoritiesConverter{ assertion -> // ... grant the needed authorities based on attributes in the assertion } return authenticationConverter