Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fountain
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
urz-django
fountain
Commits
2547ed24
Commit
2547ed24
authored
Oct 20, 2016
by
Daniel Klaffenbach
🐍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fountain.middleware: Add middleware for persistent remote users
parent
5780f6dc
Pipeline
#4694
passed with stage
in 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
fountain/middleware.py
fountain/middleware.py
+10
-0
No files found.
fountain/middleware.py
0 → 100644
View file @
2547ed24
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.contrib.auth.middleware
import
RemoteUserMiddleware
as
_RemoteUserMiddleware
class
PersistentRemoteUserMiddleware
(
_RemoteUserMiddleware
):
"""
This middleware can be used instead of Django's RemoteUserMiddleware when
a callback URL is used for authenticating remote users.
"""
force_logout_if_no_header
=
False
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment