Compare commits

..

No commits in common. "ac880b7e5b44471cbffb1df10cc0192e898ba173" and "43c7ef837f1ebc2065a5548d23be39598967a2de" have entirely different histories.

5 changed files with 4 additions and 35 deletions

View File

@ -1,25 +1,12 @@
asgiref==3.4.1 asgiref==3.4.1
certifi==2021.10.8
cffi==1.15.0
charset-normalizer==2.0.10
cryptography==36.0.1
Deprecated==1.2.13
Django==3.2 Django==3.2
django-basicauth==0.5.3 django-basicauth==0.5.3
django-oauth-toolkit==1.6.3
django-scim2==0.17.0 django-scim2==0.17.0
gunicorn==20.1.0 gunicorn==20.1.0
idna==3.3
jwcrypto==1.0
oauthlib==3.1.1
psycopg2-binary==2.9.3 psycopg2-binary==2.9.3
pycparser==2.21
python-dateutil==2.8.2 python-dateutil==2.8.2
pytz==2021.3 pytz==2021.3
requests==2.27.1
scim2-filter-parser==0.3.5 scim2-filter-parser==0.3.5
six==1.16.0 six==1.16.0
sly==0.3 sly==0.3
sqlparse==0.4.2 sqlparse==0.4.2
urllib3==1.26.8
wrapt==1.13.3

View File

@ -42,7 +42,6 @@ INSTALLED_APPS = [
'django.contrib.staticfiles', 'django.contrib.staticfiles',
'django_scim', 'django_scim',
'oauth2_provider',
] ]
MIDDLEWARE = [ MIDDLEWARE = [
@ -62,9 +61,7 @@ ROOT_URLCONF = 'scim_app.urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [ 'DIRS': [],
BASE_DIR / 'templates',
],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [

View File

@ -20,7 +20,6 @@ from . import views
urlpatterns = [ urlpatterns = [
path('auth/', views.AuthView.as_view()), path('auth/', views.AuthView.as_view()),
path('oauth/', include('oauth2_provider.urls', namespace='oauth2_provider')),
path('admin/', admin.site.urls), path('admin/', admin.site.urls),
path('scim/v2/', include('django_scim.urls')), path('scim/v2/', include('django_scim.urls')),
] ]

View File

@ -1,7 +1,7 @@
from django.utils.decorators import method_decorator from django.utils.decorators import method_decorator
from django.views.generic import TemplateView from django.views.generic import View
from basicauth.decorators import basic_auth_required from basicauth.decorators import basic_auth_required
@method_decorator(basic_auth_required, name='dispatch') @method_decorator(basic_auth_required, name='dispatch')
class AuthView(TemplateView): class AuthView(View):
template_name = "index.html" pass

View File

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>SCIM app</title>
</head>
<body>
Hallo!
<pre>
{{ user }}
</pre>
</body>
</html>