Skip to content

Commit

Permalink
981 clowder2 register link on the topbar doesnt work (#988)
Browse files Browse the repository at this point in the history
* missing redirect uri

* fix redirect uri

* have to explicitly spell redirect uri
  • Loading branch information
longshuicy authored Apr 4, 2024
1 parent 9e5fcce commit ff93606
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Settings(BaseSettings):
# scope=openid email&redirect_uri=http://<domain.com>/<redirect-path>&kc_locale=<two-digit-lang-code>
auth_register_url = (
f"{auth_base}/keycloak/realms/{auth_realm}/protocol/openid-connect/registrations?client_id"
f"={auth_client_id}&response_type=code"
f"={auth_client_id}&response_type=code&redirect_uri={auth_redirect_uri}"
)
auth_token_url = (
f"{auth_base}/keycloak/realms/{auth_realm}/protocol/openid-connect/token"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ spec:
- name: oauth2_scheme_auth_url
value: http://{{ include "clowder2.name" .}}-keycloak-headless:8080/keycloak/realms/clowder/protocol/openid-connect/auth?client_id=clowder2-backend&response_type=code
- name: auth_register_url
value: $(CLOWDER2_URL)/keycloak/realms/clowder/protocol/openid-connect/registrations?client_id=clowder2-backend&response_type=code
value: $(CLOWDER2_URL)/keycloak/realms/clowder/protocol/openid-connect/registrations?client_id=clowder2-backend&response_type=code&redirect_uri=$(auth_redirect_uri)
- name: auth_token_url
value: http://{{ include "clowder2.name" .}}-keycloak-headless:8080/keycloak/realms/clowder/protocol/openid-connect/token
- name: auth_server_url
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ services:
auth_redirect_uri: http://localhost:80/api/v2/auth
auth_url: http://localhost/keycloak/realms/clowder/protocol/openid-connect/auth?client_id=clowder2-backend&response_type=code
oauth2_scheme_auth_url: http://keycloak:8080/keycloak/realms/clowder/protocol/openid-connect/auth?client_id=clowder2-backend&response_type=code
auth_register_url: http://localhost/keycloak/realms/clowder/protocol/openid-connect/registrations?client_id=clowder2-backend&response_type=code
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
auth_token_url: http://keycloak:8080/keycloak/realms/clowder/protocol/openid-connect/token
auth_server_url: http://keycloak:8080/keycloak/
keycloak_base: http://localhost/api
Expand Down

0 comments on commit ff93606

Please sign in to comment.