-
diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-credentials.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-credentials.html
index b3b98392ee..6e71c3f569 100755
--- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-credentials.html
+++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-credentials.html
@@ -8,7 +8,7 @@
- Claims
- Scope
- Revocation -
- Sessions +
- Sessions
- Settings -
- Credentials +
- Credentials
- Installation
- Roles
- Claims
- Scope
- Revocation -
- Sessions +
- Sessions
- Settings -
- Credentials +
- Credentials
- Installation
- Roles
- Claims
- Scope
- Revocation -
- Sessions +
- Sessions
- Settings -
- Credentials +
- Credentials
- Installation
- Roles
- Claims
- Scope
- Revocation -
- Sessions +
- Sessions
- Settings -
- Credentials +
- Credentials
- Installation
- Roles
- Claims
- Scope
- Revocation -
- Sessions +
- Sessions
- Settings -
- Credentials +
- Credentials
- Installation
- Roles
- Claims
- Scope
- Revocation -
- Sessions +
- Sessions
- Settings -
- Credentials +
- Credentials
- Installation
- Roles
- Claims
- Scope
- Revocation -
- Sessions +
- Sessions
- Settings -
- Credentials +
- Credentials
- Installation
- Roles
- Claims diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-claims.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-claims.html index 57d1d7da10..5fa266881d 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-claims.html +++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-claims.html @@ -2,7 +2,7 @@
- Settings -
- Credentials +
- Credentials
- Claims
- Scope
- Installation diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-detail.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-detail.html index 5be853edde..a279e7c83f 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-detail.html +++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-detail.html @@ -2,7 +2,7 @@
- Settings -
- Credentials +
- Credentials
- Claims
- Scope
- Installation @@ -40,6 +40,37 @@
- Settings -
- Credentials +
- Credentials
- Claims
- Scope
- Installation diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-revocation.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-revocation.html index a610a308ca..c505cd0fe8 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-revocation.html +++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-revocation.html @@ -2,7 +2,7 @@
- Settings -
- Credentials +
- Credentials
- Claims
- Scope
- Installation diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-scope-mappings.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-scope-mappings.html index 6c247b29d2..bd30e24404 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-scope-mappings.html +++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-scope-mappings.html @@ -3,7 +3,7 @@
- Settings -
- Credentials +
- Credentials
- Claims
- Scope
- Installation diff --git a/core/src/main/java/org/keycloak/AbstractOAuthClient.java b/core/src/main/java/org/keycloak/AbstractOAuthClient.java index e3989e178e..10b7656517 100755 --- a/core/src/main/java/org/keycloak/AbstractOAuthClient.java +++ b/core/src/main/java/org/keycloak/AbstractOAuthClient.java @@ -23,6 +23,7 @@ public class AbstractOAuthClient { protected String stateCookieName = OAUTH_TOKEN_REQUEST_STATE; protected String stateCookiePath; protected boolean isSecure; + protected boolean publicClient; protected final AtomicLong counter = new AtomicLong(); protected String getStateCode() { @@ -103,6 +104,14 @@ public class AbstractOAuthClient { this.stateCookiePath = stateCookiePath; } + public boolean isPublicClient() { + return publicClient; + } + + public void setPublicClient(boolean publicClient) { + this.publicClient = publicClient; + } + protected String stripOauthParametersFromRedirect(String uri) { KeycloakUriBuilder builder = KeycloakUriBuilder.fromUri(uri) .replaceQueryParam("code", null) diff --git a/core/src/main/java/org/keycloak/representations/adapters/config/BaseAdapterConfig.java b/core/src/main/java/org/keycloak/representations/adapters/config/BaseAdapterConfig.java index 808e46adbb..7e01e4555f 100755 --- a/core/src/main/java/org/keycloak/representations/adapters/config/BaseAdapterConfig.java +++ b/core/src/main/java/org/keycloak/representations/adapters/config/BaseAdapterConfig.java @@ -14,7 +14,7 @@ import java.util.Map; * @version $Revision: 1 $ */ @JsonPropertyOrder({"realm", "realm-public-key", "auth-server-url", "ssl-not-required", - "resource", "credentials", + "resource", "public-client", "credentials", "use-resource-role-mappings", "enable-cors", "cors-max-age", "cors-allowed-methods", "expose-token", "bearer-only", "scope"}) @@ -35,6 +35,8 @@ public class BaseAdapterConfig extends BaseRealmConfig { protected boolean exposeToken; @JsonProperty("bearer-only") protected boolean bearerOnly; + @JsonProperty("public-client") + protected boolean publicClient; @JsonProperty("credentials") protected Map
-
diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-detail.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-detail.html
index dc834c371d..6cde4cd664 100755
--- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-detail.html
+++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-detail.html
@@ -2,13 +2,13 @@
-
@@ -39,6 +39,44 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -55,9 +93,9 @@
-
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-installation.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-installation.html
index 9c527d782d..59a6c2ea0b 100755
--- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-installation.html
+++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-installation.html
@@ -3,13 +3,13 @@
diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-revocation.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-revocation.html
index 6b7e951b7a..c9eb07932b 100755
--- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-revocation.html
+++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-revocation.html
@@ -2,13 +2,13 @@
-
diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-role-detail.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-role-detail.html
index 8e3d603e86..e8c2a12ad3 100755
--- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-role-detail.html
+++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-role-detail.html
@@ -2,13 +2,13 @@
diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-role-list.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-role-list.html
index 77b4065940..6ce67e3fe7 100755
--- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-role-list.html
+++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-role-list.html
@@ -3,13 +3,13 @@
diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-scope-mappings.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-scope-mappings.html
index ac6dd6f58b..d8f3f5f554 100755
--- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-scope-mappings.html
+++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-scope-mappings.html
@@ -3,13 +3,13 @@
diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-sessions.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-sessions.html
index 129647cf3d..4a3ecf75af 100755
--- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-sessions.html
+++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/application-sessions.html
@@ -2,7 +2,7 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -65,31 +96,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-installation.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-installation.html
index 28a4fa1bec..795a8a713c 100755
--- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-installation.html
+++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/oauth-client-installation.html
@@ -2,7 +2,7 @@