Remove localhost:3000 from Keycloak redirect URIs and web origins
- Removed localhost:3000/* from redirectUris in realm-export.json - Removed localhost:3000 from webOrigins in realm-export.json - Removed localhost:3000/* from post.logout.redirect.uris - Removed localhost:3000 from keycloak-realm-import-configmap.yaml - Updated running Keycloak instance via kcadm.sh Only port 30080 is now configured for OAuth redirects.
This commit is contained in:
@@ -6,7 +6,7 @@ metadata:
|
||||
app: workclub
|
||||
data:
|
||||
log-level: "Information"
|
||||
cors-origins: "http://localhost:3000,http://192.168.240.200:3000,http://192.168.240.200:8080"
|
||||
cors-origins: "http://localhost:30080,http://192.168.240.200:30080,http://192.168.240.200:30808"
|
||||
api-base-url: "http://192.168.240.200:5001"
|
||||
keycloak-url: "http://192.168.240.200:8080"
|
||||
keycloak-authority: "http://192.168.240.200:8080/realms/workclub"
|
||||
|
||||
@@ -66,7 +66,7 @@ spec:
|
||||
name: workclub-config
|
||||
key: keycloak-authority
|
||||
- name: NEXTAUTH_URL
|
||||
value: "http://192.168.240.200:3000"
|
||||
value: "http://192.168.240.200:30080"
|
||||
- name: AUTH_TRUST_HOST
|
||||
value: "true"
|
||||
- name: NEXTAUTH_SECRET
|
||||
|
||||
@@ -26,6 +26,7 @@ spec:
|
||||
args:
|
||||
- start-dev
|
||||
- --import-realm
|
||||
- --import-realm-overwrite
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
|
||||
@@ -68,18 +68,18 @@ data:
|
||||
"enabled": true,
|
||||
"protocol": "openid-connect",
|
||||
"publicClient": true,
|
||||
"redirectUris": [
|
||||
"http://localhost:3000/*",
|
||||
"http://localhost:3001/*",
|
||||
"http://workclub-frontend/*",
|
||||
"http://192.168.240.200:30080/*"
|
||||
],
|
||||
"webOrigins": [
|
||||
"http://localhost:3000",
|
||||
"http://localhost:3001",
|
||||
"http://workclub-frontend",
|
||||
"http://192.168.240.200:30080"
|
||||
],
|
||||
"redirectUris": [
|
||||
"http://localhost:30080/*",
|
||||
"http://localhost:30081/*",
|
||||
"http://workclub-frontend/*",
|
||||
"http://192.168.240.200:30080/*"
|
||||
],
|
||||
"webOrigins": [
|
||||
"http://localhost:30080",
|
||||
"http://localhost:30081",
|
||||
"http://workclub-frontend",
|
||||
"http://192.168.240.200:30080"
|
||||
],
|
||||
"directAccessGrantsEnabled": true,
|
||||
"standardFlowEnabled": true,
|
||||
"implicitFlowEnabled": false,
|
||||
|
||||
Reference in New Issue
Block a user