Browse Source
fix bug: When using jwt token to access the api, JwtTokenAuthenticationProcessingFilter is executed 2 times (#2531)
pull/2546/head
blackstar-baba
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
1 deletions
-
application/src/main/java/org/thingsboard/server/config/ThingsboardSecurityConfiguration.java
|
|
|
@ -107,7 +107,6 @@ public class ThingsboardSecurityConfiguration extends WebSecurityConfigurerAdapt |
|
|
|
return filter; |
|
|
|
} |
|
|
|
|
|
|
|
@Bean |
|
|
|
protected JwtTokenAuthenticationProcessingFilter buildJwtTokenAuthenticationProcessingFilter() throws Exception { |
|
|
|
List<String> pathsToSkip = new ArrayList(Arrays.asList(NON_TOKEN_BASED_AUTH_ENTRY_POINTS)); |
|
|
|
pathsToSkip.addAll(Arrays.asList(WS_TOKEN_BASED_AUTH_ENTRY_POINT, TOKEN_REFRESH_ENTRY_POINT, FORM_BASED_LOGIN_ENTRY_POINT, |
|
|
|
|