Compare commits
2 Commits
43c7ef837f
...
ac880b7e5b
Author | SHA1 | Date |
---|---|---|
Xeryus Stokkel | ac880b7e5b | |
Xeryus Stokkel | ae5a97d7ec |
|
@ -1,12 +1,25 @@
|
|||
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-basicauth==0.5.3
|
||||
django-oauth-toolkit==1.6.3
|
||||
django-scim2==0.17.0
|
||||
gunicorn==20.1.0
|
||||
idna==3.3
|
||||
jwcrypto==1.0
|
||||
oauthlib==3.1.1
|
||||
psycopg2-binary==2.9.3
|
||||
pycparser==2.21
|
||||
python-dateutil==2.8.2
|
||||
pytz==2021.3
|
||||
requests==2.27.1
|
||||
scim2-filter-parser==0.3.5
|
||||
six==1.16.0
|
||||
sly==0.3
|
||||
sqlparse==0.4.2
|
||||
urllib3==1.26.8
|
||||
wrapt==1.13.3
|
||||
|
|
|
@ -42,6 +42,7 @@ INSTALLED_APPS = [
|
|||
'django.contrib.staticfiles',
|
||||
|
||||
'django_scim',
|
||||
'oauth2_provider',
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
|
@ -61,7 +62,9 @@ ROOT_URLCONF = 'scim_app.urls'
|
|||
TEMPLATES = [
|
||||
{
|
||||
'BACKEND': 'django.template.backends.django.DjangoTemplates',
|
||||
'DIRS': [],
|
||||
'DIRS': [
|
||||
BASE_DIR / 'templates',
|
||||
],
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'context_processors': [
|
||||
|
|
|
@ -20,6 +20,7 @@ from . import views
|
|||
|
||||
urlpatterns = [
|
||||
path('auth/', views.AuthView.as_view()),
|
||||
path('oauth/', include('oauth2_provider.urls', namespace='oauth2_provider')),
|
||||
path('admin/', admin.site.urls),
|
||||
path('scim/v2/', include('django_scim.urls')),
|
||||
]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from django.utils.decorators import method_decorator
|
||||
from django.views.generic import View
|
||||
from django.views.generic import TemplateView
|
||||
from basicauth.decorators import basic_auth_required
|
||||
|
||||
@method_decorator(basic_auth_required, name='dispatch')
|
||||
class AuthView(View):
|
||||
pass
|
||||
class AuthView(TemplateView):
|
||||
template_name = "index.html"
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>SCIM app</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
Hallo!
|
||||
|
||||
<pre>
|
||||
{{ user }}
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue