Commit 2dfb4d95 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki

pithos views: Fix astakos authorization endpoint url

The astakos authorization endpoint url should be an absolute url.
parent ac470a0a
......@@ -1166,7 +1166,8 @@ def view_method():
'state': '', # TODO include state for security
'scope': request.path.split(VIEW_PREFIX, 2)[-1]}
return HttpResponseRedirect('%s?%s' %
(astakos.api_oa2_auth,
(join_urls(astakos.oa2_url,
'auth'),
urlencode(params)))
else:
# request short-term access code
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment