Skip to content

Commit 789bc07

Browse files
fix: secret fixed and migration management command removed
1 parent 101f2e9 commit 789bc07

File tree

4 files changed

+10
-393
lines changed

4 files changed

+10
-393
lines changed

README-keycloak.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ docker-compose up -d
2323
docker-compose ps keycloak
2424
```
2525

26+
### Add `/etc/hosts` alias for Keycloak
27+
28+
If one doesn’t already exist, add an alias to `/etc/hosts` for Keyclaok. We have standardized this alias to kc.odl.local. Your `/etc/hosts` entry should look like this:
29+
```bash
30+
127.0.0.1. kc.odl.local
31+
```
32+
2633
Keycloak will be available at: `http://kc.odl.local:7080`
2734

2835
### 2. Access Keycloak Admin Console

config/keycloak/realms/ovs-local-realm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@
795795
"enabled": true,
796796
"alwaysDisplayInConsole": false,
797797
"clientAuthenticatorType": "client-secret",
798-
"secret": "**********",
798+
"secret": "odl-video-secret-2025",
799799
"redirectUris": [
800800
"http://localhost:8089/auth/complete/keycloak/",
801801
"http://ovs.odl.local:8089/auth/complete/keycloak/*",

odl_video/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130

131131

132132
# Keycloak OIDC Configuration
133-
KEYCLOAK_CLIENT_ID = get_string("KEYCLOAK_CLIENT_ID", "odl-video-app")
134-
KEYCLOAK_CLIENT_SECRET = get_string("KEYCLOAK_CLIENT_SECRET", "odl-video-secret-2025")
133+
KEYCLOAK_CLIENT_ID = get_string("KEYCLOAK_CLIENT_ID", "")
134+
KEYCLOAK_CLIENT_SECRET = get_string("KEYCLOAK_CLIENT_SECRET", "")
135135
KEYCLOAK_PUBLIC_KEY = get_string("KEYCLOAK_PUBLIC_KEY", "")
136136
KEYCLOAK_SERVER_URL = get_string("KEYCLOAK_SERVER_URL", "http://kc.odl.local:7080")
137137
KEYCLOAK_REALM = get_string("KEYCLOAK_REALM", "ovs-local")

0 commit comments

Comments
 (0)