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 OidcHybridService
Date Mon, 07 Mar 2016 14:15:35 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 8118c5a30 -> 84cbf087e


Minor update to OidcHybridService


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

Branch: refs/heads/master
Commit: 84cbf087e8a247dfe06f83a6e59d630aee9e13af
Parents: 8118c5a
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Mar 7 14:15:16 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Mar 7 14:15:16 2016 +0000

----------------------------------------------------------------------
 .../org/apache/cxf/rs/security/oidc/idp/OidcHybridService.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/84cbf087/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/idp/OidcHybridService.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/idp/OidcHybridService.java
b/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/idp/OidcHybridService.java
index 4c59601..4062019 100644
--- a/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/idp/OidcHybridService.java
+++ b/rt/rs/security/sso/oidc/src/main/java/org/apache/cxf/rs/security/oidc/idp/OidcHybridService.java
@@ -18,6 +18,7 @@
  */
 package org.apache.cxf.rs.security.oidc.idp;
 
+import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.HashMap;
 import java.util.HashSet;
@@ -57,8 +58,9 @@ public class OidcHybridService extends OidcImplicitService {
     }
     
     private static Set<String> getResponseTypes(boolean hybridOnly) {
-        List<String> types = 
-            Arrays.asList(CODE_AT_RESPONSE_TYPE, CODE_ID_TOKEN_RESPONSE_TYPE, CODE_ID_TOKEN_AT_RESPONSE_TYPE);
+        List<String> types = new ArrayList<String>(); 
+        types.addAll(
+            Arrays.asList(CODE_AT_RESPONSE_TYPE, CODE_ID_TOKEN_RESPONSE_TYPE, CODE_ID_TOKEN_AT_RESPONSE_TYPE));
         if (!hybridOnly) {
             types.add(ID_TOKEN_RESPONSE_TYPE);
             types.add(ID_TOKEN_AT_RESPONSE_TYPE);


Mime
View raw message