@ -66,7 +66,7 @@ public class WebSecurityConfigurer {
formLoginConfigurer
.loginPage("/login")
.loginProcessingUrl("/signin")
.failureUrl("/login?error=1")
.failureUrl("/login?error_failed=true")
// .defaultSuccessUrl("/")
.usernameParameter("oidc_user")
.passwordParameter("oidcPwd");
@ -57,7 +57,7 @@
<code>用 'code' 换取 'access_token'</code>
<br/>
输入第一步获取的code: <input type="text" name="code" value="" ng-model="code"
required="required"/>
required="required" size="70"/>
<form th:action="@{/oauth2/token}" th:method="post" target="_blank">
@ -44,9 +44,9 @@
<div class="col-sm-9">
<input type="submit" value="Login" class="btn btn-primary"/>
<span th:if="${param.get('error') == 2}"
<span th:if="${param.access_denied}"
class="label label-danger">Access denied !!!</span>
<span th:if="${param.error == 1}"
<span th:if="${param.error_failed}"
class="label label-danger">Authentication Failure</span>
</div>