Compare commits
No commits in common. "43c7ef837f1ebc2065a5548d23be39598967a2de" and "a6de4128b865cdc1787c6a92a63e02894a1f5f09" have entirely different histories.
43c7ef837f
...
a6de4128b8
@ -1,8 +1,6 @@
|
||||
asgiref==3.4.1
|
||||
Django==3.2
|
||||
django-basicauth==0.5.3
|
||||
django-scim2==0.17.0
|
||||
gunicorn==20.1.0
|
||||
psycopg2-binary==2.9.3
|
||||
python-dateutil==2.8.2
|
||||
pytz==2021.3
|
||||
|
0
scim_app/core/__init__.py
Normal file
0
scim_app/core/__init__.py
Normal file
3
scim_app/core/admin.py
Normal file
3
scim_app/core/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
scim_app/core/apps.py
Normal file
6
scim_app/core/apps.py
Normal file
@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class CoreConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'core'
|
0
scim_app/core/migrations/__init__.py
Normal file
0
scim_app/core/migrations/__init__.py
Normal file
3
scim_app/core/models.py
Normal file
3
scim_app/core/models.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
3
scim_app/core/tests.py
Normal file
3
scim_app/core/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
3
scim_app/core/views.py
Normal file
3
scim_app/core/views.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
@ -25,10 +25,7 @@ SECRET_KEY = 'django-insecure-zzde2t39t5d7xhj&=yq+@ox3w(*euu-^&1v0g(wo0fcyapn0m%
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = [
|
||||
'localhost',
|
||||
'scim.xeryus.rug.nl',
|
||||
]
|
||||
ALLOWED_HOSTS = []
|
||||
|
||||
|
||||
# Application definition
|
||||
@ -50,7 +47,6 @@ MIDDLEWARE = [
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'basicauth.middleware.BasicAuthMiddleware',
|
||||
'django_scim.middleware.SCIMAuthCheckMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||
@ -142,11 +138,3 @@ SCIM_SERVICE_PROVIDER = {
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
STATIC_ROOT = '/var/www/scim_app/static'
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
BASICAUTH_USERS = {
|
||||
'xeryus': 'development',
|
||||
'scim': 'scim',
|
||||
}
|
||||
|
@ -16,10 +16,7 @@ Including another URLconf
|
||||
from django.contrib import admin
|
||||
from django.urls import include, path
|
||||
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('auth/', views.AuthView.as_view()),
|
||||
path('admin/', admin.site.urls),
|
||||
path('scim/v2/', include('django_scim.urls')),
|
||||
]
|
||||
|
@ -1,7 +0,0 @@
|
||||
from django.utils.decorators import method_decorator
|
||||
from django.views.generic import View
|
||||
from basicauth.decorators import basic_auth_required
|
||||
|
||||
@method_decorator(basic_auth_required, name='dispatch')
|
||||
class AuthView(View):
|
||||
pass
|
Loading…
x
Reference in New Issue
Block a user