Skip to content

Commit

Permalink
Add redirect to the portal page, update version
Browse files Browse the repository at this point in the history
  • Loading branch information
arsentur authored and Igor Degtiarov committed Feb 17, 2020
1 parent b65f1bf commit 7e49101
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions edx_oauth_client/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,7 @@ def process_request(self, request):
return redirect(urljoin(provider_url, user_account_url_path))
elif start_url_path not in (API_URLS + OAUTH_PROCESS_URLS):
request.session["force_auth"] = True

# Custom redirect from edX index page to the portal index page
if request.path == "/":
return redirect(provider_url)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='edx-oauth-client',
version='ucdc-v.0.1.0',
version='ucdc-v.0.1.2',
description='Client OAuth2 from edX installations',
author='edX',
url='https://github.com/raccoongang/edx_oauth_client',
Expand Down

0 comments on commit 7e49101

Please sign in to comment.