Commit a03256c8 authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent 9059fba1
......@@ -88,7 +88,7 @@ public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
.failureHandler(authenticationFailureHandler()).and().logout()
.logoutSuccessHandler(logoutSuccessHandler()).deleteCookies("JSESSIONID").invalidateHttpSession(true)
.and()
.authorizeRequests().antMatchers("/**/login","/token/**", "/actuator/**", "/mobile/**", "/oauth/token","/weixin/callback","/oauth/wxLogin").permitAll()
.authorizeRequests().antMatchers("/**/login","/token/**", "/actuator/**", "/mobile/**", "/oauth/token","/weixin/callback","**/oauth/wxLogin").permitAll()
.anyRequest().authenticated().and().csrf().disable();
}
......
......@@ -48,6 +48,7 @@ public class WxAuthenticationProvider extends MyAbstractUserDetailsAuthenticatio
// }
try {
loadedUser = this.getUserDetailsService().loadUserByUsername(wxUserName);
log.error(wxUserName+":"+loadedUser.getUsername());
} catch (UsernameNotFoundException var6) {
throw var6;
} catch (Exception var7) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment