cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Updating a token/grant relationship to Client as Many to One
Date Fri, 22 Apr 2016 13:03:40 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 649a03426 -> ec7743850


Updating a token/grant relationship to Client as Many to One


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

Branch: refs/heads/3.1.x-fixes
Commit: ec7743850ee7d26e56ecfbd7dce0dc90ed2d679c
Parents: 649a034
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Fri Apr 22 14:02:18 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Fri Apr 22 14:03:15 2016 +0100

----------------------------------------------------------------------
 .../apache/cxf/rs/security/oauth2/common/ServerAccessToken.java   | 3 ++-
 .../security/oauth2/grants/code/ServerAuthorizationCodeGrant.java | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ec774385/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/ServerAccessToken.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/ServerAccessToken.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/ServerAccessToken.java
index 903c864..406fa41 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/ServerAccessToken.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/ServerAccessToken.java
@@ -25,6 +25,7 @@ import java.util.Map;
 
 import javax.persistence.ElementCollection;
 import javax.persistence.ManyToMany;
+import javax.persistence.ManyToOne;
 import javax.persistence.MapKeyColumn;
 import javax.persistence.MappedSuperclass;
 import javax.persistence.OneToOne;
@@ -94,7 +95,7 @@ public abstract class ServerAccessToken extends AccessToken {
      * Returns the Client associated with this token
      * @return the client
      */
-    @OneToOne
+    @ManyToOne
     public Client getClient() {
         return client;
     }

http://git-wip-us.apache.org/repos/asf/cxf/blob/ec774385/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/ServerAuthorizationCodeGrant.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/ServerAuthorizationCodeGrant.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/ServerAuthorizationCodeGrant.java
index 50802d3..2c57304 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/ServerAuthorizationCodeGrant.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/grants/code/ServerAuthorizationCodeGrant.java
@@ -25,6 +25,7 @@ import java.util.Map;
 
 import javax.persistence.ElementCollection;
 import javax.persistence.Entity;
+import javax.persistence.ManyToOne;
 import javax.persistence.MapKeyColumn;
 import javax.persistence.OneToOne;
 
@@ -100,7 +101,7 @@ public class ServerAuthorizationCodeGrant extends AuthorizationCodeGrant
{
      * Returns the reference to {@link Client}
      * @return the client
      */
-    @OneToOne
+    @ManyToOne
     public Client getClient() {
         return client;
     }


Mime
View raw message