keycloak-uncached
Changes
distribution/feature-packs/server-feature-pack/src/main/resources/content/bin/add-user-keycloak.bat 0(+0 -0)
Details
diff --git a/distribution/server-overlay/assembly.xml b/distribution/server-overlay/assembly.xml
index 54165f3..532308c 100755
--- a/distribution/server-overlay/assembly.xml
+++ b/distribution/server-overlay/assembly.xml
@@ -80,12 +80,12 @@
<outputDirectory>standalone/configuration</outputDirectory>
</file>
<file>
- <source>${project.build.directory}/unpacked/keycloak-${project.version}/bin/add-user.sh</source>
+ <source>${project.build.directory}/unpacked/keycloak-${project.version}/bin/add-user-keycloak.sh</source>
<outputDirectory>bin</outputDirectory>
<destName>add-user-keycloak.sh</destName>
</file>
<file>
- <source>${project.build.directory}/unpacked/keycloak-${project.version}/bin/add-user.bat</source>
+ <source>${project.build.directory}/unpacked/keycloak-${project.version}/bin/add-user-keycloak.bat</source>
<outputDirectory>bin</outputDirectory>
<destName>add-user-keycloak.bat</destName>
</file>
diff --git a/docbook/auth-server-docs/reference/en/en-US/modules/MigrationFromOlderVersions.xml b/docbook/auth-server-docs/reference/en/en-US/modules/MigrationFromOlderVersions.xml
index 69c8c8d..f77a6bd 100755
--- a/docbook/auth-server-docs/reference/en/en-US/modules/MigrationFromOlderVersions.xml
+++ b/docbook/auth-server-docs/reference/en/en-US/modules/MigrationFromOlderVersions.xml
@@ -98,6 +98,16 @@
<title>Version specific migration</title>
<section>
+ <title>Migrating to 1.9.3</title>
+ <simplesect>
+ <title>Add User script renamed</title>
+ <para>
+ The script to add admin users to Keycloak has been renamed to <literal>add-user-keycloak</literal>.
+ </para>
+ </simplesect>
+ </section>
+
+ <section>
<title>Migrating to 1.9.2</title>
<simplesect>
<title>Adapter option auth-server-url-for-backend-requests removed</title>
diff --git a/docbook/auth-server-docs/reference/en/en-US/modules/server-installation.xml b/docbook/auth-server-docs/reference/en/en-US/modules/server-installation.xml
index acc75d2..0058364 100755
--- a/docbook/auth-server-docs/reference/en/en-US/modules/server-installation.xml
+++ b/docbook/auth-server-docs/reference/en/en-US/modules/server-installation.xml
@@ -117,22 +117,16 @@ bin/jboss-cli.sh --file=bin/keycloak-install-ha.cli
<para>
To access the admin console to configure Keycloak you need an account to login. There is no built in user,
instead you have to first create an admin account. This can done either by opening <ulink url="http://localhost:8080/auth">http://localhost:8080/auth</ulink>
- (creating a user through the browser can only be done through localhost) or you can use the add-user script from
+ (creating a user through the browser can only be done through localhost) or you can use the add-user-keycloak script from
the command-line.
</para>
<para>
- The <literal>add-user</literal> script creates a temporary file with the details of the user,
+ The <literal>add-user-keycloak</literal> script creates a temporary file with the details of the user,
which are imported at startup. To add a user with this script run:
<programlisting><![CDATA[
-bin/add-user.[sh|bat] -r master -u <username> -p <password>
-]]></programlisting>
- Then restart the server.
- </para>
- <para>
- For <literal>keycloak-overlay</literal>, please make sure to use:
-<programlisting><![CDATA[
bin/add-user-keycloak.[sh|bat] -r master -u <username> -p <password>
]]></programlisting>
+ Then restart the server.
</para>
</section>
diff --git a/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java b/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java
index a95ea5e..c76cab0 100644
--- a/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java
+++ b/wildfly/adduser/src/main/java/org/keycloak/wildfly/adduser/AddUser.java
@@ -42,7 +42,6 @@ import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.lang.reflect.Method;
-import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
@@ -64,13 +63,7 @@ public class AddUser {
System.exit(1);
}
- if (command.isContainer()) {
- List<String> l = new LinkedList<>(Arrays.asList(args));
- l.remove("--container");
- args = l.toArray(new String[l.size()]);
-
- org.jboss.as.domain.management.security.adduser.AddUser.main(args);
- } else if (command.isHelp()) {
+ if (command.isHelp()) {
printHelp(command);
} else {
try {
@@ -273,9 +266,6 @@ public class AddUser {
@Option(hasValue = false, description = "Enable domain mode")
private boolean domain;
- @Option(hasValue = false, description = "Add user to underlying container. For usage use '--container --help'")
- private boolean container;
-
@Option(hasValue = true, description = "Define the location of the server config directory")
private String sc;
@@ -314,10 +304,6 @@ public class AddUser {
return domain;
}
- public boolean isContainer() {
- return container;
- }
-
public String getSc() {
return sc;
}