summaryrefslogtreecommitdiffstats
path: root/django/sp_sso/saml/models.py
blob: ea5429bbab743d34fa1e8722fb4031f1252bdee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from django.db import models
from django.contrib.auth.models import AbstractUser


class SupAnnUser(AbstractUser):
    """ Base user of the SSO scheme. OBSOLETE

    eduPerson and supann2009 attributes have been added so that theses
    attributes can be retrieved in mellon.

    XXX mellon attributes are also stored in the session.
    (see the request.session['mellon_session'] dict)
    """
    # eduPerson attributes:
    ep_principal_name = models.CharField(max_length=100,default='user_eppn')
    ep_primary_affiliation = models.CharField(max_length=100, default="")
    ep_affiliation = models.CharField(max_length=100, default="")
    # supannPerson attributes:
    s_entite_affectation_principale = models.CharField(max_length=100, default="")
    s_entite_affectation = models.CharField(max_length=100, default="")
    s_emp_corps = models.CharField(max_length=100, default="")
    s_etablissement = models.CharField(max_length=100, default="")
    s_liste_rouge = models.BooleanField(default=False)

    REQUIRED_FIELDS = []