File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
api/src/test/java/io/kafbat/ui/config Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,17 +47,17 @@ void setUp() {
4747
4848 @ SneakyThrows
4949 @ Test
50- void ExtractAuthoritiesFromRegex () {
50+ void extractAuthoritiesFromRegex () {
5151
5252 OAuth2User oauth2User = new DefaultOAuth2User (
5353 AuthorityUtils .createAuthorityList ("SCOPE_message:read" ),
5454 Map .
of (
"role_definition" ,
Set .
of (
"ROLE-ADMIN" ,
"ANOTHER-ROLE" ),
"user_name" ,
"[email protected] " ),
5555 "user_name" );
5656
5757 HashMap <String , Object > additionalParams = new HashMap <>();
58- OAuthProperties .OAuth2Provider oAuth2Provider = new OAuthProperties .OAuth2Provider ();
59- oAuth2Provider .setCustomParams (Map .of ("roles-field" , "role_definition" ));
60- additionalParams .put ("provider" , oAuth2Provider );
58+ OAuthProperties .OAuth2Provider provider = new OAuthProperties .OAuth2Provider ();
59+ provider .setCustomParams (Map .of ("roles-field" , "role_definition" ));
60+ additionalParams .put ("provider" , provider );
6161
6262 Set <String > roles = extractor .extract (accessControlService , oauth2User , additionalParams ).block ();
6363
You can’t perform that action at this time.
0 commit comments