Skip to content

Commit 39f6dd4

Browse files
authored
Merge pull request opencloud-eu#99 from opencloud-eu/addeditaccounturl
add missing edit account url
2 parents 593c879 + 17594bc commit 39f6dd4

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

charts/opencloud/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ maintainers:
1010
email: info@opencloud.eu
1111
url: https://opencloud.eu
1212
type: application
13-
version: 0.2.2
13+
version: 0.2.3
1414
# renovate: datasource=docker depName=opencloudeu/opencloud-rolling
1515
appVersion: latest
1616
kubeVersion: ""

charts/opencloud/templates/opencloud/deployment.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ spec:
222222
# IDP specific configuration
223223
- name: PROXY_AUTOPROVISION_ACCOUNTS
224224
value: "true"
225-
# user properties are edited in the idp, so we hate to make them readonly
225+
# user properties are edited in the idp, so we have to make them readonly
226226
- name: FRONTEND_READONLY_USER_ATTRIBUTES
227227
value: "user.onPremisesSamAccountName,user.displayName,user.mail,user.passwordProfile,user.accountEnabled,user.appRoleAssignments"
228228
- name: PROXY_ROLE_ASSIGNMENT_DRIVER
@@ -233,6 +233,12 @@ spec:
233233
{{- else }}
234234
value: {{ printf "https://%s/realms/%s" (include "opencloud.keycloak.domain" .) .Values.keycloak.internal.realm | quote }}
235235
{{- end }}
236+
- name: WEB_OPTION_ACCOUNT_EDIT_LINK_HREF
237+
{{- if .Values.global.oidc.accountUrl }}
238+
value: {{ .Values.global.oidc.accountUrl | quote }}
239+
{{- else }}
240+
value: {{ printf "https://%s/realms/%s/account" (include "opencloud.keycloak.domain" .) .Values.keycloak.internal.realm | quote }}
241+
{{- end }}
236242
- name: PROXY_OIDC_REWRITE_WELLKNOWN
237243
value: "true"
238244
- name: WEB_OIDC_CLIENT_ID

charts/opencloud/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ global:
5353
issuer: ""
5454
# OIDC client ID for OpenCloud
5555
clientId: "web"
56+
# OIDC account URL for user account management. If set, overrides the default Keycloak internal account URL.
57+
# This is the URL where users can manage their accounts, typically provided by Keycloak.
58+
# Example: https://keycloak.opencloud.test/realms/openCloud/account
59+
accountUrl: ""
5660

5761
# Global storage settings
5862
storage:

0 commit comments

Comments
 (0)