Skip to content
This repository has been archived by the owner on Aug 16, 2019. It is now read-only.

Commit

Permalink
Update keycloak_realm_configuration.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nawabahmadreshi authored Nov 29, 2017
1 parent b96c9ef commit d790c56
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions pages/developer-docs/installation/keycloak_realm_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,28 @@ Once the sunbird services are set up, [visit](https://sunbird.example.com/auth/a

### Setting the Admin password

Log into the docker container running keycloak by executing the following commands:

- Log into the docker container running keycloak by executing the following commands:
```
Find where the container is running

```docker service ps keycloak1
If you are running all services on single server no need to SSH
If you are in a different server, SSH into node running keycloak
# Find where the container is running
docker service ps keycloak1
# If you are running all services on single server no need to SSH
# If you are in a different server, SSH into node running keycloak
ssh <node-running-keycloak-container>
Find the keycloak container ID
# Find the keycloak container ID
docker ps | grep keycloak
# Login to container
docker exec -uroot -it <container-ID>
```

Login to container


```docker exec -uroot -it <container-ID>```

- Change to the path to keycloak root directory (most likely `/opt/jboss/keycloak`)
- Execute the following script to set the administrator user name and password

```
$ ./bin/add-user-keycloak.sh -u <admin> -p <yourpassword>
```

The script will execute and creates admin user and password.
The script will execute creating admin user and password.
- You can now log into the administration console using these credentials.

Once you view the administration console,clients and the secrets can be set by following steps:
Expand Down

0 comments on commit d790c56

Please sign in to comment.