cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf-fediz git commit: FEDIZ-134: prototyping an error form which will be used if something is wromg with a redirect uri
Date Mon, 16 Nov 2015 15:05:30 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master a92b6ed79 -> 562316478


FEDIZ-134: prototyping an error form which will be used if something is wromg with a redirect
uri


Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/56231647
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/56231647
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/56231647

Branch: refs/heads/master
Commit: 562316478ae416409f186445a5e72a567728441d
Parents: a92b6ed
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Nov 16 15:05:15 2015 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Nov 16 15:05:15 2015 +0000

----------------------------------------------------------------------
 .../main/webapp/WEB-INF/views/oAuthError.jsp    | 35 ++++++++++++++++++++
 1 file changed, 35 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/56231647/services/oidc/src/main/webapp/WEB-INF/views/oAuthError.jsp
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/webapp/WEB-INF/views/oAuthError.jsp b/services/oidc/src/main/webapp/WEB-INF/views/oAuthError.jsp
new file mode 100644
index 0000000..93c96c6
--- /dev/null
+++ b/services/oidc/src/main/webapp/WEB-INF/views/oAuthError.jsp
@@ -0,0 +1,35 @@
+<%@ page import="javax.servlet.http.HttpServletRequest, org.apache.cxf.rs.security.oauth2.common.OAuthError"
%>
+
+<%
+    OAuthError error = (OAuthError)request.getAttribute("data");
+    String basePath = request.getContextPath() + request.getServletPath();
+    if (!basePath.endsWith("/")) {
+        basePath += "/";
+    } 
+%>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+    <title>Authorization Code Error Response</title>
+    <STYLE TYPE="text/css">
+	<!--
+	  div.padded {  
+         padding-left: 2em;  
+      }   
+	-->
+</STYLE>
+</head>
+<body>
+<div class="padded">
+
+<h1>
+Authorization error: <%= error.getError() %> 
+</h1>
+<br/>
+<p>
+Back to <a href="<%= basePath %>client">Client Registration page</a>
+</p>
+</big></big>
+</div>
+</body>
+</html>
+


Mime
View raw message