"""
Django settings for bachelor_master_administration project.

Generated by 'django-admin startproject' using Django 3.0.8.

For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/

For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""

import os
import saml2
from django.conf import settings

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
TEMPLATE_DIR = (os.path.join(BASE_DIR, 'templates'))

LANGUAGE_CODE = 'hr-HR'

SAML_CONFIG = {
    'xmlsec_binary': '/usr/bin/xmlsec1',
    'entityid': 'http://localhost:8000/saml2/metadata/',
    'service': {
      'sp': {
            'name': 'Django sample SP',
            'endpoints': {
                # url and binding to the assetion consumer service view
                # do not change the binding or service name
                'assertion_consumer_service': [
                  ('http://localhost:8000/saml2/acs/',
                   saml2.BINDING_HTTP_POST),
                ],
                # url and binding to the single logout service view
                # do not change the binding or service name
                'single_logout_service': [
                    ('http://localhost:8000/saml2/ls/',
                    saml2.BINDING_HTTP_REDIRECT),
                ],
            },
        },
    },
    # where the remote metadata is stored
    'metadata': {
        'remote': [
            {
                "url": "https://login.aaiedu.hr/sso/module.php/aggregator/?id=aaieduhr_fedlab&mimetype=application",  # lab
                #"url": "https://login.aaiedu.hr/sso/idp_riteh.xml",  # production
                "cert": "https://login.aaiedu.hr/sso/module.php/saml/idp/certs.php/idp.crt"
            }
        ],
        #'local': [path.join('path', 'to', 'remote_metadata.xml')],  # local xml alternative
    },

    # set to 1 to output debugging information
    #'debug': 1,

    # certificate
    'key_file': os.path.join(BASE_DIR, 'key.pem'),    # private part
    'cert_file': os.path.join(BASE_DIR, 'cert.pem'),  # public part

    # own metadata settings used by make_metadata.py
    'contact_person': [
        {
        'given_name': 'Name',
        'sur_name': 'Surname',
        'company': 'Company',
        'email_address': 'mail@example.com',
        'contact_type': 'technical',
        },
        {
        'given_name': 'Name',
        'sur_name': 'Surname',
        'company': 'Company',
        'email_address': 'mail@example.com',
        'contact_type': 'administrative',
        },
    ],
    # you can set multilanguage information here
    'organization': {
        'name': [('Company', 'en'), ],
        'display_name': [('CO', 'en'), ],
        'url': [('http://www.example.com', 'en'), ],
    },
}



# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = ')5cfztk+)$l%-k!v$b4j2rvv^@@+al-nt-i$61=2l#cm^!mt*0'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = []


# Application definition

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.admindocs',
    'administration',
    'django_extensions',
 
]

if DEBUG:
    INSTALLED_APPS += ('mockdjangosaml2',)
else:
    INSTALLED_APPS += ('djangosaml2',)

if DEBUG:
    EMAIL_HOST = 'localhost'
    EMAIL_PORT = 1025
    EMAIL_HOST_USER = ''
    EMAIL_HOST_PASSWORD = ''
    EMAIL_USE_TLS = True
    DEFAULT_FROM_EMAIL = 'testing@example.com'
    
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

MIDDLEWARE = [
    'django.middleware.security.SecurityMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
]

ROOT_URLCONF = 'bachelor_master_administration.urls'

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [TEMPLATE_DIR,],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
            ],
        },
    },
]

WSGI_APPLICATION = 'bachelor_master_administration.wsgi.application'


# Database

# https://docs.djangoproject.com/en/3.0/ref/settings/#databases

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
    }
}

AUTHENTICATION_BACKENDS = (
    'bachelor_master_administration.backends.CustomSaml2Backend',

    'django.contrib.auth.backends.ModelBackend',

    #'djangosaml2.backends.Saml2Backend',

    
)

# Password validation
# https://docs.djangoproject.com/en/3.0/ref/settings/#auth-password-validators

AUTH_PASSWORD_VALIDATORS = [
    {
        'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
    },
    {
        'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
    },
]


# Internationalization
# https://docs.djangoproject.com/en/3.0/topics/i18n/

LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'Europe/Zagreb'

USE_I18N = True

USE_L10N = True

USE_TZ = True


# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.0/howto/static-files/

STATIC_URL = '/static/'
STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),)

LOGIN_URL = '/saml2/login/'
SESSION_EXPIRE_AT_BROWSER_CLOSE = True

LOGIN_REDIRECT_URL = '/index/'
LOGOUT_REDIRECT_URL = '/'

SAML_DJANGO_USER_MAIN_ATTRIBUTE = 'username'
SAML_CREATE_UNKNOWN_USER = True


MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')



MOCK_SAML2_USERS = getattr(settings, 'MOCK_SAML2_USERS', {
    'vecimovic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['vecimovic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['student'],
            'hrEduPersonScienceArea': ['računarstvo'],
            'hrEduPersonStudentCategory': ['redoviti student:preddiplomski sveučilišni studij'],
            'cn': ['Valentina Ecimović'],
            'hrEduPersonUniqueNumber': ['12345678901'],
            'sn': ['Ecimović'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['vecimovic@riteh.hr'],
            'givenName': ['Valentina']
            },
        },
    },
    'kkrapic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['kkrapic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['student'],
            'hrEduPersonScienceArea': ['računarstvo'],
            'hrEduPersonStudentCategory': ['redoviti student:preddiplomski sveučilišni studij'],
            'cn': ['Karlo Krapić'],
            'hrEduPersonUniqueNumber': ['12345678901'],
            'sn': ['Krapić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['kkrapic@riteh.hr'],
            'givenName': ['Karlo']
            },
        },
    },
    'lskitarelic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['lskitarelic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['student'],
            'hrEduPersonScienceArea': ['računarstvo'],
            'hrEduPersonStudentCategory': ['redoviti student:preddiplomski sveučilišni studij'],
            'cn': ['Luka Skitarelić'],
            'hrEduPersonUniqueNumber': ['12345678901'],
            'sn': ['Skitarelić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['lskitarelic@riteh.hr'],
            'givenName': ['Luka']
            },
        },
    },

    'pperic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['pperic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['student'],
            'hrEduPersonScienceArea': ['računarstvo'],
            'hrEduPersonStudentCategory': ['redoviti student:diplomski sveučilišni studij'],
            'cn': ['Pero Perić'],
            'hrEduPersonUniqueNumber': ['12345678901'],
            'sn': ['Perić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['pperic@riteh.hr'],
            'givenName': ['Pero']
            },
        },
    },
    'iivic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['iivic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['student'],
            'hrEduPersonScienceArea': ['brodogradnja'],
            'hrEduPersonStudentCategory': ['redoviti student:preddiplomski stručni studij'],
            'cn': ['Ivo Ivić'],
            'hrEduPersonUniqueNumber': ['12345678901'],
            'sn': ['Ivić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['iivic@riteh.hr'],
            'givenName': ['Ivo']
            },
        },
    },
    'acrnic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['acrnic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['student'],
            'hrEduPersonScienceArea': ['računarstvo'],
            'hrEduPersonStudentCategory': ['redoviti student:diplomski sveučilišni studij'],
            'cn': ['Ankica Crnić'],
            'hrEduPersonUniqueNumber': ['12345678901'],
            'sn': ['Crnić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['acrnic@riteh.hr'],
            'givenName': ['Ankica']
            },
        },
    },

    'iecimovic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['iecimovic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['student'],
            'hrEduPersonScienceArea': ['elektrotehnika'],
            'hrEduPersonStudentCategory': ['redoviti student:preddiplomski sveučilišni studij'],
            'cn': ['Ivan Ecimović'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Ecimović'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['iecimovic@riteh.hr'],
            'givenName': ['Ivan']
            },
        },
    },
    'mcar@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['mcar@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['student'],
            'hrEduPersonScienceArea': ['računarstvo'],
            'hrEduPersonStudentCategory': ['redoviti student:preddiplomski sveučilišni studij'],
            'cn': ['Marin Car'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Car'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['mcar@riteh.hr'],
            'givenName': ['Marin']
            },
        },
    },

    'tmlinaric@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['tmlinaric@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['student'],
            'hrEduPersonScienceArea': ['strojarstvo'],
            'hrEduPersonStudentCategory': ['redoviti student:preddiplomski sveučilišni studij'],
            'cn': ['Tina Mlinarić'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Mlinarić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['tmlinaric@riteh.hr'],
            'givenName': ['Tina']
            },
        },
    },
    'klenic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['klenic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Kristian Lenić'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Lenić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['kristian.lenic@riteh.hr'],
            'givenName': ['Kristian']
            },
        },
    },
    'nlovrin@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['nlovrin@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Neven Lovrin'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Lovrin'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['neven.lovrin@riteh.hr'],
            'givenName': ['Neven']
            },
        },
    },
    'vmrzljak@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['vmrzljak@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Vedran Mrzljak'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Mrzljak'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['vedran.mrzljak@riteh.hr'],
            'givenName': ['Vedran']
            },
        },
    },
    'azamarin@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['azamarin@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Albert Zamarin'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Zamarin'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['albert.zamarin@riteh.hr'],
            'givenName': ['Albert']
            },
        },
    },
    'tmatulja@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['tmatulja@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Tin Matulja'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Matulja'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['tin.matulja@riteh.hr'],
            'givenName': ['Tin']
            },
        },
    },
    'mvalcic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['mvalcic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Marko Valčić'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Valčić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['marko.valcic@riteh.hr'],
            'givenName': ['Marko']
            },
        },
    },
    'vsucic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['vsucic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Viktor Sučić'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Sučić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['vsucic@riteh.hr'],
            'givenName': ['Viktor']
            },
        },
    },
    'aviskovic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['aviskovic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Alfredo Višković'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Višković'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['alfredo.viskovic@riteh.hr'],
            'givenName': ['Alfredo']
            },
        },
    },
    'bdobras@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['bdobras@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Branka Dobraš'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Dobraš'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['branka.dobras@riteh.hr'],
            'givenName': ['Branka']
            },
        },
    },
    'klenac@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['klenac@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Kristijan Lenac'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Lenac'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['Kristijan.lenac@riteh.hr'],
            'givenName': ['Kristijan']
            },
        },
    },
    'iipsic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['iipsic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Ivo Ipšić'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Ipšić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['ivo.ipsic@riteh.hr'],
            'givenName': ['Ivo']
            },
        },
    },
    'gmausa@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['gmausa@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Goran Mauša'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Mauša'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['goran.mausa@riteh.hr'],
            'givenName': ['Goran']
            },
        },
    },
    'sljubic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['sljubic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Sandi Ljubić'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Ljubić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['sandi.ljubic@riteh.hr'],
            'givenName': ['Sandi']
            },
        },
    },
    'rbasan@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['rbasan@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Robert Basan'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Basan'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['robert.basan@riteh.hr'],
            'givenName': ['Robert']
            },
        },
    },
    'tsencic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['tsencic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Tomislav Senčić'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Senčić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['tomislav.sencic@riteh.hr'],
            'givenName': ['Tomislav']
            },
        },
    },
    'ekamenar@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['ekamenar@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Ervin Kamenar'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Kamenar'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['ervin.kamenar@riteh.hr'],
            'givenName': ['Ervin']
            },
        },
    },
    'svlahinic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['svlahinic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Saša Vlahinić'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Vlahinić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['sasa.vlahinic@riteh.hr'],
            'givenName': ['Saša']
            },
        },
    },
    'ssladic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['ssladic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Saša Sladić'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Sladić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['sasa.sladic@riteh.hr'],
            'givenName': ['Saša']
            },
        },
    },
    'vfranki@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['vfranki@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Vladimir Franki'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Franki'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['vladimir.franki@riteh.hr'],
            'givenName': ['Vladimir']
            },
        },
    },

    'vkirincic@riteh.hr': {
    'password': '0000',
    'session_info': {
        'ava': {
            'hrEduPersonUniqueID': ['vkirincic@riteh.hr'],
            'hrEduPersonPrimaryAffiliation': ['djelatnik'],
            'cn': ['Vedran Kirinčić'],
            'hrEduPersonUniqueNumber': ['12345678902'],
            'sn': ['Kirinčić'],
            'hrEduPersonHomeOrg': ['riteh.hr'],
            'mail': ['vedran.kirincic@riteh.hr'],
            'givenName': ['Vedran']
            },
        },
    },
}
)

SAML_ATTRIBUTE_MAPPING = {
    'hrEduPersonUniqueID': ('username', ),
    'mail': ('email', ),
    'givenName': ('first_name', ),
    'sn': ('last_name', ),

}