Skip to content

Commit

Permalink
allowing callback url and sso login url
Browse files Browse the repository at this point in the history
  • Loading branch information
sagargg committed Apr 3, 2021
1 parent f880c97 commit b7eece6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckanext/noanonaccess/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def __call__(self, environ, start_response):
if (environ['PATH_INFO'] == '/user/login' or environ['PATH_INFO'] == '/user/_logout'
or '/user/reset' in environ['PATH_INFO'] or environ['PATH_INFO'] == '/user/logged_out'
or environ['PATH_INFO'] == '/user/logged_in' or environ['PATH_INFO'] == '/user/logged_out_redirect'
or environ['PATH_INFO'] == '/user/register'):
or environ['PATH_INFO'] == '/user/register'
# other SSO login
or environ['PATH_INFO'] == '/oauth2/callback'
or environ['PATH_INFO'] == '/login/sso'):
return self.app(environ,start_response)
else:
url = environ.get('HTTP_X_FORWARDED_PROTO') \
Expand Down

0 comments on commit b7eece6

Please sign in to comment.