Skip to content

Commit

Permalink
fix(#3): fix auth group config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumpy-Squirrel committed Dec 23, 2023
1 parent 00f2ec8 commit c5edda0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/eurofurence-registration-system/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: eurofurence-registration-system
version: 0.0.13
version: 0.0.14
description: A helm chart that can deploy the Eurofurence Registration System.
type: application
home: https://github.com/eurofurence/reg-helm-chart
14 changes: 11 additions & 3 deletions charts/eurofurence-registration-system/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,17 @@ data:
id_token_cookie_name: '{{ .Values.system.components.auth_service.id_token_cookie_name }}'
access_token_cookie_name: '{{ .Values.system.components.auth_service.access_token_cookie_name }}'
relevant_groups:
admin:
- '123456789'
earlyReg: []
{{- if .Values.system.components.auth_service.admin_group_limit_to_identities }}
{{ .Values.system.components.auth_service.admin_group_id }}:
{{- range .Values.system.components.auth_service.admin_group_limit_to_identities }}
- '{{ . }}'
{{- end }}
{{- else }}
{{ .Values.system.components.auth_service.admin_group_id }}: []
{{- end }}
{{- range .Values.system.components.auth_service.other_group_ids }}
{{ . }}: []
{{- end }}
{{- with .Values.system.components.auth_service.token_public_keys_PEM }}
token_public_keys_PEM: {{- . | toYaml | nindent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,10 @@ tests:
id_token_cookie_name: 'JWT'
access_token_cookie_name: 'AUTH'
relevant_groups:
admin:
- '123456789'
earlyReg: []
D1DQADM:
- 'IDPUSERID1'
- 'IDPUSERID2'
D2DQEARLYREG: []
token_public_keys_PEM:
- |
-----BEGIN PUBLIC KEY-----
Expand Down

0 comments on commit c5edda0

Please sign in to comment.