Skip to content

Commit ff93606

Browse files
authored
981 clowder2 register link on the topbar doesnt work (#988)
* missing redirect uri * fix redirect uri * have to explicitly spell redirect uri
1 parent 9e5fcce commit ff93606

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

backend/app/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Settings(BaseSettings):
4949
# scope=openid email&redirect_uri=http://<domain.com>/<redirect-path>&kc_locale=<two-digit-lang-code>
5050
auth_register_url = (
5151
f"{auth_base}/keycloak/realms/{auth_realm}/protocol/openid-connect/registrations?client_id"
52-
f"={auth_client_id}&response_type=code"
52+
f"={auth_client_id}&response_type=code&redirect_uri={auth_redirect_uri}"
5353
)
5454
auth_token_url = (
5555
f"{auth_base}/keycloak/realms/{auth_realm}/protocol/openid-connect/token"

deployments/kubernetes/charts/clowder2/templates/backend/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ spec:
7575
- name: oauth2_scheme_auth_url
7676
value: http://{{ include "clowder2.name" .}}-keycloak-headless:8080/keycloak/realms/clowder/protocol/openid-connect/auth?client_id=clowder2-backend&response_type=code
7777
- name: auth_register_url
78-
value: $(CLOWDER2_URL)/keycloak/realms/clowder/protocol/openid-connect/registrations?client_id=clowder2-backend&response_type=code
78+
value: $(CLOWDER2_URL)/keycloak/realms/clowder/protocol/openid-connect/registrations?client_id=clowder2-backend&response_type=code&redirect_uri=$(auth_redirect_uri)
7979
- name: auth_token_url
8080
value: http://{{ include "clowder2.name" .}}-keycloak-headless:8080/keycloak/realms/clowder/protocol/openid-connect/token
8181
- name: auth_server_url

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ services:
5858
auth_redirect_uri: http://localhost:80/api/v2/auth
5959
auth_url: http://localhost/keycloak/realms/clowder/protocol/openid-connect/auth?client_id=clowder2-backend&response_type=code
6060
oauth2_scheme_auth_url: http://keycloak:8080/keycloak/realms/clowder/protocol/openid-connect/auth?client_id=clowder2-backend&response_type=code
61-
auth_register_url: http://localhost/keycloak/realms/clowder/protocol/openid-connect/registrations?client_id=clowder2-backend&response_type=code
61+
auth_register_url: http://localhost/keycloak/realms/clowder/protocol/openid-connect/registrations?client_id=clowder2-backend&response_type=code&redirect_uri=http://localhost:80/api/v2/auth
6262
auth_token_url: http://keycloak:8080/keycloak/realms/clowder/protocol/openid-connect/token
6363
auth_server_url: http://keycloak:8080/keycloak/
6464
keycloak_base: http://localhost/api

0 commit comments

Comments
 (0)