first commit

This commit is contained in:
2017-11-14 09:51:57 +01:00
parent 6c01cd24a0
commit 8d744a916f
55 changed files with 12311 additions and 0 deletions

View File

@ -0,0 +1,19 @@
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
try:
import urllib # python 2
except:
import urllib.request as urllib # python 3
class Command(BaseCommand):
help = 'Initialize saml2 authentication files'
def add_arguments(self, parser):
pass
def handle(self, *args, **options):
urllib.urlretrieve(settings.SAML_PROVIDER_METADATA_URL, os.path.join())