oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmo...@apache.org
Subject svn commit: r1146607 - in /incubator/amber/trunk/oauth-2.0: oauth2-authzserver/src/main/java/org/apache/amber/oauth2/as/request/OAuthAuthzRequest.java oauth2-common/src/main/java/org/apache/amber/oauth2/common/exception/OAuthRuntimeException.java
Date Thu, 14 Jul 2011 09:04:58 GMT
Author: lmoren
Date: Thu Jul 14 09:04:57 2011
New Revision: 1146607

URL: http://svn.apache.org/viewvc?rev=1146607&view=rev
Log:
[AMBER-26] - OAuthAuthzRequest does not contain getState() method

Modified:
    incubator/amber/trunk/oauth-2.0/oauth2-authzserver/src/main/java/org/apache/amber/oauth2/as/request/OAuthAuthzRequest.java
    incubator/amber/trunk/oauth-2.0/oauth2-common/src/main/java/org/apache/amber/oauth2/common/exception/OAuthRuntimeException.java

Modified: incubator/amber/trunk/oauth-2.0/oauth2-authzserver/src/main/java/org/apache/amber/oauth2/as/request/OAuthAuthzRequest.java
URL: http://svn.apache.org/viewvc/incubator/amber/trunk/oauth-2.0/oauth2-authzserver/src/main/java/org/apache/amber/oauth2/as/request/OAuthAuthzRequest.java?rev=1146607&r1=1146606&r2=1146607&view=diff
==============================================================================
--- incubator/amber/trunk/oauth-2.0/oauth2-authzserver/src/main/java/org/apache/amber/oauth2/as/request/OAuthAuthzRequest.java
(original)
+++ incubator/amber/trunk/oauth-2.0/oauth2-authzserver/src/main/java/org/apache/amber/oauth2/as/request/OAuthAuthzRequest.java
Thu Jul 14 09:04:57 2011
@@ -26,12 +26,12 @@ import javax.servlet.http.HttpServletReq
 import org.apache.amber.oauth2.as.validator.CodeTokenValidator;
 import org.apache.amber.oauth2.as.validator.CodeValidator;
 import org.apache.amber.oauth2.as.validator.TokenValidator;
+import org.apache.amber.oauth2.common.OAuth;
 import org.apache.amber.oauth2.common.exception.OAuthProblemException;
 import org.apache.amber.oauth2.common.exception.OAuthSystemException;
 import org.apache.amber.oauth2.common.message.types.ResponseType;
 import org.apache.amber.oauth2.common.utils.OAuthUtils;
 import org.apache.amber.oauth2.common.validators.OAuthValidator;
-import org.apache.amber.oauth2.common.OAuth;
 
 /**
  * @author Maciej Machulak (m.p.machulak@ncl.ac.uk)
@@ -62,5 +62,8 @@ public class OAuthAuthzRequest extends O
 
     }
 
+    public String getState() {
+        return getParam(OAuth.OAUTH_STATE);
+    }
 
 }

Modified: incubator/amber/trunk/oauth-2.0/oauth2-common/src/main/java/org/apache/amber/oauth2/common/exception/OAuthRuntimeException.java
URL: http://svn.apache.org/viewvc/incubator/amber/trunk/oauth-2.0/oauth2-common/src/main/java/org/apache/amber/oauth2/common/exception/OAuthRuntimeException.java?rev=1146607&r1=1146606&r2=1146607&view=diff
==============================================================================
--- incubator/amber/trunk/oauth-2.0/oauth2-common/src/main/java/org/apache/amber/oauth2/common/exception/OAuthRuntimeException.java
(original)
+++ incubator/amber/trunk/oauth-2.0/oauth2-common/src/main/java/org/apache/amber/oauth2/common/exception/OAuthRuntimeException.java
Thu Jul 14 09:04:57 2011
@@ -25,18 +25,18 @@ package org.apache.amber.oauth2.common.e
  */
 public class OAuthRuntimeException extends RuntimeException {
     public OAuthRuntimeException() {
-        super();    //To change body of overridden methods use File | Settings | File Templates.
+        super();
     }
 
     public OAuthRuntimeException(String message) {
-        super(message);    //To change body of overridden methods use File | Settings | File
Templates.
+        super(message);
     }
 
     public OAuthRuntimeException(String message, Throwable cause) {
-        super(message, cause);    //To change body of overridden methods use File | Settings
| File Templates.
+        super(message, cause);
     }
 
     public OAuthRuntimeException(Throwable cause) {
-        super(cause);    //To change body of overridden methods use File | Settings | File
Templates.
+        super(cause);
     }
 }



Mime
View raw message