diff --git a/conf/keycloak_conf/example-realm.json b/conf/keycloak_conf/example-realm.json index 4187c2653..bc10dac64 100644 --- a/conf/keycloak_conf/example-realm.json +++ b/conf/keycloak_conf/example-realm.json @@ -467,7 +467,16 @@ "type": "password", "value": "password" } - ] + ], + "realmRoles": [ + "user", + "default-roles-hasura" + ], + "clientRoles": { + "hasura": [ + "user" + ] + } }, { "id": "8728e38e-6b60-44d2-8830-f1e2ad284a02", @@ -516,7 +525,6 @@ "enabled": true, "alwaysDisplayInConsole": false, "clientAuthenticatorType": "client-secret", - "secret": "oMtCPAV7diKpE564SBspgKj4HqlKM4Hy", "redirectUris": ["/realms/hasura/account/*"], "webOrigins": [], "notBefore": 0, @@ -690,7 +698,7 @@ "enabled": true, "alwaysDisplayInConsole": false, "clientAuthenticatorType": "client-secret", - "secret": "**********", + "secret": "oMtCPAV7diKpE564SBspgKj4HqlKM4Hy", "redirectUris": ["http://localhost:3000/*"], "webOrigins": ["http://localhost:3000"], "notBefore": 0, diff --git a/conf/sample.env_web-client b/conf/sample.env_web-client index 3c33c1ad0..37844ace3 100644 --- a/conf/sample.env_web-client +++ b/conf/sample.env_web-client @@ -1,5 +1,5 @@ NEXT_PUBLIC_ENV=development -NEXT_PUBLIC_API_URL= +NEXT_PUBLIC_API_URL=localhost:8080 NEXT_PUBLIC_WEB_URL= NEXT_PUBLIC_SSE_INFERENCE_ENDPOINT= NEXT_PUBLIC_BE_KEY=aCOHRBM6uJEdLQpp @@ -9,7 +9,7 @@ NEXT_PUBLIC_DOWNLOAD_APP_IOS= NEXT_PUBLIC_DOWNLOAD_APP_ANDROID= NEXT_PUBLIC_POSTHOG_API_KEY= NEXT_PUBLIC_SENTRY_DNS= -KEYCLOAK_CLIENT_ID=ce02d0ff-b633-4d79-8a33-2c8241017d72 +KEYCLOAK_CLIENT_ID=hasura KEYCLOAK_CLIENT_SECRET=oMtCPAV7diKpE564SBspgKj4HqlKM4Hy AUTH_ISSUER=http://172.20.0.9:8088/realms/hasura NEXTAUTH_URL=http://localhost:3000 @@ -17,4 +17,4 @@ NEXTAUTH_SECRET=my-secret END_SESSION_URL=http://172.20.0.9:8088/realms/hasura/protocol/openid-connect/logout REFRESH_TOKEN_URL=http://172.20.0.9:8088/realms/hasura/protocol/openid-connect/token HASURA_ADMIN_TOKEN=myadminsecretkey -NEXT_PUBLIC_GRAPHQL_ENGINE_URL=hasura:8080 +NEXT_PUBLIC_GRAPHQL_ENGINE_URL=localhost:8080