Skip to content

Commit 3dc3b89

Browse files
committed
Support Configuring Authorities Granted
1 parent 80f048d commit 3dc3b89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/src/main/java/org/springframework/security/web/authentication/preauth/PreAuthenticatedAuthenticationProvider.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import java.util.Collection;
2020
import java.util.LinkedHashSet;
21+
import java.util.List;
2122
import java.util.function.Supplier;
2223

2324
import org.apache.commons.logging.Log;
@@ -62,7 +63,7 @@ public class PreAuthenticatedAuthenticationProvider implements AuthenticationPro
6263

6364
private UserDetailsChecker userDetailsChecker = new AccountStatusUserDetailsChecker();
6465

65-
private Supplier<Collection<GrantedAuthority>> grantedAuthoritySupplier;
66+
private Supplier<Collection<GrantedAuthority>> grantedAuthoritySupplier = List::of;
6667

6768
private boolean throwExceptionWhenTokenRejected;
6869

0 commit comments

Comments
 (0)