Skip to content

Commit

Permalink
[Fixes #4174] - Proxy should pass Bearer authentication to Geoserver …
Browse files Browse the repository at this point in the history
…transparently
  • Loading branch information
afabiani committed Jan 24, 2019
1 parent d87d059 commit 3043503
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geonode/proxy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,10 @@ def proxy(request, url=None, response_callback=None,
if auth:
_user = header_auth_view(auth)
if not _user:
headers['Authorization'] = auth
if 'Bearer' in auth:
access_token = auth.replace('Bearer ', '')
else:
headers['Authorization'] = auth
else:
try:
from oauth2_provider.models import AccessToken, get_application_model
Expand Down

0 comments on commit 3043503

Please sign in to comment.