diff --git a/roles/koschei/frontend/templates/config-frontend.cfg.j2 b/roles/koschei/frontend/templates/config-frontend.cfg.j2 index ae5fdd0503..db06ac17f0 100644 --- a/roles/koschei/frontend/templates/config-frontend.cfg.j2 +++ b/roles/koschei/frontend/templates/config-frontend.cfg.j2 @@ -62,6 +62,9 @@ config = { }, "frontend": { "auto_tracking": True, + "auth": { + "user_re": "http://(.+)\\.id{{ env_prefix }}\\.fedoraproject\\.org/", + }, {% if env == 'staging' %} # Staging copies for fedmenu "fedmenu_url": "https://apps.stg.fedoraproject.org/fedmenu", diff --git a/roles/koschei/frontend/templates/httpd.conf.j2 b/roles/koschei/frontend/templates/httpd.conf.j2 index 8b5a46ab2c..078ecf1049 100644 --- a/roles/koschei/frontend/templates/httpd.conf.j2 +++ b/roles/koschei/frontend/templates/httpd.conf.j2 @@ -17,10 +17,13 @@ {% if env == 'staging' %} - + Require valid-user AuthType OpenID AuthOpenIDSingleIdP https://{{ koschei_openid_provider }}/ + AuthOpenIDServerName https://apps{{ env_prefix }}.fedoraproject.org + AuthOpenIDTrustRoot https://apps{{ env_prefix }}.fedoraproject.org/koschei/ + AuthOpenIDSecureCookie on {% endif %}