Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed the name of "keycloak" to "keycloak-embedded" in configuration files to have compatibility with "keycloak-spring-boot-starter" #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .idea/.name

This file was deleted.

2 changes: 1 addition & 1 deletion embedded-keycloak-server-custom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.github.thomasdarimont.keycloak</groupId>
<artifactId>embedded-keycloak-server-spring-boot-parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.3-SNAPSHOT</version>
<relativePath/>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ server:
context-path: "/"
shutdown: graceful

keycloak:
keycloak-embedded:
custom:
server:
keycloak-path: "/auth"
Expand Down
2 changes: 1 addition & 1 deletion embedded-keycloak-server-plain/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.thomasdarimont.keycloak</groupId>
<artifactId>embedded-keycloak-server-spring-boot-parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.3-SNAPSHOT</version>
</parent>

<artifactId>embedded-keycloak-server-plain</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ logging:
org.keycloak.services.managers.UserSessionManager: DEBUG
org.keycloak.timer.basic: DEBUG

keycloak:
# custom:
# server:
# keycloak-path: "/auth"
#
# adminUser:
# username: admin
# password: admin
# create-admin-user-enabled: true
keycloak-embedded:
custom:
server:
keycloak-path: "/auth"

adminUser:
username: admin
password: admin
create-admin-user-enabled: true
#
# migration:
# importProvider: singleFile
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package com.github.thomasdarimont.keycloak;

import org.junit.jupiter.api.Test;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)
@SpringBootTest
@SpringBootConfiguration
class EmbeddedSpringBootKeycloakServerXApplicationTests {

@Test
Expand Down
4 changes: 2 additions & 2 deletions embedded-keycloak-server-spring-boot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.github.thomasdarimont.keycloak</groupId>
<artifactId>embedded-keycloak-server-spring-boot-parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.3-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -21,4 +21,4 @@
</dependency>

</dependencies>
</project>
</project>
4 changes: 2 additions & 2 deletions embedded-keycloak-server-spring-boot-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<parent>
<artifactId>embedded-keycloak-server-spring-boot-parent</artifactId>
<groupId>com.github.thomasdarimont.keycloak</groupId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.3-SNAPSHOT</version>
</parent>

<artifactId>embedded-keycloak-server-spring-boot-support</artifactId>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private void initKeycloakEnvironmentFromProfiles() {
profile.load(in);

log.info("Found profile.properties on classpath.");
String profilePrefix = "keycloak.profile.";
String profilePrefix = "keycloak-embeded.profile.";
for (Object key : profile.keySet()) {
String value = (String) profile.get(key);
String featureName = key.toString().toLowerCase();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@Getter
@Setter
@ConfigurationProperties(prefix = "keycloak.custom")
@ConfigurationProperties(prefix = "keycloak-embedded.custom")
public class KeycloakCustomProperties {

Server server = new Server();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@

@Getter
@Setter
@ConfigurationProperties(prefix = "keycloak")
@ConfigurationProperties(prefix = "keycloak-embedded")
public class KeycloakProperties extends HashMap<String, Object> {
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Default Keycloak configuration, adapted from Keycloak's keycloak-server.json

keycloak:
keycloak-embedded:
hostname:
provider: "default"
default:
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>com.github.thomasdarimont.keycloak</groupId>
<artifactId>embedded-keycloak-server-spring-boot-parent</artifactId>
<version>4.1.0-SNAPSHOT</version>
<version>4.1.3-SNAPSHOT</version>

<packaging>pom</packaging>

Expand Down