Repository: cxf-fediz
Updated Branches:
  refs/heads/master e6a2d15ff -> 58c604c85


OIDC revoke token invalid post URL

Revoke token form were posted to a fixed
context-path (fediz-oidc)

Signed-off-by: Colm O hEigeartaigh <[email protected]>


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

Branch: refs/heads/master
Commit: 58c604c85d68efbabe1b88bea1a8aff35ce8acb3
Parents: e6a2d15
Author: gonzalad <[email protected]>
Authored: Sun Apr 9 22:25:54 2017 +0200
Committer: Colm O hEigeartaigh <[email protected]>
Committed: Mon Apr 10 09:11:40 2017 +0100

----------------------------------------------------------------------
 .../oidc/src/main/webapp/WEB-INF/views/clientCodeGrants.jsp    | 2 +-
 services/oidc/src/main/webapp/WEB-INF/views/clientTokens.jsp   | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/58c604c8/services/oidc/src/main/webapp/WEB-INF/views/clientCodeGrants.jsp
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/webapp/WEB-INF/views/clientCodeGrants.jsp 
b/services/oidc/src/main/webapp/WEB-INF/views/clientCodeGrants.jsp
index 4b170e6..44a4646 100644
--- a/services/oidc/src/main/webapp/WEB-INF/views/clientCodeGrants.jsp
+++ b/services/oidc/src/main/webapp/WEB-INF/views/clientCodeGrants.jsp
@@ -75,7 +75,7 @@
                       }
                   %>
            <td>
-               <form action="/fediz-oidc/console/clients/<%= 
client.getClientId() + "/codes/" + token.getCode() + "/revoke"%>" method="POST">
+               <form action="<%=basePath%>console/clients/<%= 
client.getClientId() + "/codes/" + token.getCode() + "/revoke"%>" method="POST">
                         <input type="submit" value="Delete"/>
                </form>
            </td>

http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/58c604c8/services/oidc/src/main/webapp/WEB-INF/views/clientTokens.jsp
----------------------------------------------------------------------
diff --git a/services/oidc/src/main/webapp/WEB-INF/views/clientTokens.jsp 
b/services/oidc/src/main/webapp/WEB-INF/views/clientTokens.jsp
index 54ea6a9..b341739 100644
--- a/services/oidc/src/main/webapp/WEB-INF/views/clientTokens.jsp
+++ b/services/oidc/src/main/webapp/WEB-INF/views/clientTokens.jsp
@@ -19,7 +19,7 @@
     } 
     SimpleDateFormat dateFormat = new SimpleDateFormat("EEE, dd MMM yyyy 
HH:mm:ss", Locale.US);
     dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
-       
+
 %>
 <html xmlns="http://www.w3.org/1999/xhtml";>
 <head>
@@ -110,7 +110,7 @@
                  }
               %>
            <td>
-               <form action="/fediz-oidc/console/clients/<%= 
client.getClientId() + "/at/" + token.getTokenKey() + "/revoke"%>" 
method="POST">
+               <form action="<%=basePath%>console/clients/<%= 
client.getClientId() + "/at/" + token.getTokenKey() + "/revoke"%>" 
method="POST">
                           <input type="submit" value="Delete"/>  
                </form>
            </td>
@@ -169,7 +169,7 @@
            </td>    
               
            <td>
-               <form action="/fediz-oidc/console/clients/<%= 
client.getClientId() + "/rt/" + token.getTokenKey() + "/revoke"%>" 
method="POST">
+               <form action="<%=basePath%>console/clients/<%= 
client.getClientId() + "/rt/" + token.getTokenKey() + "/revoke"%>" 
method="POST">
                         <input type="submit" value="Delete"/>
                </form>
            </td>

Reply via email to