Comments (2)
We have a project where we have created a "login" view, and that url is protected by Shibboleth(a session is required). So the LOGIN_URL doesn't go to the /Shibboleth.sso/Login url, but to our own "login" view:
<Location /.../login>
AuthType shibboleth
Require shibboleth
ShibRequireSession on
url(r'^login/', LoginView.as_view(), name="login"),
class LoginView(RedirectView):
permanent = False def get_redirect_url(self, *args, **kwargs): self.request.session.pop(LOGOUT_SESSION_KEY, None) next_url = self.request.GET.get('next','') return next_url or reverse('home')
Does that help?
from django-shibboleth-remoteuser.
@bcail We're using nginx, not apache, but your comment made me remember to check the nginx config. Turns out we had only configured the root URL with all the necessary shibboleth settings. Thank you for the indirect tip 😄 I'll close this issue
from django-shibboleth-remoteuser.
Related Issues (20)
- In Django 1.6.5 get_fields doesn't exists HOT 3
- How is make_profile rewrite working ? HOT 2
- Remove user session instead of setting LOGOUT_SESSION_KEY on logout? HOT 7
- Shibboleth is sending null values when users are connecting which is redirecting to login page HOT 4
- django-shibboleth-remoteuser won't install to virtual environment HOT 2
- Mock Shibboleth Headers HOT 5
- error with Template tags HOT 3
- install old version HOT 1
- Create a new release tag HOT 1
- Incorrect encoding HOT 8
- Problems with Django 2.1 HOT 1
- Stale request HOT 8
- Unknown AssertionConsumerServiceURL Shibboleth.sso/SAML2/POST HOT 2
- Pass request variable to authentication backend HOT 1
- urllib quote library import is incorrect for python 3 HOT 2
- 0.12 release? HOT 1
- Compatible with SP3, server variables? HOT 2
- shibboleth fields with UTF-8 content end up badly encoded via wsgi
- Stop using "url()" in urls.py from Django 4.x compatibility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-shibboleth-remoteuser.