cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Adding a homeRealm property to OAuth2 Client
Date Mon, 08 Feb 2016 16:02:30 GMT
Repository: cxf
Updated Branches:
  refs/heads/master a6e17b735 -> 8b2d249d6


Adding a homeRealm property to OAuth2 Client


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

Branch: refs/heads/master
Commit: 8b2d249d63bc645e078bd1c40e78ca0df670c287
Parents: a6e17b7
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Feb 8 16:02:12 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Feb 8 16:02:12 2016 +0000

----------------------------------------------------------------------
 .../apache/cxf/rs/security/oauth2/common/Client.java  | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/8b2d249d/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/Client.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/Client.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/Client.java
index f85ad99..fbd9e3f 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/Client.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/common/Client.java
@@ -51,6 +51,7 @@ public class Client implements Serializable {
     private UserSubject subject;
     private UserSubject resourceOwnerSubject;
     private long registeredAt;    
+    private String homeRealm;
     
     public Client() {
         
@@ -346,4 +347,17 @@ public class Client implements Serializable {
     public void setRegisteredAt(long registeredAt) {
         this.registeredAt = registeredAt;
     }
+
+    public String getHomeRealm() {
+        return homeRealm;
+    }
+
+    /**
+     * Hint to the authentication system how the users
+     * redirected by this client need to be authenticated   
+     * @param homeRealm user home realm
+     */
+    public void setHomeRealm(String homeRealm) {
+        this.homeRealm = homeRealm;
+    }
 }


Mime
View raw message