diff --git a/core/src/main/java/org/keycloak/AbstractOAuthClient.java b/core/src/main/java/org/keycloak/AbstractOAuthClient.java old mode 100755 new mode 100644 index bf75b5700f..5eeb399d08 --- a/core/src/main/java/org/keycloak/AbstractOAuthClient.java +++ b/core/src/main/java/org/keycloak/AbstractOAuthClient.java @@ -110,6 +110,14 @@ public class AbstractOAuthClient { this.publicClient = publicClient; } + public boolean isSecure() { + return isSecure; + } + + public void setSecure(boolean secure) { + isSecure = secure; + } + public RelativeUrlsUsed getRelativeUrlsUsed() { return relativeUrlsUsed; } diff --git a/services/src/main/java/org/keycloak/services/resources/AbstractSecuredLocalService.java b/services/src/main/java/org/keycloak/services/resources/AbstractSecuredLocalService.java index 87bba2e3bb..547424cfc4 100755 --- a/services/src/main/java/org/keycloak/services/resources/AbstractSecuredLocalService.java +++ b/services/src/main/java/org/keycloak/services/resources/AbstractSecuredLocalService.java @@ -177,6 +177,8 @@ public abstract class AbstractSecuredLocalService { oauth.setClientId(client.getClientId()); + oauth.setSecure(realm.getSslRequired().isRequired(clientConnection)); + UriBuilder uriBuilder = UriBuilder.fromUri(getBaseRedirectUri()).path("login-redirect"); if (path != null) {