Merge pull request #290 from Doha2012/master

minor fix
This commit is contained in:
Eugen 2015-12-03 22:14:03 +02:00
commit cdcc25e852
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");
}