Skip to content

Commit

Permalink
[branch-2.9] Fix cherry-pick issue (#17894)
Browse files Browse the repository at this point in the history
* Verify branch-2.9 CI

* [branch-2.9] Fix cherry-pick issue
  • Loading branch information
codelipenghui authored Sep 30, 2022
1 parent 39ce324 commit b07d31b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected void doInitConf() throws Exception {
superUserRoles.add("superUser");
conf.setSuperUserRoles(superUserRoles);

conf.setAuthenticationProviders(Set.of(AuthenticationProviderToken.class.getName()));
conf.setAuthenticationProviders(Collections.singleton(AuthenticationProviderToken.class.getName()));
Properties properties = new Properties();
properties.setProperty("tokenSecretKey", AuthTokenUtils.encodeKeyBase64(SECRET_KEY));
conf.setProperties(properties);
Expand Down Expand Up @@ -118,7 +118,7 @@ protected void setup() throws Exception {
proxyConfig.setBrokerClientAuthenticationPlugin(AuthenticationToken.class.getName());
proxyConfig.setBrokerClientAuthenticationParameters(
AuthTokenUtils.createToken(SECRET_KEY, "Proxy", Optional.empty()));
proxyConfig.setAuthenticationProviders(Set.of(AuthenticationProviderToken.class.getName()));
proxyConfig.setAuthenticationProviders(Collections.singleton(AuthenticationProviderToken.class.getName()));
Properties properties = new Properties();
properties.setProperty("tokenSecretKey", AuthTokenUtils.encodeKeyBase64(SECRET_KEY));
proxyConfig.setProperties(properties);
Expand Down

0 comments on commit b07d31b

Please sign in to comment.