cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Making it simpler to override OIDC consent form check code
Date Mon, 29 Aug 2016 10:23:08 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.1.x-fixes 8c6b85a00 -> 17c39fa50


Making it simpler to override OIDC consent form check code


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

Branch: refs/heads/3.1.x-fixes
Commit: 17c39fa5023494b93213880a5ba160a87f5bfd98
Parents: 8c6b85a
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Mon Aug 29 11:21:04 2016 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Mon Aug 29 11:22:44 2016 +0100

----------------------------------------------------------------------
 .../oauth2/services/RedirectionBasedGrantService.java        | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/17c39fa5/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/RedirectionBasedGrantService.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/RedirectionBasedGrantService.java
b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/RedirectionBasedGrantService.java
index efd832a..f844a2e 100644
--- a/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/RedirectionBasedGrantService.java
+++ b/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/services/RedirectionBasedGrantService.java
@@ -236,6 +236,14 @@ public abstract class RedirectionBasedGrantService extends AbstractOAuthService
                                                 UserSubject userSubject,
                                                 List<String> requestedScope, 
                                                 List<OAuthPermission> permissions)
{
+        return noConsentForRequestedScopes(params, client, userSubject, requestedScope, permissions);
+    }
+    
+    protected boolean noConsentForRequestedScopes(MultivaluedMap<String, String> params,
+                                                  Client client, 
+                                                  UserSubject userSubject,
+                                                  List<String> requestedScope, 
+                                                  List<OAuthPermission> permissions)
{
         return scopesRequiringNoConsent != null 
                && requestedScope != null
                && requestedScope.size() == scopesRequiringNoConsent.size()


Mime
View raw message