Skip to content

Commit

Permalink
always use www in prod redirect uri (#1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
rstijerina authored Aug 7, 2024
1 parent d2587c7 commit 56049eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions designsafe/apps/auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ def tapis_oauth_callback(request):
else:
protocol = "http"
redirect_uri = f"{protocol}://{request.get_host()}{reverse('designsafe_auth:tapis_oauth_callback')}"
if request.get_host() == "designsafe-ci.org":
redirect_uri = redirect_uri.replace(
"designsafe-ci.org", "www.designsafe-ci.org"
)
code = request.GET["code"]

body = {
Expand Down

0 comments on commit 56049eb

Please sign in to comment.