minor fix

This commit is contained in:
DOHA 2015-12-03 21:58:00 +02:00
parent c58922a8de
commit de70a8595c
4 changed files with 5 additions and 3 deletions

View File

@ -28,7 +28,7 @@ public class ServerSecurityConfig extends WebSecurityConfigurerAdapter {
http.authorizeRequests()
.antMatchers("/login").permitAll()
.anyRequest().authenticated()
// .and().formLogin().permitAll()
.and().formLogin().permitAll()
;
// @formatter:on
}

View File

@ -26,8 +26,9 @@ public class UiWebConfig extends WebMvcConfigurerAdapter {
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
super.addViewControllers(registry);
registry.addViewController("/index");
registry.addViewController("/").setViewName("forward:/index");
registry.addViewController("/oauthTemp");
registry.addViewController("/index");
}
@Override

View File

@ -12,7 +12,7 @@
<oauth
site="http://localhost:8081/spring-security-oauth-server"
client-id="clientId"
redirect-uri="http://localhost:8081/spring-security-oauth-ui-implicit/index"
redirect-uri="http://localhost:8081/spring-security-oauth-ui-implicit/"
scope="read"
template="oauthTemp">
</oauth>

View File

@ -26,6 +26,7 @@ public class UiWebConfig extends WebMvcConfigurerAdapter {
@Override
public void addViewControllers(final ViewControllerRegistry registry) {
super.addViewControllers(registry);
registry.addViewController("/").setViewName("forward:/index");
registry.addViewController("/index");
registry.addViewController("/login");
}