You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure the following variables are filled in the docker-compose file:
40
+
`<your-ip-address>` is the IP address of your keycloak. For this example this would be your IP address, but if your Keycloak existed elsewhere for your deployment `<your-ip-address>` would be different as would the port and the realm.
41
+
42
+
The following must also be configured:
43
+
44
+
```yaml
45
+
- OAUTH2_GENERIC_USER_UID='preffered_usename'
46
+
- OAUTH2_GENERIC_USER_NAME='name'
47
+
- OAUTH2_GENERIC_USER_EMAIL='email'
48
+
```
49
+
50
+
The values will be different for your deployment. Navigate Keycloak's UI, select `Clients`, click `[your client]`, then open the `Client Scopes` tab, then open `Evaluate` sub-tab, enter a username you know in the `User` field, select the match, then `Generate Access Token` to see the values you need to configure.
51
+
52
+
Also, make sure the following variables are filled in the docker-compose file:
39
53
40
54
```yaml
41
55
- GITLAB_HOST='<your-ip-address>'
@@ -46,9 +60,10 @@ Make sure the following variables are filled in the docker-compose file:
46
60
- OAUTH_BLOCK_AUTO_CREATED_USERS=false
47
61
- OAUTH_AUTO_LINK_LDAP_USER=false
48
62
- OAUTH_AUTO_LINK_SAML_USER=false
49
-
- OAUTH_EXTERNAL_PROVIDERS=Keycloak
50
63
```
51
64
65
+
`<your-ip-address>`is the IP address of your GitLab for this example this would be the your IP address, but if your GitLab was to be proxied or deployed elsewhere `<your-ip-address>` would be another value appropriate for your deployment.
66
+
52
67
GitLab does not allow login from users in Keycloak with an empty email or name. To prevent this, you can create a new user in Keycloak or you can add email and name for the admin account.
53
68
54
69
Visit the `Users` tab and click on `View all users` to modify the Admin user.
@@ -62,4 +77,4 @@ Deploy GitLab, Reddis and PostgreSQL by running the following command: `docker-c
62
77
63
78
You can now login on the local GitLab instance with with Keycloak on your [local IP](http://localhost:10080).
0 commit comments