diff --git a/src/main/webapp/META-INF/custom_jsps/html/portlet/login/RequestingApplication.jsp b/src/main/webapp/META-INF/custom_jsps/html/portlet/login/RequestingApplication.jsp index c283710..2695227 100644 --- a/src/main/webapp/META-INF/custom_jsps/html/portlet/login/RequestingApplication.jsp +++ b/src/main/webapp/META-INF/custom_jsps/html/portlet/login/RequestingApplication.jsp @@ -13,6 +13,7 @@ %>
We're sorry your application is not authorised by +
We're sorry your application is not authorised by D4Science
Please check that you are passing all the required parameters for you application
<%} String scope = queryMap.get(GET_SCOPE_PARAMETER); - if (clientId != null && clientId.compareTo("") != 0) { + if (scope != null && scope.compareTo("") != 0) { + boolean isValid = AuthUtil.isValidContext(scope); + clientNotAuthorised = !isValid; + if (!isValid) {%> +We're sorry the scope (infrastructure context) you passed as parameter is not valid in D4Science, passed scope: <%= scope %>
++ Please check that you are passing all the required parameters for you application +
+ <% } + } + if (clientId != null && clientId.compareTo("") != 0 && !clientNotAuthorised) { RequestingApp app = AuthUtil.getAuthorisedApplicationInfoFromIs(clientId); if (app != null) { hideCreateAccountAndForgotPassword = true; - if (app.getLogoURL() != null && !app.getLogoURL().isEmpty()) { - %> -- -
+ %> + +
+
By signing in with your <%=context.getGatewayName(request)%> credentials you are approving - this application's request to access your member data and interact + this application's request to access your data and interact with D4Science on your behalf.
+