Skip to content

Commit

Permalink
Merge branch 'master' of github.com:malariagen/DQXServer
Browse files Browse the repository at this point in the history
  • Loading branch information
pvaut committed Apr 28, 2014
2 parents 328b45d + f10a566 commit 40853dd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wsgi_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ def ignored_callback(environ, start_response):
'/static': os.path.join(os.path.dirname(__file__), 'static')
})

if config.CAS_SERVICE != '':
try:
cas_service = config.CAS_SERVICE
except AttributeError:
cas_service = ''
if cas_service != '':
fs_session_store = FilesystemSessionStore()
application = CASMiddleware(application, cas_root_url = config.CAS_SERVICE, logout_url = config.CAS_LOGOUT_PAGE, logout_dest = config.CAS_LOGOUT_DESTINATION, protocol_version = config.CAS_VERSION, casfailed_url = config.CAS_FAILURE_PAGE, entry_page = '/static/main.html', session_store = fs_session_store, ignore_redirect = '(.*)\?datatype=', ignored_callback = ignored_callback)
application = CASMiddleware(application, cas_root_url = cas_service, logout_url = config.CAS_LOGOUT_PAGE, logout_dest = config.CAS_LOGOUT_DESTINATION, protocol_version = config.CAS_VERSION, casfailed_url = config.CAS_FAILURE_PAGE, entry_page = '/static/main.html', session_store = fs_session_store, ignore_redirect = '(.*)\?datatype=', ignored_callback = ignored_callback)

0 comments on commit 40853dd

Please sign in to comment.