Skip to content

Commit

Permalink
Update apache httpd config to add preauth provider (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
f-necas authored Jun 27, 2024
1 parent f0ef679 commit 7ff2f6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apache-mod-mellon/templates/apache-config-httpd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ data:
{{ .Values.apache_auth_headers_type }} set preauth-org "expr={base64}%{base64:%{env:MELLON_O}}" "expr=-n env('MELLON_O')"
{{ .Values.apache_auth_headers_type }} set preauth-firstname "expr={base64}%{base64:%{env:MELLON_GIVEN_NAME}}" "expr=-n env('MELLON_GIVEN_NAME')"
{{ .Values.apache_auth_headers_type }} set preauth-lastname "expr={base64}%{base64:%{env:MELLON_SN}}" "expr=-n env('MELLON_SN')"
{{ .Values.apache_auth_headers_type }} set preauth-provider "{{ .Values.mellon_config.provider_id }}"
{{ .Values.apache_auth_headers_type }} set preauth-provider-id "expr={base64}%{base64:%{env:MELLON_SN}}" "expr=-n env('MELLON_SN')"
{{- if .Values.georchestra_proxypass_endpoint -}}
ProxyPass "{{ .Values.georchestra_proxypass_endpoint }}"
Expand All @@ -261,6 +263,8 @@ data:
RewriteCond %{HTTP:preauth-org} !^$ [NC,OR]
RewriteCond %{HTTP:preauth-firstname} !^$ [NC,OR]
RewriteCond %{HTTP:preauth-lastname} !^$ [NC,OR]
RewriteCond %{HTTP:preauth-provider} !^$ [NC,OR]
RewriteCond %{HTTP:preauth-provider-id} !^$ [NC,OR]
RewriteCond %{HTTP:sec-mellon-name-id} !^$ [NC,OR]
RewriteCond %{HTTP:sec-georchestra-preauthenticated} !^$ [NC]
RewriteRule . - [R=403,L]
Expand Down
1 change: 1 addition & 0 deletions apache-mod-mellon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ mellon_config:
discovery_url: https://discovery.renater.fr/test/WAYF?cru=yes
organization_url: https://www.inrae.fr
organization_name: INRAE
provider_id: renater
set_env:
mail: urn:oid:0.9.2342.19200300.100.1.3
eppn: urn:oid:1.3.6.1.4.1.5923.1.1.1.6
Expand Down

0 comments on commit 7ff2f6c

Please sign in to comment.