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:03:22 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes e8719af02 -> 03a3cf4f9


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/03a3cf4f
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/03a3cf4f
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/03a3cf4f

Branch: refs/heads/3.1.x-fixes
Commit: 03a3cf4f94236f94fc35c39b5c075ff79c82e0dc
Parents: e8719af
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:03:11 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/03a3cf4f/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