This is an automated email from the ASF dual-hosted git repository. rmannibucau pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave.git
The following commit(s) were added to refs/heads/master by this push: new 2c22183 [MEECROWAVE-270] forward CanSupportPublicClients for authorization_code flow 2c22183 is described below commit 2c22183b8c799b1ec988c402c5ef24ccb8f2250c Author: Romain Manni-Bucau <rmannibu...@gmail.com> AuthorDate: Tue Nov 10 19:54:41 2020 +0100 [MEECROWAVE-270] forward CanSupportPublicClients for authorization_code flow --- .../apache/meecrowave/oauth2/configuration/OAuth2Configurer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meecrowave-oauth2-minimal/src/main/java/org/apache/meecrowave/oauth2/configuration/OAuth2Configurer.java b/meecrowave-oauth2-minimal/src/main/java/org/apache/meecrowave/oauth2/configuration/OAuth2Configurer.java index f5871ce..b07981f 100644 --- a/meecrowave-oauth2-minimal/src/main/java/org/apache/meecrowave/oauth2/configuration/OAuth2Configurer.java +++ b/meecrowave-oauth2-minimal/src/main/java/org/apache/meecrowave/oauth2/configuration/OAuth2Configurer.java @@ -57,7 +57,7 @@ import org.apache.cxf.rs.security.oauth2.provider.OAuthDataProvider; import org.apache.cxf.rs.security.oauth2.provider.OAuthServiceException; import org.apache.cxf.rs.security.oauth2.services.AbstractTokenService; import org.apache.cxf.rs.security.oauth2.services.AccessTokenService; -import org.apache.cxf.rs.security.oauth2.services.RedirectionBasedGrantService; +import org.apache.cxf.rs.security.oauth2.services.AuthorizationCodeGrantService; import org.apache.cxf.rs.security.oauth2.utils.OAuthConstants; import org.apache.cxf.rs.security.oauth2.utils.OAuthUtils; import org.apache.meecrowave.Meecrowave; @@ -109,7 +109,7 @@ public class OAuth2Configurer { private OAuth2Options configuration; private Consumer<AccessTokenService> tokenServiceConsumer; - private Consumer<RedirectionBasedGrantService> redirectionBasedGrantServiceConsumer; + private Consumer<AuthorizationCodeGrantService> redirectionBasedGrantServiceConsumer; private Consumer<AbstractTokenService> abstractTokenServiceConsumer; private Map<String, String> securityProperties; @@ -445,6 +445,7 @@ public class OAuth2Configurer { s.setMatchRedirectUriWithApplicationUri(configuration.isMatchRedirectUriWithApplicationUri()); s.setScopesRequiringNoConsent(noConsentScopes); s.setSessionAuthenticityTokenProvider(sessionAuthenticityTokenProvider); + s.setCanSupportPublicClients(configuration.isCanSupportPublicClients()); }; } @@ -526,7 +527,7 @@ public class OAuth2Configurer { forwardSecurityProperties(); } - public void accept(final RedirectionBasedGrantService service) { + public void accept(final AuthorizationCodeGrantService service) { redirectionBasedGrantServiceConsumer.accept(service); forwardSecurityProperties(); }