cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Minor update to oidc security context
Date Wed, 05 Aug 2015 16:14:06 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 1242d3430 -> b6a8a6899


Minor update to oidc security context


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

Branch: refs/heads/3.0.x-fixes
Commit: b6a8a689908f72241546bdf220990d68d7b7a475
Parents: 1242d34
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Wed Aug 5 17:11:40 2015 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Wed Aug 5 17:13:48 2015 +0100

----------------------------------------------------------------------
 .../org/apache/cxf/rs/security/oidc/rp/OidcSecurityContext.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/b6a8a689/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/rp/OidcSecurityContext.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/rp/OidcSecurityContext.java
b/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/rp/OidcSecurityContext.java
index 2e0e04e..df0242f 100644
--- a/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/rp/OidcSecurityContext.java
+++ b/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/rp/OidcSecurityContext.java
@@ -41,7 +41,7 @@ public class OidcSecurityContext extends SimpleSecurityContext implements
Securi
         if (oidcContext.getUserInfo() != null) {
             return oidcContext.getUserInfo().getEmail();
         } else {
-            return oidcContext.getIdToken().getSubject();
+            return oidcContext.getIdToken().getEmail();
         }
     }
     @Override


Mime
View raw message