2016-05-13 01:04:47 +00:00
|
|
|
|
|
|
|
== Server Initialization
|
|
|
|
|
2017-08-28 12:50:14 +00:00
|
|
|
After performing all the installation and configuration tasks defined in the link:{installguide_link}[{installguide_name}],
|
2016-05-13 01:04:47 +00:00
|
|
|
you will need to create an initial admin account.
|
2017-08-28 12:50:14 +00:00
|
|
|
{project_name} does not have any configured admin account out of the box.
|
2016-05-13 01:04:47 +00:00
|
|
|
This account will allow you to create an admin that can log into the _master_ realm's administration console so that
|
2017-08-28 12:50:14 +00:00
|
|
|
you can start creating realms, users and registering applications to be secured by {project_name}.
|
2016-05-13 01:04:47 +00:00
|
|
|
|
|
|
|
If your
|
|
|
|
server is accessible from `localhost`, you can boot it up and create this admin user by going to the http://localhost:8080/auth URL.
|
|
|
|
|
|
|
|
.Welcome Page
|
2017-08-28 12:50:14 +00:00
|
|
|
image:{project_images}/initial-welcome-page.png[]
|
2016-05-13 01:04:47 +00:00
|
|
|
|
|
|
|
Simply specify the username and password you want for this initial admin.
|
|
|
|
|
2017-08-28 12:50:14 +00:00
|
|
|
If you cannot access the server via a `localhost` address, or just want to provision {project_name} from the command line
|
2016-05-13 13:39:56 +00:00
|
|
|
you can do this with the `.../bin/add-user-keycloak` script.
|
2016-05-13 01:04:47 +00:00
|
|
|
|
|
|
|
.add-user-keycloak script
|
2017-08-28 12:50:14 +00:00
|
|
|
image:{project_images}/add-user-script.png[]
|
2016-05-13 13:39:56 +00:00
|
|
|
|
|
|
|
The parameters are a little different depending if you are using the standalone operation mode or domain operation mode. For
|
|
|
|
standalone mode, here is how you use the script.
|
|
|
|
|
|
|
|
.Linux/Unix
|
|
|
|
[source]
|
|
|
|
----
|
|
|
|
$ .../bin/add-user-keycloak.sh -r master -u <username> -p <password>
|
|
|
|
----
|
|
|
|
|
|
|
|
.Windows
|
|
|
|
[source]
|
|
|
|
----
|
|
|
|
> ...\bin\add-user-keycloak.bat -r master -u <username> -p <password>
|
|
|
|
----
|
|
|
|
|
|
|
|
For domain mode, you have to point the script to one of your server hosts using the `-sc` switch.
|
|
|
|
|
|
|
|
.Linux/Unix
|
|
|
|
[source]
|
|
|
|
----
|
|
|
|
$ .../bin/add-user-keycloak.sh --sc domain/servers/server-one/configuration -r master -u <username> -p <password>
|
|
|
|
----
|
|
|
|
|
|
|
|
.Windows
|
|
|
|
[source]
|
|
|
|
----
|
|
|
|
> ...\bin\add-user-keycloak.bat --sc domain/servers/server-one/configuration -r master -u <username> -p <password>
|
|
|
|
----
|
|
|
|
|
|
|
|
|
2016-05-13 01:04:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
|