config相关配置。
This commit is contained in:
parent
d96f205eda
commit
133ce514b5
@ -35,12 +35,13 @@ public class AuthClientSecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void configure(HttpSecurity http) throws Exception {
|
protected void configure(HttpSecurity http) throws Exception {
|
||||||
http.formLogin()
|
http
|
||||||
|
.formLogin()
|
||||||
.defaultSuccessUrl("/authorize", true)
|
.defaultSuccessUrl("/authorize", true)
|
||||||
.and()
|
.and()
|
||||||
.logout().logoutSuccessUrl(authServer.getOauthLogout())
|
.logout().logoutSuccessUrl(authServer.getOauthLogout())
|
||||||
.and()
|
.and()
|
||||||
.authorizeRequests().antMatchers("/app/**", "/route/file/**", "/assets/**","/resource/**").permitAll()
|
.authorizeRequests().antMatchers("/app/**","/resource/**", "/route/file/**", "/assets/**").permitAll()
|
||||||
.and()
|
.and()
|
||||||
.authorizeRequests()
|
.authorizeRequests()
|
||||||
.anyRequest()
|
.anyRequest()
|
||||||
|
Loading…
Reference in New Issue
Block a user