You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2020/10/05 15:37:20 UTC
[airavata] branch develop updated: AIRAVATA-3346 mod_wsgi
WSGIPassAuthorization
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/develop by this push:
new 9202966 AIRAVATA-3346 mod_wsgi WSGIPassAuthorization
new 3c5cb01 Merge branch 'airavata-3346' into develop
9202966 is described below
commit 920296641583ca514adc6f483d21c9e802f98581
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Sun Oct 4 18:13:22 2020 -0400
AIRAVATA-3346 mod_wsgi WSGIPassAuthorization
---
dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2 | 2 ++
dev-tools/ansible/roles/django/templates/django-vhost.conf.j2 | 2 ++
2 files changed, 4 insertions(+)
diff --git a/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2 b/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2
index 3789e98..28a9030 100644
--- a/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2
+++ b/dev-tools/ansible/roles/django/templates/django-ssl-vhost.conf.j2
@@ -69,6 +69,8 @@
WSGIScriptAlias / {{ doc_root_dir }}/airavata-django-portal/django_airavata/wsgi.py
WSGIApplicationGroup %{GLOBAL}
+ # To allow bearer token based authorization, pass 'Authorization' through to Django process
+ WSGIPassAuthorization On
<Directory {{ doc_root_dir }}/airavata-django-portal/django_airavata>
<Files wsgi.py>
diff --git a/dev-tools/ansible/roles/django/templates/django-vhost.conf.j2 b/dev-tools/ansible/roles/django/templates/django-vhost.conf.j2
index b21f19f..1329271 100644
--- a/dev-tools/ansible/roles/django/templates/django-vhost.conf.j2
+++ b/dev-tools/ansible/roles/django/templates/django-vhost.conf.j2
@@ -60,6 +60,8 @@
WSGIScriptAlias / {{ doc_root_dir }}/airavata-django-portal/django_airavata/wsgi.py
WSGIApplicationGroup %{GLOBAL}
+ # To allow bearer token based authorization, pass 'Authorization' through to Django process
+ WSGIPassAuthorization On
<Directory {{ doc_root_dir }}/airavata-django-portal/django_airavata>
<Files wsgi.py>