Skip to content

Instantly share code, notes, and snippets.

@lawlesst
Created July 30, 2014 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lawlesst/eba25095b5eda160b9b1 to your computer and use it in GitHub Desktop.
Save lawlesst/eba25095b5eda160b9b1 to your computer and use it in GitHub Desktop.
Minimum subclass of ShibbolethRemoteUserMiddleware.
from shibboleth.middleware import ShibbolethRemoteUserMiddleware, ShibbolethValidationError
class MyAppAuthenticationMiddleware(ShibbolethRemoteUserMiddleware):
"""
Handle login via Shibboleth and permissions for viewing and
editing profiles and resources.
"""
header = "Shibboleth-localId"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment