CAS service ${errorMessage!} not registered .
This commit is contained in:
@@ -106,6 +106,12 @@ public class SingleSignOnInterceptor implements AsyncHandlerInterceptor {
|
||||
request.getParameter(OAuth2Constants.PARAMETER.CLIENT_ID),true);
|
||||
}
|
||||
}
|
||||
|
||||
if(app == null) {
|
||||
_logger.debug("preHandle app is not exist . ");
|
||||
return true;
|
||||
}
|
||||
|
||||
SignPrincipal principal = AuthorizationUtils.getPrincipal();
|
||||
if(principal != null && app !=null) {
|
||||
if(principal.getGrantedAuthorityApps().contains(new SimpleGrantedAuthority(app.getId()))) {
|
||||
|
||||
@@ -5,24 +5,29 @@
|
||||
<#include "authorize_common.ftl">
|
||||
<script type="text/javascript">
|
||||
function redirectToLogin(){
|
||||
<#if callbackUrl??>
|
||||
var srcUrl = window.top.location.href;
|
||||
srcUrl = srcUrl.substring(srcUrl.indexOf("#"));
|
||||
var callbackUrl = "${callbackUrl}";
|
||||
var callbackUrl = "${callbackUrl!}";
|
||||
if(srcUrl.indexOf("#") >-1 ){
|
||||
callbackUrl =callbackUrl + srcUrl;
|
||||
}
|
||||
window.top.location.href = callbackUrl;
|
||||
</#if>
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body onload="redirectToLogin()" style="display:none">
|
||||
<form id="cas_sso_form" name="cas_sso_form" action="${callbackUrl}" method="get">
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" name="submitBtn" value="Continue..." /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<body onload="redirectToLogin()" >
|
||||
<form id="cas_sso_form" name="cas_sso_form" action="${callbackUrl!}" method="get" style="display:none">
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" name="submitBtn" value="Continue..." /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<#if errorMessage??>
|
||||
service ${errorMessage!} not registered .
|
||||
</#if>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user