This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.shortcuts import render | |
| from uniauth.decorators import login_required | |
| @login_required | |
| def index(request): | |
| return render(request, 'demo-app/index.html') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| urlpatterns = [ | |
| ... | |
| url('accounts/', include('uniauth.urls.cas_only', namespace='uniauth')), | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AUTHENTICATION_BACKENDS = [ | |
| 'django.contrib.auth.backends.ModelBackend', | |
| 'uniauth.backends.CASBackend', | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LOGIN_URL = "/accounts/login/" | |
| UNIAUTH_LOGIN_DISPLAY_STANDARD = False | |
| UNIAUTH_LOGOUT_CAS_COMPLETELY = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| INSTALLED_APPS = [ | |
| ... | |
| uniauth, | |
| ] |