Projet

Général

Profil

0001-Remove-south_migrations-as-only-Django-1.7-is-suppor.patch

Benjamin Dauvergne, 27 avril 2015 10:12

Télécharger (1,26 Mo)

Voir les différences:

Subject: [PATCH] Remove south_migrations as only Django 1.7 is supported now
 (fixes #7043)

 .../south_migrations/0001_initial.py               | 132 -------
 ...uteprofile_user__chg_field_useraliasinsource.py |  73 ----
 ...3_auto__add_attributelist__add_attributeitem.py |  78 ----
 .../south_migrations/__init__.py                   |   0
 .../auth2_ssl/south_migrations/0001_initial.py     | 106 -----
 .../0002_auto__chg_field_clientcertificate_user.py |  66 ----
 ...e__del_field_clientcertificate_issuer__del_f.py |  90 -----
 .../auth2_ssl/south_migrations/__init__.py         |   0
 .../auth2_auth/south_migrations/0001_initial.py    |  35 --
 ...02_auto__chg_field_authenticationevent_nonce.py |  28 --
 .../0003_auto__del_authenticationevent.py          |  36 --
 .../auth2_auth/south_migrations/__init__.py        |   0
 .../idp/south_migrations/0001_initial.py           |  63 ---
 ...__del_userconsent__add_userconsentattributes.py |  77 ----
 .../south_migrations/0003_auto__add_userprofile.py |  83 ----
 ...policy__add_attributelist__add_attributeitem.py | 170 --------
 ...0005_auto__add_field_attributepolicy_enabled.py | 108 -----
 ...field_attributepolicy_ask_consent_attributes.py | 109 -----
 ...d_attributepolicy_allow_attributes_selection.py | 110 ------
 ...e_user__chg_field_userconsentattributes_user.py | 103 -----
 .../south_migrations/0009_auto__del_userprofile.py | 106 -----
 .../0010_auto__del_userconsentattributes.py        |  68 ----
 ...el_attributeitem__chg_field_attributepolicy_.py |  92 -----
 src/authentic2/idp/south_migrations/__init__.py    |   0
 .../saml/south_migrations/0001_initial.py          | 384 ------------------
 ..._add_field_libertyprovider_federation_source.py | 183 ---------
 ...cy__add_authorizationattributemapping__add_a.py | 438 ---------------------
 ...ionattributemapping_source_attribute_name__c.py | 239 -----------
 .../0005_auto__del_unique_libertyprovider_name.py  | 217 ----------
 ...0006_auto__add_field_libertysessiondump_kind.py | 218 ----------
 ...olicy__add_field_libertyserviceprovider_poli.py | 236 -----------
 ...mapping__del_libertyattributemap__del_field_.py | 380 ------------------
 ...cy__del_field_libertyserviceprovider_prefere.py | 307 ---------------
 ...0_auto__add_field_spoptionsidppolicy_enabled.py | 235 -----------
 ...sppolicy_handle_persistent__add_field_idpopt.py | 299 --------------
 ...viceprovider_enable_following_attribute_poli.py | 239 -----------
 ...uto__add_field_idpoptionssppolicy_accept_slo.py | 248 ------------
 ...to__add_field_idpoptionssppolicy_forward_slo.py | 249 ------------
 ...uto__add_field_spoptionsidppolicy_accept_slo.py | 250 ------------
 ...to__add_field_spoptionsidppolicy_forward_slo.py | 244 ------------
 ...sppolicy_user_consent__add_field_idpoptionss.py | 252 ------------
 ...eration_user__chg_field_libertyidentitydump_.py |  10 -
 ...sion_provider_id__chg_field_libertysession_n.py | 256 ------------
 .../0020_auto__chg_field_keyvalue_key.py           | 244 ------------
 ...eration_idp_id__chg_field_libertyfederation_.py | 268 -------------
 ...sion_django_session_key__chg_field_libertyar.py | 298 --------------
 ...dppolicy_accepted_name_id_format__chg_field_.py | 250 ------------
 ...eration_site__add_field_libertyfederation_id.py | 256 ------------
 .../0025_fill_liberty_federation_provider_site.py  | 282 -------------
 ...eration_idp_id__del_field_libertyfederation_.py | 296 --------------
 ...eration_creation__add_field_libertyfederatio.py | 250 ------------
 ...eration_site__chg_field_libertyfederation_us.py | 238 -----------
 ...field_libertyfederation_termination_notified.py | 249 ------------
 ...eration_site__del_field_libertyartifact_djan.py | 241 ------------
 .../0031_auto__del_libertyidentitydump.py          | 257 ------------
 ...deration_user_idp_name_id_format__del_unique.py | 260 ------------
 .../0033_auto__add_field_libertyprovider_slug.py   | 272 -------------
 ...ionssppolicy_persistent_identifier_attribute.py | 260 ------------
 ...add_field_spoptionsidppolicy_federation_mode.py | 259 ------------
 ...eration_name_id_qualifier__add_field_liberty.py | 255 ------------
 ...dppolicy_needs_iframe_logout__add_field_spop.py | 257 ------------
 ...optionsidppolicy_http_method_for_slo_request.py | 250 ------------
 .../0039_auto__add_samlattribute.py                | 266 -------------
 ...bute_content_type_object_id_name_format_name.py | 258 ------------
 .../0041_auto__add_field_samlattribute_enabled.py  | 261 ------------
 ...serviceprovider_users_can_manage_federations.py | 263 -------------
 .../0042_auto__chg_field_samlattribute_name.py     | 260 ------------
 ...ute_name__add_field_libertyprovider_metadata.py | 270 -------------
 .../0045_copy_entity_id_to_metadata_url.py         | 262 ------------
 .../0046_migrate_authn_request_signed_setting.py   | 284 -------------
 ...olicy__del_field_libertyserviceprovider_poli.py | 268 -------------
 ...ssertion__del_field_libertysession_assertion.py | 261 ------------
 .../0049_auto__add_field_keyvalue_created.py       | 274 -------------
 ...viceprovider_sp_options_policy__chg_field_li.py | 289 --------------
 src/authentic2/saml/south_migrations/__init__.py   |   0
 src/authentic2/south_migrations/0001_initial.py    |  17 -
 .../south_migrations/0002_switch_to_custom_user.py |  20 -
 .../south_migrations/0003_auto__add_user.py        |  12 -
 ...ield_user_backend__add_field_user_backend_id.py |  18 -
 ...ame__add_field_user_url__add_field_user_comp.py |  12 -
 ...hg_field_user_username__chg_field_user_email.py |  17 -
 .../south_migrations/0007_auto__add_deleteduser.py |  37 --
 .../0008_auto__add_userexternalid.py               |  66 ----
 ...alid_source__chg_field_userexternalid_extern.py |  69 ----
 .../0010_auto__add_field_userexternalid_updated.py |  64 ---
 .../0011_auto__add_authenticationevent.py          |  75 ----
 .../south_migrations/0012_auto__add_logouturl.py   |  73 ----
 .../south_migrations/0013_auto__add_federatedid.py |  82 ----
 ...0014_auto__add_attribute__add_attributevalue.py | 120 ------
 .../0015_auto__chg_field_userexternalid_updated.py |  95 -----
 ...0016_auto__chg_field_authenticationevent_how.py |  95 -----
 .../0017_auto__add_passwordreset.py                | 130 ------
 src/authentic2/south_migrations/__init__.py        |   0
 93 files changed, 15777 deletions(-)
 delete mode 100644 src/authentic2/attribute_aggregator/south_migrations/0001_initial.py
 delete mode 100644 src/authentic2/attribute_aggregator/south_migrations/0002_auto__chg_field_userattributeprofile_user__chg_field_useraliasinsource.py
 delete mode 100644 src/authentic2/attribute_aggregator/south_migrations/0003_auto__add_attributelist__add_attributeitem.py
 delete mode 100644 src/authentic2/attribute_aggregator/south_migrations/__init__.py
 delete mode 100644 src/authentic2/auth2_auth/auth2_ssl/south_migrations/0001_initial.py
 delete mode 100644 src/authentic2/auth2_auth/auth2_ssl/south_migrations/0002_auto__chg_field_clientcertificate_user.py
 delete mode 100644 src/authentic2/auth2_auth/auth2_ssl/south_migrations/0003_auto__del_distinguishedname__del_field_clientcertificate_issuer__del_f.py
 delete mode 100644 src/authentic2/auth2_auth/auth2_ssl/south_migrations/__init__.py
 delete mode 100644 src/authentic2/auth2_auth/south_migrations/0001_initial.py
 delete mode 100644 src/authentic2/auth2_auth/south_migrations/0002_auto__chg_field_authenticationevent_nonce.py
 delete mode 100644 src/authentic2/auth2_auth/south_migrations/0003_auto__del_authenticationevent.py
 delete mode 100644 src/authentic2/auth2_auth/south_migrations/__init__.py
 delete mode 100644 src/authentic2/idp/south_migrations/0001_initial.py
 delete mode 100644 src/authentic2/idp/south_migrations/0002_auto__del_userconsent__add_userconsentattributes.py
 delete mode 100644 src/authentic2/idp/south_migrations/0003_auto__add_userprofile.py
 delete mode 100644 src/authentic2/idp/south_migrations/0004_auto__add_attributepolicy__add_attributelist__add_attributeitem.py
 delete mode 100644 src/authentic2/idp/south_migrations/0005_auto__add_field_attributepolicy_enabled.py
 delete mode 100644 src/authentic2/idp/south_migrations/0006_auto__add_field_attributepolicy_ask_consent_attributes.py
 delete mode 100644 src/authentic2/idp/south_migrations/0007_auto__add_field_attributepolicy_allow_attributes_selection.py
 delete mode 100644 src/authentic2/idp/south_migrations/0008_auto__chg_field_userprofile_user__chg_field_userconsentattributes_user.py
 delete mode 100644 src/authentic2/idp/south_migrations/0009_auto__del_userprofile.py
 delete mode 100644 src/authentic2/idp/south_migrations/0010_auto__del_userconsentattributes.py
 delete mode 100644 src/authentic2/idp/south_migrations/0011_auto__del_attributelist__del_attributeitem__chg_field_attributepolicy_.py
 delete mode 100644 src/authentic2/idp/south_migrations/__init__.py
 delete mode 100644 src/authentic2/saml/south_migrations/0001_initial.py
 delete mode 100644 src/authentic2/saml/south_migrations/0002_auto__add_field_libertyprovider_federation_source.py
 delete mode 100644 src/authentic2/saml/south_migrations/0003_auto__add_idpoptionssppolicy__add_authorizationattributemapping__add_a.py
 delete mode 100644 src/authentic2/saml/south_migrations/0004_auto__chg_field_authorizationattributemapping_source_attribute_name__c.py
 delete mode 100644 src/authentic2/saml/south_migrations/0005_auto__del_unique_libertyprovider_name.py
 delete mode 100644 src/authentic2/saml/south_migrations/0006_auto__add_field_libertysessiondump_kind.py
 delete mode 100644 src/authentic2/saml/south_migrations/0007_auto__add_libertyproviderpolicy__add_field_libertyserviceprovider_poli.py
 delete mode 100644 src/authentic2/saml/south_migrations/0008_auto__del_libertyattributemapping__del_libertyattributemap__del_field_.py
 delete mode 100644 src/authentic2/saml/south_migrations/0009_auto__add_spoptionsidppolicy__del_field_libertyserviceprovider_prefere.py
 delete mode 100644 src/authentic2/saml/south_migrations/0010_auto__add_field_spoptionsidppolicy_enabled.py
 delete mode 100644 src/authentic2/saml/south_migrations/0011_auto__add_field_idpoptionssppolicy_handle_persistent__add_field_idpopt.py
 delete mode 100644 src/authentic2/saml/south_migrations/0012_auto__add_field_libertyserviceprovider_enable_following_attribute_poli.py
 delete mode 100644 src/authentic2/saml/south_migrations/0013_auto__add_field_idpoptionssppolicy_accept_slo.py
 delete mode 100644 src/authentic2/saml/south_migrations/0014_auto__add_field_idpoptionssppolicy_forward_slo.py
 delete mode 100644 src/authentic2/saml/south_migrations/0015_auto__add_field_spoptionsidppolicy_accept_slo.py
 delete mode 100644 src/authentic2/saml/south_migrations/0016_auto__add_field_spoptionsidppolicy_forward_slo.py
 delete mode 100644 src/authentic2/saml/south_migrations/0017_auto__del_field_idpoptionssppolicy_user_consent__add_field_idpoptionss.py
 delete mode 100644 src/authentic2/saml/south_migrations/0018_auto__chg_field_libertyfederation_user__chg_field_libertyidentitydump_.py
 delete mode 100644 src/authentic2/saml/south_migrations/0019_auto__chg_field_libertysession_provider_id__chg_field_libertysession_n.py
 delete mode 100644 src/authentic2/saml/south_migrations/0020_auto__chg_field_keyvalue_key.py
 delete mode 100644 src/authentic2/saml/south_migrations/0021_auto__chg_field_libertyfederation_idp_id__chg_field_libertyfederation_.py
 delete mode 100644 src/authentic2/saml/south_migrations/0022_auto__chg_field_libertysession_django_session_key__chg_field_libertyar.py
 delete mode 100644 src/authentic2/saml/south_migrations/0023_auto__chg_field_spoptionsidppolicy_accepted_name_id_format__chg_field_.py
 delete mode 100644 src/authentic2/saml/south_migrations/0024_auto__add_field_libertyfederation_site__add_field_libertyfederation_id.py
 delete mode 100644 src/authentic2/saml/south_migrations/0025_fill_liberty_federation_provider_site.py
 delete mode 100644 src/authentic2/saml/south_migrations/0026_auto__del_field_libertyfederation_idp_id__del_field_libertyfederation_.py
 delete mode 100644 src/authentic2/saml/south_migrations/0027_auto__add_field_libertyfederation_creation__add_field_libertyfederatio.py
 delete mode 100644 src/authentic2/saml/south_migrations/0028_auto__chg_field_libertyfederation_site__chg_field_libertyfederation_us.py
 delete mode 100644 src/authentic2/saml/south_migrations/0029_auto__add_field_libertyfederation_termination_notified.py
 delete mode 100644 src/authentic2/saml/south_migrations/0030_auto__del_field_libertyfederation_site__del_field_libertyartifact_djan.py
 delete mode 100644 src/authentic2/saml/south_migrations/0031_auto__del_libertyidentitydump.py
 delete mode 100644 src/authentic2/saml/south_migrations/0032_auto__del_unique_libertyfederation_user_idp_name_id_format__del_unique.py
 delete mode 100644 src/authentic2/saml/south_migrations/0033_auto__add_field_libertyprovider_slug.py
 delete mode 100644 src/authentic2/saml/south_migrations/0034_auto__add_field_idpoptionssppolicy_persistent_identifier_attribute.py
 delete mode 100644 src/authentic2/saml/south_migrations/0035_auto__add_field_spoptionsidppolicy_federation_mode.py
 delete mode 100644 src/authentic2/saml/south_migrations/0036_auto__add_field_libertyfederation_name_id_qualifier__add_field_liberty.py
 delete mode 100644 src/authentic2/saml/south_migrations/0037_auto__add_field_spoptionsidppolicy_needs_iframe_logout__add_field_spop.py
 delete mode 100644 src/authentic2/saml/south_migrations/0038_auto__add_field_spoptionsidppolicy_http_method_for_slo_request.py
 delete mode 100644 src/authentic2/saml/south_migrations/0039_auto__add_samlattribute.py
 delete mode 100644 src/authentic2/saml/south_migrations/0040_auto__add_unique_samlattribute_content_type_object_id_name_format_name.py
 delete mode 100644 src/authentic2/saml/south_migrations/0041_auto__add_field_samlattribute_enabled.py
 delete mode 100644 src/authentic2/saml/south_migrations/0042_auto__add_field_libertyserviceprovider_users_can_manage_federations.py
 delete mode 100644 src/authentic2/saml/south_migrations/0042_auto__chg_field_samlattribute_name.py
 delete mode 100644 src/authentic2/saml/south_migrations/0044_auto__chg_field_samlattribute_name__add_field_libertyprovider_metadata.py
 delete mode 100644 src/authentic2/saml/south_migrations/0045_copy_entity_id_to_metadata_url.py
 delete mode 100644 src/authentic2/saml/south_migrations/0046_migrate_authn_request_signed_setting.py
 delete mode 100644 src/authentic2/saml/south_migrations/0047_auto__del_libertyproviderpolicy__del_field_libertyserviceprovider_poli.py
 delete mode 100644 src/authentic2/saml/south_migrations/0048_auto__del_libertyassertion__del_field_libertysession_assertion.py
 delete mode 100644 src/authentic2/saml/south_migrations/0049_auto__add_field_keyvalue_created.py
 delete mode 100644 src/authentic2/saml/south_migrations/0050_auto__chg_field_libertyserviceprovider_sp_options_policy__chg_field_li.py
 delete mode 100644 src/authentic2/saml/south_migrations/__init__.py
 delete mode 100644 src/authentic2/south_migrations/0001_initial.py
 delete mode 100644 src/authentic2/south_migrations/0002_switch_to_custom_user.py
 delete mode 100644 src/authentic2/south_migrations/0003_auto__add_user.py
 delete mode 100644 src/authentic2/south_migrations/0004_auto__add_field_user_backend__add_field_user_backend_id.py
 delete mode 100644 src/authentic2/south_migrations/0005_auto__add_field_user_nickname__add_field_user_url__add_field_user_comp.py
 delete mode 100644 src/authentic2/south_migrations/0006_auto__chg_field_user_username__chg_field_user_email.py
 delete mode 100644 src/authentic2/south_migrations/0007_auto__add_deleteduser.py
 delete mode 100644 src/authentic2/south_migrations/0008_auto__add_userexternalid.py
 delete mode 100644 src/authentic2/south_migrations/0009_auto__add_field_userexternalid_source__chg_field_userexternalid_extern.py
 delete mode 100644 src/authentic2/south_migrations/0010_auto__add_field_userexternalid_updated.py
 delete mode 100644 src/authentic2/south_migrations/0011_auto__add_authenticationevent.py
 delete mode 100644 src/authentic2/south_migrations/0012_auto__add_logouturl.py
 delete mode 100644 src/authentic2/south_migrations/0013_auto__add_federatedid.py
 delete mode 100644 src/authentic2/south_migrations/0014_auto__add_attribute__add_attributevalue.py
 delete mode 100644 src/authentic2/south_migrations/0015_auto__chg_field_userexternalid_updated.py
 delete mode 100644 src/authentic2/south_migrations/0016_auto__chg_field_authenticationevent_how.py
 delete mode 100644 src/authentic2/south_migrations/0017_auto__add_passwordreset.py
 delete mode 100644 src/authentic2/south_migrations/__init__.py
src/authentic2/attribute_aggregator/south_migrations/0001_initial.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5

  
6
from authentic2.compat import user_model_label
7

  
8

  
9
class Migration(SchemaMigration):
10
    
11
    def forwards(self, orm):
12
        
13
        # Adding model 'AttributeSource'
14
        db.create_table('attribute_aggregator_attributesource', (
15
            ('namespace', self.gf('django.db.models.fields.CharField')(default=('Default', 'Default'), max_length=100)),
16
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
17
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=200)),
18
        ))
19
        db.send_create_signal('attribute_aggregator', ['AttributeSource'])
20

  
21
        # Adding model 'LdapSource'
22
        db.create_table('attribute_aggregator_ldapsource', (
23
            ('ldaps', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
24
            ('certificate', self.gf('django.db.models.fields.TextField')(blank=True)),
25
            ('is_auth_backend', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
26
            ('attributesource_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['attribute_aggregator.AttributeSource'], unique=True, primary_key=True)),
27
            ('server', self.gf('django.db.models.fields.CharField')(unique=True, max_length=200)),
28
            ('base', self.gf('django.db.models.fields.CharField')(max_length=200)),
29
            ('user', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)),
30
            ('password', self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True)),
31
            ('port', self.gf('django.db.models.fields.IntegerField')(default=389)),
32
        ))
33
        db.send_create_signal('attribute_aggregator', ['LdapSource'])
34

  
35
        # Adding model 'UserAliasInSource'
36
        db.create_table('attribute_aggregator_useraliasinsource', (
37
            ('source', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['attribute_aggregator.AttributeSource'])),
38
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='user_alias_in_source', to=orm[user_model_label])),
39
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
40
            ('name', self.gf('django.db.models.fields.CharField')(max_length=200)),
41
        ))
42
        db.send_create_signal('attribute_aggregator', ['UserAliasInSource'])
43

  
44
        # Adding unique constraint on 'UserAliasInSource', fields ['name', 'source']
45
        db.create_unique('attribute_aggregator_useraliasinsource', ['name', 'source_id'])
46

  
47
        # Adding model 'UserAttributeProfile'
48
        db.create_table('attribute_aggregator_userattributeprofile', (
49
            ('data', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
50
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
51
            ('user', self.gf('django.db.models.fields.related.OneToOneField')(blank=True, related_name='user_attribute_profile', unique=True, null=True, to=orm[user_model_label])),
52
        ))
53
        db.send_create_signal('attribute_aggregator', ['UserAttributeProfile'])
54
    
55
    
56
    def backwards(self, orm):
57
        
58
        # Deleting model 'AttributeSource'
59
        db.delete_table('attribute_aggregator_attributesource')
60

  
61
        # Deleting model 'LdapSource'
62
        db.delete_table('attribute_aggregator_ldapsource')
63

  
64
        # Deleting model 'UserAliasInSource'
65
        db.delete_table('attribute_aggregator_useraliasinsource')
66

  
67
        # Removing unique constraint on 'UserAliasInSource', fields ['name', 'source']
68
        db.delete_unique('attribute_aggregator_useraliasinsource', ['name', 'source_id'])
69

  
70
        # Deleting model 'UserAttributeProfile'
71
        db.delete_table('attribute_aggregator_userattributeprofile')
72
    
73
    
74
    models = {
75
        'attribute_aggregator.attributesource': {
76
            'Meta': {'object_name': 'AttributeSource'},
77
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
79
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
80
        },
81
        'attribute_aggregator.ldapsource': {
82
            'Meta': {'object_name': 'LdapSource', '_ormbases': ['attribute_aggregator.AttributeSource']},
83
            'attributesource_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'unique': 'True', 'primary_key': 'True'}),
84
            'base': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
85
            'certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
86
            'is_auth_backend': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
87
            'ldaps': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
88
            'password': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
89
            'port': ('django.db.models.fields.IntegerField', [], {'default': '389'}),
90
            'server': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
91
            'user': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
92
        },
93
        'attribute_aggregator.useraliasinsource': {
94
            'Meta': {'unique_together': "(('name', 'source'),)", 'object_name': 'UserAliasInSource'},
95
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
96
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
97
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']"}),
98
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_alias_in_source'", 'to': "orm['%s']" % user_model_label})
99
        },
100
        'attribute_aggregator.userattributeprofile': {
101
            'Meta': {'object_name': 'UserAttributeProfile'},
102
            'data': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
103
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
104
            'user': ('django.db.models.fields.related.OneToOneField', [], {'blank': 'True', 'related_name': "'user_attribute_profile'", 'unique': 'True', 'null': 'True', 'to': "orm['%s']" % user_model_label})
105
        },
106
        'auth.group': {
107
            'Meta': {'object_name': 'Group'},
108
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
109
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
110
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
111
        },
112
        'auth.permission': {
113
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
114
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
115
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
116
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
117
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
118
        },
119
        user_model_label: {
120
            'Meta': {'object_name': user_model_label.split('.')[-1]},
121
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
122
        },
123
        'contenttypes.contenttype': {
124
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
125
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
126
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
127
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
128
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
129
        }
130
    }
131
    
132
    complete_apps = ['attribute_aggregator']
src/authentic2/attribute_aggregator/south_migrations/0002_auto__chg_field_userattributeprofile_user__chg_field_useraliasinsource.py
1
# -*- coding: utf-8 -*-
2
from south.v2 import SchemaMigration
3

  
4
from authentic2.compat import user_model_label
5

  
6

  
7
class Migration(SchemaMigration):
8
    def forwards(self, orm):
9
        pass
10

  
11

  
12
    def backwards(self, orm):
13
        pass
14

  
15
    models = {
16
        'attribute_aggregator.attributesource': {
17
            'Meta': {'object_name': 'AttributeSource'},
18
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
19
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
20
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
21
        },
22
        'attribute_aggregator.ldapsource': {
23
            'Meta': {'object_name': 'LdapSource', '_ormbases': ['attribute_aggregator.AttributeSource']},
24
            'attributesource_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'unique': 'True', 'primary_key': 'True'}),
25
            'base': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
26
            'certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
27
            'is_auth_backend': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
28
            'ldaps': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
29
            'password': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
30
            'port': ('django.db.models.fields.IntegerField', [], {'default': '389'}),
31
            'server': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
32
            'user': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
33
        },
34
        'attribute_aggregator.useraliasinsource': {
35
            'Meta': {'unique_together': "(('name', 'source'),)", 'object_name': 'UserAliasInSource'},
36
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
38
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']"}),
39
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_alias_in_source'", 'to': "orm['%s']" % user_model_label})
40
        },
41
        'attribute_aggregator.userattributeprofile': {
42
            'Meta': {'object_name': 'UserAttributeProfile'},
43
            'data': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
44
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45
            'user': ('django.db.models.fields.related.OneToOneField', [], {'blank': 'True', 'related_name': "'user_attribute_profile'", 'unique': 'True', 'null': 'True', 'to': "orm['%s']" % user_model_label})
46
        },
47
        'auth.group': {
48
            'Meta': {'object_name': 'Group'},
49
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
51
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
52
        },
53
        'auth.permission': {
54
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
55
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
56
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
57
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
59
        },
60
        user_model_label: {
61
            'Meta': {'object_name': user_model_label.split('.')[-1]},
62
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
63
        },
64
        'contenttypes.contenttype': {
65
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
66
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
67
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
69
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
70
        }
71
    }
72
    
73
    complete_apps = ['attribute_aggregator']
src/authentic2/attribute_aggregator/south_migrations/0003_auto__add_attributelist__add_attributeitem.py
1
# -*- coding: utf-8 -*-
2
from south.v2 import SchemaMigration
3

  
4
from authentic2.compat import user_model_label
5

  
6
class Migration(SchemaMigration):
7
    depends_on = (
8
            ('idp', '0011_auto__del_attributelist__del_attributeitem__chg_field_attributepolicy_.py'),
9
    )
10

  
11
    def forwards(self, orm):
12
        pass
13

  
14

  
15
    def backwards(self, orm):
16
        pass
17

  
18

  
19
    models = {
20
        u'attribute_aggregator.attributeitem': {
21
            'Meta': {'object_name': 'AttributeItem'},
22
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
23
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
24
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
25
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
26
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
27
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
28
        },
29
        u'attribute_aggregator.attributelist': {
30
            'Meta': {'object_name': 'AttributeList'},
31
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
32
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
34
        },
35
        u'attribute_aggregator.attributesource': {
36
            'Meta': {'object_name': 'AttributeSource'},
37
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
39
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
40
        },
41
        u'attribute_aggregator.ldapsource': {
42
            'Meta': {'object_name': 'LdapSource', '_ormbases': [u'attribute_aggregator.AttributeSource']},
43
            u'attributesource_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'unique': 'True', 'primary_key': 'True'}),
44
            'base': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
45
            'certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
46
            'is_auth_backend': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
47
            'ldaps': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
48
            'password': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
49
            'port': ('django.db.models.fields.IntegerField', [], {'default': '389'}),
50
            'server': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
51
            'user': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
52
        },
53
        u'attribute_aggregator.useraliasinsource': {
54
            'Meta': {'unique_together': "(('name', 'source'),)", 'object_name': 'UserAliasInSource'},
55
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56
            'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
57
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']"}),
58
            'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_alias_in_source'", 'to': u"orm['%s']" % user_model_label})
59
        },
60
        u'attribute_aggregator.userattributeprofile': {
61
            'Meta': {'object_name': 'UserAttributeProfile'},
62
            'data': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
63
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
64
            'user': ('django.db.models.fields.related.OneToOneField', [], {'blank': 'True', 'related_name': "'user_attribute_profile'", 'unique': 'True', 'null': 'True', 'to': u"orm['%s']" % user_model_label})
65
        },
66
        user_model_label: {
67
            'Meta': {'object_name': user_model_label.split('.')[-1]},
68
        },
69
        u'contenttypes.contenttype': {
70
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
71
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
72
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
73
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
74
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
75
        }
76
    }
77

  
78
    complete_apps = ['attribute_aggregator']
src/authentic2/auth2_auth/auth2_ssl/south_migrations/0001_initial.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5

  
6
from authentic2.compat import user_model_label
7

  
8

  
9
class Migration(SchemaMigration):
10
    
11
    def forwards(self, orm):
12
        
13
        # Adding model 'DistinguishedName'
14
        db.create_table('auth2_ssl_distinguishedname', (
15
            ('c', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
16
            ('cn', self.gf('django.db.models.fields.CharField')(max_length=255)),
17
            ('g', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
18
            ('i', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
19
            ('l', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
20
            ('o', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
21
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
22
            ('s', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
23
            ('t', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
24
            ('uid', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
25
            ('ou', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
26
            ('st', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
27
            ('email', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
28
            ('d', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
29
        ))
30
        db.send_create_signal('auth2_ssl', ['DistinguishedName'])
31

  
32
        # Adding model 'ClientCertificate'
33
        db.create_table('auth2_ssl_clientcertificate', (
34
            ('cert', self.gf('django.db.models.fields.TextField')(blank=True)),
35
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[user_model_label])),
36
            ('serial', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
37
            ('subject', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='subject', null=True, to=orm['auth2_ssl.DistinguishedName'])),
38
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
39
            ('issuer', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='issuer', null=True, to=orm['auth2_ssl.DistinguishedName'])),
40
        ))
41
        db.send_create_signal('auth2_ssl', ['ClientCertificate'])
42
    
43
    
44
    def backwards(self, orm):
45
        
46
        # Deleting model 'DistinguishedName'
47
        db.delete_table('auth2_ssl_distinguishedname')
48

  
49
        # Deleting model 'ClientCertificate'
50
        db.delete_table('auth2_ssl_clientcertificate')
51
    
52
    
53
    models = {
54
        'auth.group': {
55
            'Meta': {'object_name': 'Group'},
56
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
58
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
59
        },
60
        'auth.permission': {
61
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
62
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
63
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
64
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
66
        },
67
        user_model_label: {
68
            'Meta': {'object_name': user_model_label.split('.')[-1]},
69
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70
        },
71
        'auth2_ssl.clientcertificate': {
72
            'Meta': {'object_name': 'ClientCertificate'},
73
            'cert': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
74
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75
            'issuer': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'issuer'", 'null': 'True', 'to': "orm['auth2_ssl.DistinguishedName']"}),
76
            'serial': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
77
            'subject': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'subject'", 'null': 'True', 'to': "orm['auth2_ssl.DistinguishedName']"}),
78
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
79
        },
80
        'auth2_ssl.distinguishedname': {
81
            'Meta': {'object_name': 'DistinguishedName'},
82
            'c': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
83
            'cn': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
84
            'd': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
85
            'email': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
86
            'g': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
87
            'i': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
88
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89
            'l': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
90
            'o': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
91
            'ou': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
92
            's': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
93
            'st': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
94
            't': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
95
            'uid': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
96
        },
97
        'contenttypes.contenttype': {
98
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
99
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
100
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
101
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
102
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
103
        }
104
    }
105
    
106
    complete_apps = ['auth2_ssl']
src/authentic2/auth2_auth/auth2_ssl/south_migrations/0002_auto__chg_field_clientcertificate_user.py
1
# -*- coding: utf-8 -*-
2
from south.v2 import SchemaMigration
3
from authentic2.compat import user_model_label
4

  
5

  
6
class Migration(SchemaMigration):
7
    def forwards(self, orm):
8
        pass
9

  
10
    def backwards(self, orm):
11
        pass
12

  
13
    models = {
14
        'auth.group': {
15
            'Meta': {'object_name': 'Group'},
16
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
17
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
18
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
19
        },
20
        'auth.permission': {
21
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
22
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
23
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
24
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
26
        },
27
        user_model_label: {
28
            'Meta': {'object_name': user_model_label.split('.')[-1]},
29
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30
        },
31
        'auth2_ssl.clientcertificate': {
32
            'Meta': {'object_name': 'ClientCertificate'},
33
            'cert': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
34
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
            'issuer': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'issuer'", 'null': 'True', 'to': "orm['auth2_ssl.DistinguishedName']"}),
36
            'serial': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
37
            'subject': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'subject'", 'null': 'True', 'to': "orm['auth2_ssl.DistinguishedName']"}),
38
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
39
        },
40
        'auth2_ssl.distinguishedname': {
41
            'Meta': {'object_name': 'DistinguishedName'},
42
            'c': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
43
            'cn': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
44
            'd': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
45
            'email': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
46
            'g': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
47
            'i': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
48
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49
            'l': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
50
            'o': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
51
            'ou': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
52
            's': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
53
            'st': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
54
            't': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
55
            'uid': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'})
56
        },
57
        'contenttypes.contenttype': {
58
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
59
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
60
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
61
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
62
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
63
        }
64
    }
65
    
66
    complete_apps = ['auth2_ssl']
src/authentic2/auth2_auth/auth2_ssl/south_migrations/0003_auto__del_distinguishedname__del_field_clientcertificate_issuer__del_f.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Deleting model 'DistinguishedName'
12
        db.delete_table(u'auth2_ssl_distinguishedname')
13

  
14
        # Deleting field 'ClientCertificate.issuer'
15
        db.delete_column(u'auth2_ssl_clientcertificate', 'issuer_id')
16

  
17
        # Deleting field 'ClientCertificate.subject'
18
        db.delete_column(u'auth2_ssl_clientcertificate', 'subject_id')
19

  
20
        # Adding field 'ClientCertificate.subject_dn'
21
        db.add_column(u'auth2_ssl_clientcertificate', 'subject_dn',
22
                      self.gf('django.db.models.fields.CharField')(default='broken', max_length=255),
23
                      keep_default=False)
24

  
25
        # Adding field 'ClientCertificate.issuer_dn'
26
        db.add_column(u'auth2_ssl_clientcertificate', 'issuer_dn',
27
                      self.gf('django.db.models.fields.CharField')(default='broken', max_length=255),
28
                      keep_default=False)
29

  
30

  
31
    def backwards(self, orm):
32
        # Adding model 'DistinguishedName'
33
        db.create_table(u'auth2_ssl_distinguishedname', (
34
            ('cn', self.gf('django.db.models.fields.CharField')(max_length=255)),
35
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
36
            ('uid', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
37
            ('c', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
38
            ('d', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
39
            ('g', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
40
            ('i', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
41
            ('l', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
42
            ('o', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
43
            ('st', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
44
            ('s', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
45
            ('t', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
46
            ('ou', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
47
            ('email', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
48
        ))
49
        db.send_create_signal('auth2_ssl', ['DistinguishedName'])
50

  
51
        # Adding field 'ClientCertificate.issuer'
52
        db.add_column(u'auth2_ssl_clientcertificate', 'issuer',
53
                      self.gf('django.db.models.fields.related.ForeignKey')(related_name='issuer', null=True, to=orm['auth2_ssl.DistinguishedName'], blank=True),
54
                      keep_default=False)
55

  
56
        # Adding field 'ClientCertificate.subject'
57
        db.add_column(u'auth2_ssl_clientcertificate', 'subject',
58
                      self.gf('django.db.models.fields.related.ForeignKey')(related_name='subject', null=True, to=orm['auth2_ssl.DistinguishedName'], blank=True),
59
                      keep_default=False)
60

  
61
        # Deleting field 'ClientCertificate.subject_dn'
62
        db.delete_column(u'auth2_ssl_clientcertificate', 'subject_dn')
63

  
64
        # Deleting field 'ClientCertificate.issuer_dn'
65
        db.delete_column(u'auth2_ssl_clientcertificate', 'issuer_dn')
66

  
67

  
68
    models = {
69
        user_model_label: {
70
            'Meta': {'object_name': user_model_label.split('.')[-1]},
71
        },
72
        u'auth2_ssl.clientcertificate': {
73
            'Meta': {'object_name': 'ClientCertificate'},
74
            'cert': ('django.db.models.fields.TextField', [], {}),
75
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76
            'issuer_dn': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
77
            'serial': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
78
            'subject_dn': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
79
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label})
80
        },
81
        u'contenttypes.contenttype': {
82
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
83
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
84
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
86
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
87
        }
88
    }
89

  
90
    complete_apps = ['auth2_ssl']
src/authentic2/auth2_auth/south_migrations/0001_initial.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
class Migration(SchemaMigration):
6

  
7
    def forwards(self, orm):
8
        # Adding model 'AuthenticationEvent'
9
        db.create_table('auth2_auth_authenticationevent', (
10
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
11
            ('when', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
12
            ('who', self.gf('django.db.models.fields.CharField')(max_length=80)),
13
            ('how', self.gf('django.db.models.fields.CharField')(max_length=10)),
14
            ('nonce', self.gf('django.db.models.fields.CharField')(max_length=20)),
15
        ))
16
        db.send_create_signal('auth2_auth', ['AuthenticationEvent'])
17

  
18

  
19
    def backwards(self, orm):
20
        # Deleting model 'AuthenticationEvent'
21
        db.delete_table('auth2_auth_authenticationevent')
22

  
23

  
24
    models = {
25
        'auth2_auth.authenticationevent': {
26
            'Meta': {'object_name': 'AuthenticationEvent'},
27
            'how': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
28
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29
            'nonce': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
30
            'when': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
31
            'who': ('django.db.models.fields.CharField', [], {'max_length': '80'})
32
        }
33
    }
34

  
35
    complete_apps = ['auth2_auth']
src/authentic2/auth2_auth/south_migrations/0002_auto__chg_field_authenticationevent_nonce.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
class Migration(SchemaMigration):
6

  
7
    def forwards(self, orm):
8
        # Changing field 'AuthenticationEvent.nonce'
9
        db.alter_column('auth2_auth_authenticationevent', 'nonce', self.gf('django.db.models.fields.CharField')(max_length=255))
10

  
11

  
12
    def backwards(self, orm):
13
        # Changing field 'AuthenticationEvent.nonce'
14
        db.alter_column('auth2_auth_authenticationevent', 'nonce', self.gf('django.db.models.fields.CharField')(max_length=20))
15

  
16

  
17
    models = {
18
        'auth2_auth.authenticationevent': {
19
            'Meta': {'object_name': 'AuthenticationEvent'},
20
            'how': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
21
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
22
            'nonce': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
23
            'when': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
24
            'who': ('django.db.models.fields.CharField', [], {'max_length': '80'})
25
        }
26
    }
27

  
28
    complete_apps = ['auth2_auth']
src/authentic2/auth2_auth/south_migrations/0003_auto__del_authenticationevent.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from django.contrib.contenttypes.models import ContentType
6

  
7
class Migration(SchemaMigration):
8
    depends_on = (
9
            ('authentic2', '0011_auto__add_authenticationevent'),
10
    )
11

  
12
    def forwards(self, orm):
13
        # Deleting model 'AuthenticationEvent'
14
        db.delete_table('authentic2_authenticationevent')
15
        db.rename_table('auth2_auth_authenticationevent', 'authentic2_authenticationevent')
16
        db.send_create_signal('authentic2', ['AuthenticationEvent'])
17
        if not db.dry_run:
18
            ContentType.objects.filter(app_label='authentic2',
19
                    model='authenticationevent').delete()
20
            ContentType.objects.filter(app_label='auth2_auth') \
21
                    .update(app_label='authentic2')
22

  
23

  
24
    def backwards(self, orm):
25
        if not db.dry_run:
26
            ContentType.objects.filter(app_label='authentic2',
27
                    model='authenticationevent').update(app_label='auth2_auth')
28
        db.rename_table('authentic2_authenticationevent', 'auth2_auth_authenticationevent')
29
        db.send_create_signal('auth2_auth', ['AuthenticationEvent'])
30

  
31

  
32
    models = {
33
        
34
    }
35

  
36
    complete_apps = ['auth2_auth']
src/authentic2/idp/south_migrations/0001_initial.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5

  
6
from authentic2.compat import user_model_label
7

  
8

  
9
class Migration(SchemaMigration):
10
    
11
    def forwards(self, orm):
12
        
13
        # Adding model 'UserConsent'
14
        db.create_table('idp_userconsent', (
15
            ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
16
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
17
            ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
18
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[user_model_label])),
19
        ))
20
        db.send_create_signal('idp', ['UserConsent'])
21
    
22
    
23
    def backwards(self, orm):
24
        
25
        # Deleting model 'UserConsent'
26
        db.delete_table('idp_userconsent')
27
    
28
    
29
    models = {
30
        'auth.group': {
31
            'Meta': {'object_name': 'Group'},
32
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
34
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
35
        },
36
        'auth.permission': {
37
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
38
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
39
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
40
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
42
        },
43
        user_model_label: {
44
            'Meta': {'object_name': user_model_label.split('.')[-1]},
45
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46
        },
47
        'contenttypes.contenttype': {
48
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
49
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
50
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
52
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
53
        },
54
        'idp.userconsent': {
55
            'Meta': {'object_name': 'UserConsent'},
56
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
57
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
59
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
60
        }
61
    }
62
    
63
    complete_apps = ['idp']
src/authentic2/idp/south_migrations/0002_auto__del_userconsent__add_userconsentattributes.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5

  
6
from authentic2.compat import user_model_label
7

  
8

  
9
class Migration(SchemaMigration):
10
    
11
    def forwards(self, orm):
12
        
13
        # Deleting model 'UserConsent'
14
        db.delete_table('idp_userconsent')
15

  
16
        # Adding model 'UserConsentAttributes'
17
        db.create_table('idp_userconsentattributes', (
18
            ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
19
            ('attributes', self.gf('django.db.models.fields.TextField')()),
20
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
21
            ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
22
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[user_model_label])),
23
        ))
24
        db.send_create_signal('idp', ['UserConsentAttributes'])
25
    
26
    
27
    def backwards(self, orm):
28
        
29
        # Adding model 'UserConsent'
30
        db.create_table('idp_userconsent', (
31
            ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
32
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[user_model_label])),
33
            ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
34
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
35
        ))
36
        db.send_create_signal('idp', ['UserConsent'])
37

  
38
        # Deleting model 'UserConsentAttributes'
39
        db.delete_table('idp_userconsentattributes')
40
    
41
    
42
    models = {
43
        'auth.group': {
44
            'Meta': {'object_name': 'Group'},
45
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
47
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
48
        },
49
        'auth.permission': {
50
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
51
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
52
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
53
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
55
        },
56
        user_model_label: {
57
            'Meta': {'object_name': user_model_label.split('.')[-1]},
58
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59
        },
60
        'contenttypes.contenttype': {
61
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
62
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
63
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
64
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
65
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
66
        },
67
        'idp.userconsentattributes': {
68
            'Meta': {'object_name': 'UserConsentAttributes'},
69
            'attributes': ('django.db.models.fields.TextField', [], {}),
70
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
71
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
73
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
74
        }
75
    }
76
    
77
    complete_apps = ['idp']
src/authentic2/idp/south_migrations/0003_auto__add_userprofile.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5

  
6
from authentic2.compat import user_model_label
7

  
8

  
9
class Migration(SchemaMigration):
10

  
11
    def forwards(self, orm):
12
        
13
        # Adding model 'UserProfile'
14
        db.create_table('idp_userprofile', (
15
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
16
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[user_model_label], unique=True)),
17
            ('first_name', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)),
18
            ('last_name', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)),
19
            ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, blank=True)),
20
            ('nickname', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)),
21
            ('url', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)),
22
            ('company', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)),
23
            ('phone', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)),
24
            ('postal_address', self.gf('django.db.models.fields.TextField')(max_length=255, blank=True)),
25
        ))
26
        db.send_create_signal('idp', ['UserProfile'])
27

  
28

  
29
    def backwards(self, orm):
30
        
31
        # Deleting model 'UserProfile'
32
        db.delete_table('idp_userprofile')
33

  
34

  
35
    models = {
36
        'auth.group': {
37
            'Meta': {'object_name': 'Group'},
38
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
39
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
40
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
41
        },
42
        'auth.permission': {
43
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
44
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
45
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
46
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
48
        },
49
        user_model_label: {
50
            'Meta': {'object_name': user_model_label.split('.')[-1]},
51
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
52
        },
53
        'contenttypes.contenttype': {
54
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
55
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
56
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
58
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
59
        },
60
        'idp.userconsentattributes': {
61
            'Meta': {'object_name': 'UserConsentAttributes'},
62
            'attributes': ('django.db.models.fields.TextField', [], {}),
63
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
64
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
66
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
67
        },
68
        'idp.userprofile': {
69
            'Meta': {'object_name': 'UserProfile'},
70
            'company': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
71
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
72
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
73
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
74
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
75
            'nickname': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
76
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
77
            'postal_address': ('django.db.models.fields.TextField', [], {'max_length': '255', 'blank': 'True'}),
78
            'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
79
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
80
        }
81
    }
82

  
83
    complete_apps = ['idp']
src/authentic2/idp/south_migrations/0004_auto__add_attributepolicy__add_attributelist__add_attributeitem.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4
from django.db import models
5

  
6

  
7
from authentic2.compat import user_model_label
8

  
9

  
10
class Migration(SchemaMigration):
11
    depends_on = (
12
            ('attribute_aggregator', '0001_initial.py'),
13
    )
14

  
15
    def forwards(self, orm):
16
        
17
        # Adding model 'AttributePolicy'
18
        db.create_table('idp_attributepolicy', (
19
            ('filter_source_of_filtered_attributes', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
20
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=100)),
21
            ('attribute_filter_for_sso_from_push_sources', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='filter attributes of push sources with list', null=True, to=orm['idp.AttributeList'])),
22
            ('output_namespace', self.gf('django.db.models.fields.CharField')(default=('Default', 'Default'), max_length=100)),
23
            ('forward_attributes_from_push_sources', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
24
            ('output_name_format', self.gf('django.db.models.fields.CharField')(default=('urn:oasis:names:tc:SAML:2.0:attrname-format:basic', 'SAMLv2 BASIC'), max_length=100)),
25
            ('map_attributes_of_filtered_attributes', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
26
            ('map_attributes_from_push_sources', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
27
            ('attribute_list_for_sso_from_pull_sources', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='attributes from pull sources', null=True, to=orm['idp.AttributeList'])),
28
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
29
            ('send_error_and_no_attrs_if_missing_required_attrs', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
30
        ))
31
        db.send_create_signal('idp', ['AttributePolicy'])
32

  
33
        # Adding M2M table for field source_filter_for_sso_from_push_sources on 'AttributePolicy'
34
        db.create_table('idp_attributepolicy_source_filter_for_sso_from_push_sources', (
35
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
36
            ('attributepolicy', models.ForeignKey(orm['idp.attributepolicy'], null=False)),
37
            ('attributesource', models.ForeignKey(orm['attribute_aggregator.attributesource'], null=False))
38
        ))
39
        db.create_unique('idp_attributepolicy_source_filter_for_sso_from_push_sources', ['attributepolicy_id', 'attributesource_id'])
40

  
41
        # Adding model 'AttributeList'
42
        db.create_table('idp_attributelist', (
43
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
44
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=100)),
45
        ))
46
        db.send_create_signal('idp', ['AttributeList'])
47

  
48
        # Adding M2M table for field attributes on 'AttributeList'
49
        db.create_table('idp_attributelist_attributes', (
50
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
51
            ('attributelist', models.ForeignKey(orm['idp.attributelist'], null=False)),
52
            ('attributeitem', models.ForeignKey(orm['idp.attributeitem'], null=False))
53
        ))
54
        db.create_unique('idp_attributelist_attributes', ['attributelist_id', 'attributeitem_id'])
55

  
56
        # Adding model 'AttributeItem'
57
        db.create_table('idp_attributeitem', (
58
            ('attribute_name', self.gf('django.db.models.fields.CharField')(default=('OpenLDAProotDSE', 'OpenLDAProotDSE'), max_length=100)),
59
            ('output_namespace', self.gf('django.db.models.fields.CharField')(default=('Default', 'Default'), max_length=100)),
60
            ('required', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
61
            ('output_name_format', self.gf('django.db.models.fields.CharField')(default=('urn:oasis:names:tc:SAML:2.0:attrname-format:basic', 'SAMLv2 BASIC'), max_length=100)),
62
            ('source', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['attribute_aggregator.AttributeSource'], null=True, blank=True)),
63
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
64
        ))
65
        db.send_create_signal('idp', ['AttributeItem'])
66
    
67
    
68
    def backwards(self, orm):
69
        
70
        # Deleting model 'AttributePolicy'
71
        db.delete_table('idp_attributepolicy')
72

  
73
        # Removing M2M table for field source_filter_for_sso_from_push_sources on 'AttributePolicy'
74
        db.delete_table('idp_attributepolicy_source_filter_for_sso_from_push_sources')
75

  
76
        # Deleting model 'AttributeList'
77
        db.delete_table('idp_attributelist')
78

  
79
        # Removing M2M table for field attributes on 'AttributeList'
80
        db.delete_table('idp_attributelist_attributes')
81

  
82
        # Deleting model 'AttributeItem'
83
        db.delete_table('idp_attributeitem')
84
    
85
    
86
    models = {
87
        'attribute_aggregator.attributesource': {
88
            'Meta': {'object_name': 'AttributeSource'},
89
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
90
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
91
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
92
        },
93
        'auth.group': {
94
            'Meta': {'object_name': 'Group'},
95
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
96
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
97
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
98
        },
99
        'auth.permission': {
100
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
101
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
102
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
103
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
104
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
105
        },
106
        user_model_label: {
107
            'Meta': {'object_name': user_model_label.split('.')[-1]},
108
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
109
        },
110
        'contenttypes.contenttype': {
111
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
112
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
113
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
114
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
115
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
116
        },
117
        'idp.attributeitem': {
118
            'Meta': {'object_name': 'AttributeItem'},
119
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
120
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
121
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:basic', 'SAMLv2 BASIC')", 'max_length': '100'}),
122
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
123
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
124
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
125
        },
126
        'idp.attributelist': {
127
            'Meta': {'object_name': 'AttributeList'},
128
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
129
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
130
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
131
        },
132
        'idp.attributepolicy': {
133
            'Meta': {'object_name': 'AttributePolicy'},
134
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
135
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
136
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
137
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
138
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
139
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
140
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
141
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
142
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:basic', 'SAMLv2 BASIC')", 'max_length': '100'}),
143
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
144
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
145
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
146
        },
147
        'idp.userconsentattributes': {
148
            'Meta': {'object_name': 'UserConsentAttributes'},
149
            'attributes': ('django.db.models.fields.TextField', [], {}),
150
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
151
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
152
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
153
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
154
        },
155
        'idp.userprofile': {
156
            'Meta': {'object_name': 'UserProfile'},
157
            'company': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
158
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
159
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
160
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
161
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
162
            'nickname': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
163
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
164
            'postal_address': ('django.db.models.fields.TextField', [], {'max_length': '255', 'blank': 'True'}),
165
            'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
166
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
167
        }
168
    }
169
    
170
    complete_apps = ['idp']
src/authentic2/idp/south_migrations/0005_auto__add_field_attributepolicy_enabled.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5

  
6
from authentic2.compat import user_model_label
7

  
8

  
9
class Migration(SchemaMigration):
10

  
11
    def forwards(self, orm):
12
        
13
        # Adding field 'AttributePolicy.enabled'
14
        db.add_column('idp_attributepolicy', 'enabled', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
15

  
16

  
17
    def backwards(self, orm):
18
        
19
        # Deleting field 'AttributePolicy.enabled'
20
        db.delete_column('idp_attributepolicy', 'enabled')
21

  
22

  
23
    models = {
24
        'attribute_aggregator.attributesource': {
25
            'Meta': {'object_name': 'AttributeSource'},
26
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
28
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
29
        },
30
        'auth.group': {
31
            'Meta': {'object_name': 'Group'},
32
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
34
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
35
        },
36
        'auth.permission': {
37
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
38
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
39
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
40
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
42
        },
43
        user_model_label: {
44
            'Meta': {'object_name': user_model_label.split('.')[-1]},
45
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46
        },
47
        'contenttypes.contenttype': {
48
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
49
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
50
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
52
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
53
        },
54
        'idp.attributeitem': {
55
            'Meta': {'object_name': 'AttributeItem'},
56
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
57
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
59
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
60
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
62
        },
63
        'idp.attributelist': {
64
            'Meta': {'object_name': 'AttributeList'},
65
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
66
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
68
        },
69
        'idp.attributepolicy': {
70
            'Meta': {'object_name': 'AttributePolicy'},
71
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
72
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
73
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
74
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
75
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
78
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
79
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
80
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
81
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
82
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
83
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
84
        },
85
        'idp.userconsentattributes': {
86
            'Meta': {'object_name': 'UserConsentAttributes'},
87
            'attributes': ('django.db.models.fields.TextField', [], {}),
88
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
89
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
90
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
91
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
92
        },
93
        'idp.userprofile': {
94
            'Meta': {'object_name': 'UserProfile'},
95
            'company': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
96
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
97
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
98
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
99
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
100
            'nickname': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
101
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
102
            'postal_address': ('django.db.models.fields.TextField', [], {'max_length': '255', 'blank': 'True'}),
103
            'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
104
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
105
        }
106
    }
107

  
108
    complete_apps = ['idp']
src/authentic2/idp/south_migrations/0006_auto__add_field_attributepolicy_ask_consent_attributes.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5

  
6
from authentic2.compat import user_model_label
7

  
8

  
9
class Migration(SchemaMigration):
10

  
11
    def forwards(self, orm):
12
        
13
        # Adding field 'AttributePolicy.ask_consent_attributes'
14
        db.add_column('idp_attributepolicy', 'ask_consent_attributes', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=False)
15

  
16

  
17
    def backwards(self, orm):
18
        
19
        # Deleting field 'AttributePolicy.ask_consent_attributes'
20
        db.delete_column('idp_attributepolicy', 'ask_consent_attributes')
21

  
22

  
23
    models = {
24
        'attribute_aggregator.attributesource': {
25
            'Meta': {'object_name': 'AttributeSource'},
26
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
28
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
29
        },
30
        'auth.group': {
31
            'Meta': {'object_name': 'Group'},
32
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
34
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
35
        },
36
        'auth.permission': {
37
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
38
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
39
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
40
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
42
        },
43
        user_model_label: {
44
            'Meta': {'object_name': user_model_label.split('.')[-1]},
45
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46
        },
47
        'contenttypes.contenttype': {
48
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
49
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
50
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
52
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
53
        },
54
        'idp.attributeitem': {
55
            'Meta': {'object_name': 'AttributeItem'},
56
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
57
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
59
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
60
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
62
        },
63
        'idp.attributelist': {
64
            'Meta': {'object_name': 'AttributeList'},
65
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
66
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
68
        },
69
        'idp.attributepolicy': {
70
            'Meta': {'object_name': 'AttributePolicy'},
71
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
72
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
73
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
74
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
75
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
77
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
79
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
80
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
81
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
82
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
83
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
84
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
85
        },
86
        'idp.userconsentattributes': {
87
            'Meta': {'object_name': 'UserConsentAttributes'},
88
            'attributes': ('django.db.models.fields.TextField', [], {}),
89
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
90
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
91
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
92
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
93
        },
94
        'idp.userprofile': {
95
            'Meta': {'object_name': 'UserProfile'},
96
            'company': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
97
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
98
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
99
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
100
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
101
            'nickname': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
102
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
103
            'postal_address': ('django.db.models.fields.TextField', [], {'max_length': '255', 'blank': 'True'}),
104
            'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
105
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
106
        }
107
    }
108

  
109
    complete_apps = ['idp']
src/authentic2/idp/south_migrations/0007_auto__add_field_attributepolicy_allow_attributes_selection.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5

  
6
from authentic2.compat import user_model_label
7

  
8

  
9
class Migration(SchemaMigration):
10

  
11
    def forwards(self, orm):
12
        
13
        # Adding field 'AttributePolicy.allow_attributes_selection'
14
        db.add_column('idp_attributepolicy', 'allow_attributes_selection', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=False)
15

  
16

  
17
    def backwards(self, orm):
18
        
19
        # Deleting field 'AttributePolicy.allow_attributes_selection'
20
        db.delete_column('idp_attributepolicy', 'allow_attributes_selection')
21

  
22

  
23
    models = {
24
        'attribute_aggregator.attributesource': {
25
            'Meta': {'object_name': 'AttributeSource'},
26
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
28
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
29
        },
30
        'auth.group': {
31
            'Meta': {'object_name': 'Group'},
32
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
34
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
35
        },
36
        'auth.permission': {
37
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
38
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
39
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
40
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
42
        },
43
        user_model_label: {
44
            'Meta': {'object_name': user_model_label.split('.')[-1]},
45
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46
        },
47
        'contenttypes.contenttype': {
48
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
49
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
50
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
52
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
53
        },
54
        'idp.attributeitem': {
55
            'Meta': {'object_name': 'AttributeItem'},
56
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
57
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
59
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
60
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
62
        },
63
        'idp.attributelist': {
64
            'Meta': {'object_name': 'AttributeList'},
65
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
66
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
68
        },
69
        'idp.attributepolicy': {
70
            'Meta': {'object_name': 'AttributePolicy'},
71
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
72
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
73
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
74
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
75
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
77
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
78
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
80
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
82
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
83
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
84
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
85
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
86
        },
87
        'idp.userconsentattributes': {
88
            'Meta': {'object_name': 'UserConsentAttributes'},
89
            'attributes': ('django.db.models.fields.TextField', [], {}),
90
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
91
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
92
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
93
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
94
        },
95
        'idp.userprofile': {
96
            'Meta': {'object_name': 'UserProfile'},
97
            'company': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
98
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
99
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
100
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
101
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
102
            'nickname': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
103
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
104
            'postal_address': ('django.db.models.fields.TextField', [], {'max_length': '255', 'blank': 'True'}),
105
            'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
106
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
107
        }
108
    }
109

  
110
    complete_apps = ['idp']
src/authentic2/idp/south_migrations/0008_auto__chg_field_userprofile_user__chg_field_userconsentattributes_user.py
1
# -*- coding: utf-8 -*-
2
from south.v2 import SchemaMigration
3

  
4

  
5
from authentic2.compat import user_model_label
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        pass
12

  
13
    def backwards(self, orm):
14
        pass
15

  
16
    models = {
17
        'attribute_aggregator.attributesource': {
18
            'Meta': {'object_name': 'AttributeSource'},
19
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
20
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
21
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
22
        },
23
        'auth.group': {
24
            'Meta': {'object_name': 'Group'},
25
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
27
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
28
        },
29
        'auth.permission': {
30
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
31
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
32
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
33
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
35
        },
36
        user_model_label: {
37
            'Meta': {'object_name': user_model_label.split('.')[-1]},
38
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
39
        },
40
        'contenttypes.contenttype': {
41
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
42
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
43
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
44
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
45
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
46
        },
47
        'idp.attributeitem': {
48
            'Meta': {'object_name': 'AttributeItem'},
49
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
50
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
52
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
53
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
54
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
55
        },
56
        'idp.attributelist': {
57
            'Meta': {'object_name': 'AttributeList'},
58
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
59
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
61
        },
62
        'idp.attributepolicy': {
63
            'Meta': {'object_name': 'AttributePolicy'},
64
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
65
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
66
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
67
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
68
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
69
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
71
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
73
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
74
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
75
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
76
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
77
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
78
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
79
        },
80
        'idp.userconsentattributes': {
81
            'Meta': {'object_name': 'UserConsentAttributes'},
82
            'attributes': ('django.db.models.fields.TextField', [], {}),
83
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
84
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
86
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
87
        },
88
        'idp.userprofile': {
89
            'Meta': {'object_name': 'UserProfile'},
90
            'company': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
91
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
92
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
93
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
95
            'nickname': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
96
            'phone': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'}),
97
            'postal_address': ('django.db.models.fields.TextField', [], {'max_length': '255', 'blank': 'True'}),
98
            'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}),
99
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
100
        }
101
    }
102

  
103
    complete_apps = ['idp']
src/authentic2/idp/south_migrations/0009_auto__del_userprofile.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7
from authentic2.compat import user_model_label
8

  
9
class Migration(SchemaMigration):
10

  
11
    def forwards(self, orm):
12
        # Deleting model 'UserProfile'
13
        db.delete_table(u'idp_userprofile')
14

  
15

  
16
    def backwards(self, orm):
17
        # Adding model 'UserProfile'
18
        db.create_table(u'idp_userprofile', (
19
            ('last_name', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)),
20
            ('postal_address', self.gf('django.db.models.fields.TextField')(max_length=255, blank=True)),
21
            ('company', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)),
22
            ('phone', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)),
23
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[user_model_label], unique=True)),
24
            ('nickname', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)),
25
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
26
            ('first_name', self.gf('django.db.models.fields.CharField')(max_length=30, blank=True)),
27
            ('url', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)),
28
            ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, blank=True)),
29
        ))
30
        db.send_create_signal('idp', ['UserProfile'])
31

  
32

  
33
    models = {
34
        u'attribute_aggregator.attributesource': {
35
            'Meta': {'object_name': 'AttributeSource'},
36
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
38
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
39
        },
40
        u'auth.group': {
41
            'Meta': {'object_name': 'Group'},
42
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
44
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
45
        },
46
        u'auth.permission': {
47
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
48
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
49
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
50
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
52
        },
53
        user_model_label: {
54
            'Meta': {'object_name':  user_model_label.split('.')[-1]},
55
        },
56
        u'contenttypes.contenttype': {
57
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
58
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
59
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
61
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
62
        },
63
        u'idp.attributeitem': {
64
            'Meta': {'object_name': 'AttributeItem'},
65
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
66
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
68
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
69
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
71
        },
72
        u'idp.attributelist': {
73
            'Meta': {'object_name': 'AttributeList'},
74
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
75
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
77
        },
78
        u'idp.attributepolicy': {
79
            'Meta': {'object_name': 'AttributePolicy'},
80
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
81
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
82
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
83
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
84
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
85
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
86
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
87
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
88
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
89
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
90
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
91
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
92
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
93
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
94
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
95
        },
96
        u'idp.userconsentattributes': {
97
            'Meta': {'object_name': 'UserConsentAttributes'},
98
            'attributes': ('django.db.models.fields.TextField', [], {}),
99
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
100
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
101
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
102
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label})
103
        }
104
    }
105

  
106
    complete_apps = ['idp']
src/authentic2/idp/south_migrations/0010_auto__del_userconsentattributes.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7
class Migration(SchemaMigration):
8

  
9
    def forwards(self, orm):
10
        # Deleting model 'UserConsentAttributes'
11
        db.delete_table(u'idp_userconsentattributes')
12

  
13

  
14
    def backwards(self, orm):
15
        # Adding model 'UserConsentAttributes'
16
        db.create_table(u'idp_userconsentattributes', (
17
            ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
18
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[user_model_label])),
19
            ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
20
            ('attributes', self.gf('django.db.models.fields.TextField')()),
21
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
22
        ))
23
        db.send_create_signal(u'idp', ['UserConsentAttributes'])
24

  
25

  
26
    models = {
27
        u'attribute_aggregator.attributesource': {
28
            'Meta': {'object_name': 'AttributeSource'},
29
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
31
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
32
        },
33
        u'idp.attributeitem': {
34
            'Meta': {'object_name': 'AttributeItem', 'db_table': "'attribute_aggregator_attributeitem'"},
35
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
36
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
38
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
39
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
40
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
41
        },
42
        u'idp.attributelist': {
43
            'Meta': {'object_name': 'AttributeList'},
44
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
45
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
47
        },
48
        u'idp.attributepolicy': {
49
            'Meta': {'object_name': 'AttributePolicy'},
50
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
51
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
52
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
53
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
54
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
55
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
56
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
57
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
59
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
60
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
61
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
62
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
63
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
65
        }
66
    }
67

  
68
    complete_apps = ['idp']
src/authentic2/idp/south_migrations/0011_auto__del_attributelist__del_attributeitem__chg_field_attributepolicy_.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
class Migration(SchemaMigration):
6

  
7
    def forwards(self, orm):
8
        # Rename model 'AttributeList' table
9
        db.rename_table('idp_attributelist', 'attribute_aggregator_attributelist')
10
        db.send_create_signal('attribute_aggregator', ['AttributeList'])
11

  
12
        # Rename M2M table for field attributes on 'AttributeList'
13
        db.rename_table(db.shorten_name('idp_attributelist_attributes'),
14
                db.shorten_name('attribute_aggregator_attributelist_attributes'))
15

  
16
        # Rename model 'AttributeItem' table
17
        db.rename_table('idp_attributeitem', 'attribute_aggregator_attributeitem')
18
        db.send_create_signal('attribute_aggregator', ['AttributeItem'])
19

  
20

  
21
        # Changing field 'AttributePolicy.attribute_filter_for_sso_from_push_sources'
22
        db.alter_column(u'idp_attributepolicy', 'attribute_filter_for_sso_from_push_sources_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['attribute_aggregator.AttributeList']))
23

  
24
        # Changing field 'AttributePolicy.attribute_list_for_sso_from_pull_sources'
25
        db.alter_column(u'idp_attributepolicy', 'attribute_list_for_sso_from_pull_sources_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['attribute_aggregator.AttributeList']))
26

  
27
    def backwards(self, orm):
28
        # Rename model 'AttributeList' table
29
        db.rename_table('attribute_aggregator_attributelist', 'idp_attributelist', )
30
        db.send_create_signal('idp', ['AttributeList'])
31

  
32

  
33
        # Rename M2M table for field attributes on 'AttributeList'
34
        db.rename_table(
35
                db.shorten_name('attribute_aggregator_attributelist_attributes'),
36
                db.shorten_name('idp_attributelist_attributes'))
37

  
38
        # Deleting model 'AttributeItem' table
39
        db.rename_table('attribute_aggregator_attributeitem',
40
                'idp_attributeitem')
41
        db.send_create_signal('idp', ['AttributeItem'])
42

  
43

  
44
        # Changing field 'AttributePolicy.attribute_filter_for_sso_from_push_sources'
45
        db.alter_column(u'idp_attributepolicy', 'attribute_filter_for_sso_from_push_sources_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['idp.AttributeList']))
46

  
47
        # Changing field 'AttributePolicy.attribute_list_for_sso_from_pull_sources'
48
        db.alter_column(u'idp_attributepolicy', 'attribute_list_for_sso_from_pull_sources_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['idp.AttributeList']))
49

  
50
    models = {
51
        u'attribute_aggregator.attributeitem': {
52
            'Meta': {'object_name': 'AttributeItem'},
53
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
54
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
55
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
56
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
57
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
58
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
59
        },
60
        u'attribute_aggregator.attributelist': {
61
            'Meta': {'object_name': 'AttributeList'},
62
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
63
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
64
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
65
        },
66
        u'attribute_aggregator.attributesource': {
67
            'Meta': {'object_name': 'AttributeSource'},
68
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
70
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
71
        },
72
        u'idp.attributepolicy': {
73
            'Meta': {'object_name': 'AttributePolicy'},
74
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
75
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
76
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
77
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
78
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
79
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
80
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
83
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
84
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
85
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
86
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
87
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
88
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
89
        }
90
    }
91

  
92
    complete_apps = ['idp']
src/authentic2/saml/south_migrations/0001_initial.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5

  
6
from authentic2.compat import user_model_label
7

  
8

  
9
class Migration(SchemaMigration):
10

  
11
    def forwards(self, orm):
12
        
13
        # Adding model 'LibertyAttributeMap'
14
        db.create_table('saml_libertyattributemap', (
15
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
16
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=40)),
17
        ))
18
        db.send_create_signal('saml', ['LibertyAttributeMap'])
19

  
20
        # Adding model 'LibertyAttributeMapping'
21
        db.create_table('saml_libertyattributemapping', (
22
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
23
            ('source_attribute_name', self.gf('django.db.models.fields.CharField')(max_length=40)),
24
            ('attribute_value_format', self.gf('django.db.models.fields.URLField')(max_length=200)),
25
            ('attribute_name', self.gf('django.db.models.fields.CharField')(max_length=40)),
26
            ('map', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['saml.LibertyAttributeMap'])),
27
        ))
28
        db.send_create_signal('saml', ['LibertyAttributeMapping'])
29

  
30
        # Adding model 'LibertyProvider'
31
        db.create_table('saml_libertyprovider', (
32
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
33
            ('entity_id', self.gf('django.db.models.fields.URLField')(unique=True, max_length=200)),
34
            ('entity_id_sha1', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True)),
35
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=40, blank=True)),
36
            ('protocol_conformance', self.gf('django.db.models.fields.IntegerField')(max_length=10)),
37
            ('metadata', self.gf('django.db.models.fields.TextField')()),
38
            ('public_key', self.gf('django.db.models.fields.TextField')(blank=True)),
39
            ('ssl_certificate', self.gf('django.db.models.fields.TextField')(blank=True)),
40
            ('ca_cert_chain', self.gf('django.db.models.fields.TextField')(blank=True)),
41
        ))
42
        db.send_create_signal('saml', ['LibertyProvider'])
43

  
44
        # Adding model 'LibertyServiceProvider'
45
        db.create_table('saml_libertyserviceprovider', (
46
            ('liberty_provider', self.gf('django.db.models.fields.related.OneToOneField')(related_name='service_provider', unique=True, primary_key=True, to=orm['saml.LibertyProvider'])),
47
            ('enabled', self.gf('django.db.models.fields.BooleanField')(default=False)),
48
            ('prefered_assertion_consumer_binding', self.gf('django.db.models.fields.CharField')(default='meta', max_length=4)),
49
            ('encrypt_nameid', self.gf('django.db.models.fields.BooleanField')(default=False)),
50
            ('encrypt_assertion', self.gf('django.db.models.fields.BooleanField')(default=False)),
51
            ('authn_request_signed', self.gf('django.db.models.fields.BooleanField')(default=False)),
52
            ('idp_initiated_sso', self.gf('django.db.models.fields.BooleanField')(default=False)),
53
            ('attribute_map', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='service_providers', null=True, to=orm['saml.LibertyAttributeMap'])),
54
            ('default_name_id_format', self.gf('django.db.models.fields.CharField')(default='none', max_length=20)),
55
            ('accepted_name_id_format', self.gf('authentic2.saml.fields.MultiSelectField')(max_length=31, blank=True)),
56
            ('ask_user_consent', self.gf('django.db.models.fields.BooleanField')(default=False)),
57
        ))
58
        db.send_create_signal('saml', ['LibertyServiceProvider'])
59

  
60
        # Adding model 'LibertyIdentityProvider'
61
        db.create_table('saml_libertyidentityprovider', (
62
            ('liberty_provider', self.gf('django.db.models.fields.related.OneToOneField')(related_name='identity_provider', unique=True, primary_key=True, to=orm['saml.LibertyProvider'])),
63
            ('enabled', self.gf('django.db.models.fields.BooleanField')(default=False)),
64
            ('enable_following_policy', self.gf('django.db.models.fields.BooleanField')(default=False)),
65
            ('no_nameid_policy', self.gf('django.db.models.fields.BooleanField')(default=False)),
66
            ('requested_name_id_format', self.gf('django.db.models.fields.CharField')(default='none', max_length=20)),
67
            ('allow_create', self.gf('django.db.models.fields.BooleanField')(default=False)),
68
            ('enable_binding_for_sso_response', self.gf('django.db.models.fields.BooleanField')(default=False)),
69
            ('binding_for_sso_response', self.gf('django.db.models.fields.CharField')(default='urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact', max_length=60)),
70
            ('enable_http_method_for_slo_request', self.gf('django.db.models.fields.BooleanField')(default=False)),
71
            ('http_method_for_slo_request', self.gf('django.db.models.fields.IntegerField')(default=4, max_length=60)),
72
            ('enable_http_method_for_defederation_request', self.gf('django.db.models.fields.BooleanField')(default=False)),
73
            ('http_method_for_defederation_request', self.gf('django.db.models.fields.IntegerField')(default=5, max_length=60)),
74
            ('user_consent', self.gf('django.db.models.fields.CharField')(default='urn:oasis:names:tc:SAML:2.0:consent:current-implicit', max_length=60)),
75
            ('want_force_authn_request', self.gf('django.db.models.fields.BooleanField')(default=False)),
76
            ('want_is_passive_authn_request', self.gf('django.db.models.fields.BooleanField')(default=False)),
77
            ('want_authn_request_signed', self.gf('django.db.models.fields.BooleanField')(default=False)),
78
            ('attribute_map', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='identity_providers', null=True, to=orm['saml.LibertyAttributeMap'])),
79
        ))
80
        db.send_create_signal('saml', ['LibertyIdentityProvider'])
81

  
82
        # Adding model 'LibertyIdentityDump'
83
        db.create_table('saml_libertyidentitydump', (
84
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
85
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[user_model_label], unique=True)),
86
            ('identity_dump', self.gf('django.db.models.fields.TextField')(blank=True)),
87
        ))
88
        db.send_create_signal('saml', ['LibertyIdentityDump'])
89

  
90
        # Adding model 'LibertySessionDump'
91
        db.create_table('saml_libertysessiondump', (
92
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
93
            ('django_session_key', self.gf('django.db.models.fields.CharField')(max_length=40)),
94
            ('session_dump', self.gf('django.db.models.fields.TextField')(blank=True)),
95
        ))
96
        db.send_create_signal('saml', ['LibertySessionDump'])
97

  
98
        # Adding model 'LibertyManageDump'
99
        db.create_table('saml_libertymanagedump', (
100
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
101
            ('django_session_key', self.gf('django.db.models.fields.CharField')(max_length=40)),
102
            ('manage_dump', self.gf('django.db.models.fields.TextField')(blank=True)),
103
        ))
104
        db.send_create_signal('saml', ['LibertyManageDump'])
105

  
106
        # Adding model 'LibertyArtifact'
107
        db.create_table('saml_libertyartifact', (
108
            ('creation', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
109
            ('artifact', self.gf('django.db.models.fields.CharField')(max_length=40, primary_key=True)),
110
            ('content', self.gf('django.db.models.fields.TextField')()),
111
            ('django_session_key', self.gf('django.db.models.fields.CharField')(max_length=40)),
112
            ('provider_id', self.gf('django.db.models.fields.CharField')(max_length=80)),
113
        ))
114
        db.send_create_signal('saml', ['LibertyArtifact'])
115

  
116
        # Adding model 'LibertyAssertion'
117
        db.create_table('saml_libertyassertion', (
118
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
119
            ('assertion_id', self.gf('django.db.models.fields.CharField')(max_length=50)),
120
            ('provider_id', self.gf('django.db.models.fields.CharField')(max_length=80)),
121
            ('session_index', self.gf('django.db.models.fields.CharField')(max_length=80)),
122
            ('assertion', self.gf('django.db.models.fields.TextField')()),
123
            ('creation', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
124
        ))
125
        db.send_create_signal('saml', ['LibertyAssertion'])
126

  
127
        # Adding model 'LibertyFederation'
128
        db.create_table('saml_libertyfederation', (
129
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
130
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[user_model_label])),
131
            ('idp_id', self.gf('django.db.models.fields.CharField')(max_length=80)),
132
            ('sp_id', self.gf('django.db.models.fields.CharField')(max_length=80)),
133
            ('name_id_qualifier', self.gf('django.db.models.fields.CharField')(max_length=150, null=True, blank=True)),
134
            ('name_id_format', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
135
            ('name_id_content', self.gf('django.db.models.fields.CharField')(max_length=100)),
136
            ('name_id_sp_name_qualifier', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
137
            ('name_id_sp_provided_id', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
138
        ))
139
        db.send_create_signal('saml', ['LibertyFederation'])
140

  
141
        # Adding unique constraint on 'LibertyFederation', fields ['name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier']
142
        db.create_unique('saml_libertyfederation', ['name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'])
143

  
144
        # Adding model 'LibertySession'
145
        db.create_table('saml_libertysession', (
146
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
147
            ('django_session_key', self.gf('django.db.models.fields.CharField')(max_length=40)),
148
            ('session_index', self.gf('django.db.models.fields.CharField')(max_length=80)),
149
            ('provider_id', self.gf('django.db.models.fields.CharField')(max_length=80)),
150
            ('federation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['saml.LibertyFederation'], null=True)),
151
            ('assertion', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['saml.LibertyAssertion'], null=True)),
152
            ('name_id_qualifier', self.gf('django.db.models.fields.CharField')(max_length=150, null=True)),
153
            ('name_id_format', self.gf('django.db.models.fields.CharField')(max_length=100, null=True)),
154
            ('name_id_content', self.gf('django.db.models.fields.CharField')(max_length=100)),
155
            ('name_id_sp_name_qualifier', self.gf('django.db.models.fields.CharField')(max_length=100, null=True)),
156
            ('creation', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
157
        ))
158
        db.send_create_signal('saml', ['LibertySession'])
159

  
160
        # Adding model 'LibertySessionSP'
161
        db.create_table('saml_libertysessionsp', (
162
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
163
            ('django_session_key', self.gf('django.db.models.fields.CharField')(max_length=40)),
164
            ('session_index', self.gf('django.db.models.fields.CharField')(max_length=80)),
165
            ('federation', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['saml.LibertyFederation'])),
166
        ))
167
        db.send_create_signal('saml', ['LibertySessionSP'])
168

  
169
        # Adding model 'KeyValue'
170
        db.create_table('saml_keyvalue', (
171
            ('key', self.gf('django.db.models.fields.CharField')(max_length=40, primary_key=True)),
172
            ('value', self.gf('authentic2.saml.fields.PickledObjectField')()),
173
        ))
174
        db.send_create_signal('saml', ['KeyValue'])
175

  
176

  
177
    def backwards(self, orm):
178
        
179
        # Removing unique constraint on 'LibertyFederation', fields ['name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier']
180
        db.delete_unique('saml_libertyfederation', ['name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'])
181

  
182
        # Deleting model 'LibertyAttributeMap'
183
        db.delete_table('saml_libertyattributemap')
184

  
185
        # Deleting model 'LibertyAttributeMapping'
186
        db.delete_table('saml_libertyattributemapping')
187

  
188
        # Deleting model 'LibertyProvider'
189
        db.delete_table('saml_libertyprovider')
190

  
191
        # Deleting model 'LibertyServiceProvider'
192
        db.delete_table('saml_libertyserviceprovider')
193

  
194
        # Deleting model 'LibertyIdentityProvider'
195
        db.delete_table('saml_libertyidentityprovider')
196

  
197
        # Deleting model 'LibertyIdentityDump'
198
        db.delete_table('saml_libertyidentitydump')
199

  
200
        # Deleting model 'LibertySessionDump'
201
        db.delete_table('saml_libertysessiondump')
202

  
203
        # Deleting model 'LibertyManageDump'
204
        db.delete_table('saml_libertymanagedump')
205

  
206
        # Deleting model 'LibertyArtifact'
207
        db.delete_table('saml_libertyartifact')
208

  
209
        # Deleting model 'LibertyAssertion'
210
        db.delete_table('saml_libertyassertion')
211

  
212
        # Deleting model 'LibertyFederation'
213
        db.delete_table('saml_libertyfederation')
214

  
215
        # Deleting model 'LibertySession'
216
        db.delete_table('saml_libertysession')
217

  
218
        # Deleting model 'LibertySessionSP'
219
        db.delete_table('saml_libertysessionsp')
220

  
221
        # Deleting model 'KeyValue'
222
        db.delete_table('saml_keyvalue')
223

  
224

  
225
    models = {
226
        'auth.group': {
227
            'Meta': {'object_name': 'Group'},
228
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
229
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
230
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
231
        },
232
        'auth.permission': {
233
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
234
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
235
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
236
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
237
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
238
        },
239
        user_model_label: {
240
            'Meta': {'object_name': user_model_label.split('.')[-1]},
241
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
242
        },
243
        'contenttypes.contenttype': {
244
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
245
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
246
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
247
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
248
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
249
        },
250
        'saml.keyvalue': {
251
            'Meta': {'object_name': 'KeyValue'},
252
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
253
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
254
        },
255
        'saml.libertyartifact': {
256
            'Meta': {'object_name': 'LibertyArtifact'},
257
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
258
            'content': ('django.db.models.fields.TextField', [], {}),
259
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
260
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
261
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
262
        },
263
        'saml.libertyassertion': {
264
            'Meta': {'object_name': 'LibertyAssertion'},
265
            'assertion': ('django.db.models.fields.TextField', [], {}),
266
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
267
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
268
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
269
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
270
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
271
        },
272
        'saml.libertyattributemap': {
273
            'Meta': {'object_name': 'LibertyAttributeMap'},
274
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
275
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
276
        },
277
        'saml.libertyattributemapping': {
278
            'Meta': {'object_name': 'LibertyAttributeMapping'},
279
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
280
            'attribute_value_format': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
281
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
282
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAttributeMap']"}),
283
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
284
        },
285
        'saml.libertyfederation': {
286
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
287
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
288
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
289
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
290
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
291
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
292
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
293
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
294
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
295
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
296
        },
297
        'saml.libertyidentitydump': {
298
            'Meta': {'object_name': 'LibertyIdentityDump'},
299
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
300
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
301
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
302
        },
303
        'saml.libertyidentityprovider': {
304
            'Meta': {'object_name': 'LibertyIdentityProvider'},
305
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
306
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'identity_providers'", 'null': 'True', 'to': "orm['saml.LibertyAttributeMap']"}),
307
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '60'}),
308
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
309
            'enable_following_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
310
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
311
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
312
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
313
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '60'}),
314
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '60'}),
315
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
316
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
317
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
318
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '60'}),
319
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
320
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
321
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
322
        },
323
        'saml.libertymanagedump': {
324
            'Meta': {'object_name': 'LibertyManageDump'},
325
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
326
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
327
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
328
        },
329
        'saml.libertyprovider': {
330
            'Meta': {'object_name': 'LibertyProvider'},
331
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
332
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
333
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
334
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
335
            'metadata': ('django.db.models.fields.TextField', [], {}),
336
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40', 'blank': 'True'}),
337
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
338
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
339
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
340
        },
341
        'saml.libertyserviceprovider': {
342
            'Meta': {'object_name': 'LibertyServiceProvider'},
343
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
344
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
345
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'service_providers'", 'null': 'True', 'to': "orm['saml.LibertyAttributeMap']"}),
346
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
347
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
348
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
349
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
350
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
351
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
352
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
353
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
354
        },
355
        'saml.libertysession': {
356
            'Meta': {'object_name': 'LibertySession'},
357
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
358
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
359
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
360
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
361
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
362
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
363
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
364
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
365
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
366
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
367
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
368
        },
369
        'saml.libertysessiondump': {
370
            'Meta': {'object_name': 'LibertySessionDump'},
371
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
372
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
373
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
374
        },
375
        'saml.libertysessionsp': {
376
            'Meta': {'object_name': 'LibertySessionSP'},
377
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
378
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
379
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
380
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
381
        }
382
    }
383

  
384
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0002_auto__add_field_libertyprovider_federation_source.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5

  
6
from authentic2.compat import user_model_label
7

  
8

  
9
class Migration(SchemaMigration):
10

  
11
    def forwards(self, orm):
12
        
13
        # Adding field 'LibertyProvider.federation_source'
14
        db.add_column('saml_libertyprovider', 'federation_source', self.gf('django.db.models.fields.CharField')(max_length=64, null=True, blank=True), keep_default=False)
15

  
16

  
17
    def backwards(self, orm):
18
        
19
        # Deleting field 'LibertyProvider.federation_source'
20
        db.delete_column('saml_libertyprovider', 'federation_source')
21

  
22

  
23
    models = {
24
        'auth.group': {
25
            'Meta': {'object_name': 'Group'},
26
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
28
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
29
        },
30
        'auth.permission': {
31
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
32
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
33
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
34
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
36
        },
37
        user_model_label: {
38
            'Meta': {'object_name': user_model_label.split('.')[-1]},
39
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40
        },
41
        'contenttypes.contenttype': {
42
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
43
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
44
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
46
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
47
        },
48
        'saml.keyvalue': {
49
            'Meta': {'object_name': 'KeyValue'},
50
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
51
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
52
        },
53
        'saml.libertyartifact': {
54
            'Meta': {'object_name': 'LibertyArtifact'},
55
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
56
            'content': ('django.db.models.fields.TextField', [], {}),
57
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
58
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
59
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
60
        },
61
        'saml.libertyassertion': {
62
            'Meta': {'object_name': 'LibertyAssertion'},
63
            'assertion': ('django.db.models.fields.TextField', [], {}),
64
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
65
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
66
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
68
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
69
        },
70
        'saml.libertyattributemap': {
71
            'Meta': {'object_name': 'LibertyAttributeMap'},
72
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
73
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
74
        },
75
        'saml.libertyattributemapping': {
76
            'Meta': {'object_name': 'LibertyAttributeMapping'},
77
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
78
            'attribute_value_format': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
79
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
80
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAttributeMap']"}),
81
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
82
        },
83
        'saml.libertyfederation': {
84
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
85
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
86
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
87
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
88
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
89
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
90
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
91
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
92
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
93
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
94
        },
95
        'saml.libertyidentitydump': {
96
            'Meta': {'object_name': 'LibertyIdentityDump'},
97
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
98
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
99
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
100
        },
101
        'saml.libertyidentityprovider': {
102
            'Meta': {'object_name': 'LibertyIdentityProvider'},
103
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'identity_providers'", 'null': 'True', 'to': "orm['saml.LibertyAttributeMap']"}),
105
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '60'}),
106
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
107
            'enable_following_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
108
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '60'}),
112
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '60'}),
113
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
114
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
115
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
116
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '60'}),
117
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
120
        },
121
        'saml.libertymanagedump': {
122
            'Meta': {'object_name': 'LibertyManageDump'},
123
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
124
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
125
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
126
        },
127
        'saml.libertyprovider': {
128
            'Meta': {'object_name': 'LibertyProvider'},
129
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
130
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
131
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
132
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
133
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
134
            'metadata': ('django.db.models.fields.TextField', [], {}),
135
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40', 'blank': 'True'}),
136
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
137
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
138
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
139
        },
140
        'saml.libertyserviceprovider': {
141
            'Meta': {'object_name': 'LibertyServiceProvider'},
142
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
143
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
144
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'service_providers'", 'null': 'True', 'to': "orm['saml.LibertyAttributeMap']"}),
145
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
146
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
147
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
148
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
149
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
150
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
151
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
152
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
153
        },
154
        'saml.libertysession': {
155
            'Meta': {'object_name': 'LibertySession'},
156
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
157
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
158
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
159
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
160
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
161
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
162
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
163
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
164
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
165
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
166
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
167
        },
168
        'saml.libertysessiondump': {
169
            'Meta': {'object_name': 'LibertySessionDump'},
170
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
171
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
172
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
173
        },
174
        'saml.libertysessionsp': {
175
            'Meta': {'object_name': 'LibertySessionSP'},
176
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
177
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
178
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
179
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
180
        }
181
    }
182

  
183
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0003_auto__add_idpoptionssppolicy__add_authorizationattributemapping__add_a.py
1
# encoding: utf-8
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5

  
6
from authentic2.compat import user_model_label
7

  
8

  
9
class Migration(SchemaMigration):
10
    
11
    def forwards(self, orm):
12
        
13
        # Adding model 'IdPOptionsSPPolicy'
14
        db.create_table('saml_idpoptionssppolicy', (
15
            ('http_method_for_slo_request', self.gf('django.db.models.fields.IntegerField')(default=4, max_length=60)),
16
            ('enable_http_method_for_defederation_request', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
17
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=80)),
18
            ('http_method_for_defederation_request', self.gf('django.db.models.fields.IntegerField')(default=5, max_length=60)),
19
            ('binding_for_sso_response', self.gf('django.db.models.fields.CharField')(default='urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact', max_length=60)),
20
            ('enabled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
21
            ('allow_create', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
22
            ('want_authn_request_signed', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
23
            ('enable_http_method_for_slo_request', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
24
            ('requested_name_id_format', self.gf('django.db.models.fields.CharField')(default='none', max_length=20)),
25
            ('user_consent', self.gf('django.db.models.fields.CharField')(default='urn:oasis:names:tc:SAML:2.0:consent:current-implicit', max_length=60)),
26
            ('no_nameid_policy', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
27
            ('transient_is_persistent', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
28
            ('want_is_passive_authn_request', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
29
            ('enable_binding_for_sso_response', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
30
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
31
            ('want_force_authn_request', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
32
        ))
33
        db.send_create_signal('saml', ['IdPOptionsSPPolicy'])
34

  
35
        # Adding model 'AuthorizationAttributeMapping'
36
        db.create_table('saml_authorizationattributemapping', (
37
            ('map', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['saml.AuthorizationAttributeMap'])),
38
            ('attribute_name', self.gf('django.db.models.fields.CharField')(max_length=40)),
39
            ('source_attribute_name', self.gf('django.db.models.fields.CharField')(max_length=40)),
40
            ('attribute_value_format', self.gf('django.db.models.fields.CharField')(max_length=40)),
41
            ('attribute_value', self.gf('django.db.models.fields.CharField')(max_length=40)),
42
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
43
        ))
44
        db.send_create_signal('saml', ['AuthorizationAttributeMapping'])
45

  
46
        # Adding model 'AuthorizationSPPolicy'
47
        db.create_table('saml_authorizationsppolicy', (
48
            ('ext_function', self.gf('django.db.models.fields.CharField')(max_length=80, blank=True)),
49
            ('enabled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
50
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
51
            ('attribute_map', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='authorization_attributes', null=True, to=orm['saml.AuthorizationAttributeMap'])),
52
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=80)),
53
        ))
54
        db.send_create_signal('saml', ['AuthorizationSPPolicy'])
55

  
56
        # Adding model 'AuthorizationAttributeMap'
57
        db.create_table('saml_authorizationattributemap', (
58
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
59
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=40)),
60
        ))
61
        db.send_create_signal('saml', ['AuthorizationAttributeMap'])
62

  
63
        # Changing field 'LibertyServiceProvider.ask_user_consent'
64
        db.alter_column('saml_libertyserviceprovider', 'ask_user_consent', self.gf('django.db.models.fields.BooleanField')(blank=True))
65

  
66
        # Changing field 'LibertyServiceProvider.encrypt_nameid'
67
        db.alter_column('saml_libertyserviceprovider', 'encrypt_nameid', self.gf('django.db.models.fields.BooleanField')(blank=True))
68

  
69
        # Changing field 'LibertyServiceProvider.enabled'
70
        db.alter_column('saml_libertyserviceprovider', 'enabled', self.gf('django.db.models.fields.BooleanField')(blank=True))
71

  
72
        # Changing field 'LibertyServiceProvider.authn_request_signed'
73
        db.alter_column('saml_libertyserviceprovider', 'authn_request_signed', self.gf('django.db.models.fields.BooleanField')(blank=True))
74

  
75
        # Changing field 'LibertyServiceProvider.idp_initiated_sso'
76
        db.alter_column('saml_libertyserviceprovider', 'idp_initiated_sso', self.gf('django.db.models.fields.BooleanField')(blank=True))
77

  
78
        # Changing field 'LibertyServiceProvider.encrypt_assertion'
79
        db.alter_column('saml_libertyserviceprovider', 'encrypt_assertion', self.gf('django.db.models.fields.BooleanField')(blank=True))
80

  
81
        # Deleting field 'LibertyIdentityProvider.enable_http_method_for_defederation_request'
82
        db.delete_column('saml_libertyidentityprovider', 'enable_http_method_for_defederation_request')
83

  
84
        # Deleting field 'LibertyIdentityProvider.want_force_authn_request'
85
        db.delete_column('saml_libertyidentityprovider', 'want_force_authn_request')
86

  
87
        # Deleting field 'LibertyIdentityProvider.http_method_for_defederation_request'
88
        db.delete_column('saml_libertyidentityprovider', 'http_method_for_defederation_request')
89

  
90
        # Deleting field 'LibertyIdentityProvider.binding_for_sso_response'
91
        db.delete_column('saml_libertyidentityprovider', 'binding_for_sso_response')
92

  
93
        # Deleting field 'LibertyIdentityProvider.allow_create'
94
        db.delete_column('saml_libertyidentityprovider', 'allow_create')
95

  
96
        # Deleting field 'LibertyIdentityProvider.enable_http_method_for_slo_request'
97
        db.delete_column('saml_libertyidentityprovider', 'enable_http_method_for_slo_request')
98

  
99
        # Deleting field 'LibertyIdentityProvider.requested_name_id_format'
100
        db.delete_column('saml_libertyidentityprovider', 'requested_name_id_format')
101

  
102
        # Deleting field 'LibertyIdentityProvider.attribute_map'
103
        db.delete_column('saml_libertyidentityprovider', 'attribute_map_id')
104

  
105
        # Deleting field 'LibertyIdentityProvider.user_consent'
106
        db.delete_column('saml_libertyidentityprovider', 'user_consent')
107

  
108
        # Deleting field 'LibertyIdentityProvider.no_nameid_policy'
109
        db.delete_column('saml_libertyidentityprovider', 'no_nameid_policy')
110

  
111
        # Deleting field 'LibertyIdentityProvider.http_method_for_slo_request'
112
        db.delete_column('saml_libertyidentityprovider', 'http_method_for_slo_request')
113

  
114
        # Deleting field 'LibertyIdentityProvider.want_authn_request_signed'
115
        db.delete_column('saml_libertyidentityprovider', 'want_authn_request_signed')
116

  
117
        # Deleting field 'LibertyIdentityProvider.want_is_passive_authn_request'
118
        db.delete_column('saml_libertyidentityprovider', 'want_is_passive_authn_request')
119

  
120
        # Deleting field 'LibertyIdentityProvider.enable_binding_for_sso_response'
121
        db.delete_column('saml_libertyidentityprovider', 'enable_binding_for_sso_response')
122

  
123
        # Deleting field 'LibertyIdentityProvider.enable_following_policy'
124
        db.delete_column('saml_libertyidentityprovider', 'enable_following_policy')
125

  
126
        # Adding field 'LibertyIdentityProvider.idp_options_policy'
127
        db.add_column('saml_libertyidentityprovider', 'idp_options_policy', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='idp_options_policy', null=True, to=orm['saml.IdPOptionsSPPolicy']), keep_default=False)
128

  
129
        # Adding field 'LibertyIdentityProvider.enable_following_idp_options_policy'
130
        db.add_column('saml_libertyidentityprovider', 'enable_following_idp_options_policy', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
131

  
132
        # Adding field 'LibertyIdentityProvider.enable_following_authorization_policy'
133
        db.add_column('saml_libertyidentityprovider', 'enable_following_authorization_policy', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
134

  
135
        # Adding field 'LibertyIdentityProvider.authorization_policy'
136
        db.add_column('saml_libertyidentityprovider', 'authorization_policy', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='authorization_policy', null=True, to=orm['saml.AuthorizationSPPolicy']), keep_default=False)
137

  
138
        # Changing field 'LibertyIdentityProvider.enabled'
139
        db.alter_column('saml_libertyidentityprovider', 'enabled', self.gf('django.db.models.fields.BooleanField')(blank=True))
140
    
141
    
142
    def backwards(self, orm):
143
        
144
        # Deleting model 'IdPOptionsSPPolicy'
145
        db.delete_table('saml_idpoptionssppolicy')
146

  
147
        # Deleting model 'AuthorizationAttributeMapping'
148
        db.delete_table('saml_authorizationattributemapping')
149

  
150
        # Deleting model 'AuthorizationSPPolicy'
151
        db.delete_table('saml_authorizationsppolicy')
152

  
153
        # Deleting model 'AuthorizationAttributeMap'
154
        db.delete_table('saml_authorizationattributemap')
155

  
156
        # Changing field 'LibertyServiceProvider.ask_user_consent'
157
        db.alter_column('saml_libertyserviceprovider', 'ask_user_consent', self.gf('django.db.models.fields.BooleanField')())
158

  
159
        # Changing field 'LibertyServiceProvider.encrypt_nameid'
160
        db.alter_column('saml_libertyserviceprovider', 'encrypt_nameid', self.gf('django.db.models.fields.BooleanField')())
161

  
162
        # Changing field 'LibertyServiceProvider.enabled'
163
        db.alter_column('saml_libertyserviceprovider', 'enabled', self.gf('django.db.models.fields.BooleanField')())
164

  
165
        # Changing field 'LibertyServiceProvider.authn_request_signed'
166
        db.alter_column('saml_libertyserviceprovider', 'authn_request_signed', self.gf('django.db.models.fields.BooleanField')())
167

  
168
        # Changing field 'LibertyServiceProvider.idp_initiated_sso'
169
        db.alter_column('saml_libertyserviceprovider', 'idp_initiated_sso', self.gf('django.db.models.fields.BooleanField')())
170

  
171
        # Changing field 'LibertyServiceProvider.encrypt_assertion'
172
        db.alter_column('saml_libertyserviceprovider', 'encrypt_assertion', self.gf('django.db.models.fields.BooleanField')())
173

  
174
        # Adding field 'LibertyIdentityProvider.enable_http_method_for_defederation_request'
175
        db.add_column('saml_libertyidentityprovider', 'enable_http_method_for_defederation_request', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
176

  
177
        # Adding field 'LibertyIdentityProvider.want_force_authn_request'
178
        db.add_column('saml_libertyidentityprovider', 'want_force_authn_request', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
179

  
180
        # Adding field 'LibertyIdentityProvider.http_method_for_defederation_request'
181
        db.add_column('saml_libertyidentityprovider', 'http_method_for_defederation_request', self.gf('django.db.models.fields.IntegerField')(default=5, max_length=60), keep_default=False)
182

  
183
        # Adding field 'LibertyIdentityProvider.binding_for_sso_response'
184
        db.add_column('saml_libertyidentityprovider', 'binding_for_sso_response', self.gf('django.db.models.fields.CharField')(default='urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact', max_length=60), keep_default=False)
185

  
186
        # Adding field 'LibertyIdentityProvider.allow_create'
187
        db.add_column('saml_libertyidentityprovider', 'allow_create', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
188

  
189
        # Adding field 'LibertyIdentityProvider.enable_http_method_for_slo_request'
190
        db.add_column('saml_libertyidentityprovider', 'enable_http_method_for_slo_request', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
191

  
192
        # Adding field 'LibertyIdentityProvider.requested_name_id_format'
193
        db.add_column('saml_libertyidentityprovider', 'requested_name_id_format', self.gf('django.db.models.fields.CharField')(default='none', max_length=20), keep_default=False)
194

  
195
        # Adding field 'LibertyIdentityProvider.attribute_map'
196
        db.add_column('saml_libertyidentityprovider', 'attribute_map', self.gf('django.db.models.fields.related.ForeignKey')(related_name='identity_providers', null=True, to=orm['saml.LibertyAttributeMap'], blank=True), keep_default=False)
197

  
198
        # Adding field 'LibertyIdentityProvider.user_consent'
199
        db.add_column('saml_libertyidentityprovider', 'user_consent', self.gf('django.db.models.fields.CharField')(default='urn:oasis:names:tc:SAML:2.0:consent:current-implicit', max_length=60), keep_default=False)
200

  
201
        # Adding field 'LibertyIdentityProvider.no_nameid_policy'
202
        db.add_column('saml_libertyidentityprovider', 'no_nameid_policy', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
203

  
204
        # Adding field 'LibertyIdentityProvider.http_method_for_slo_request'
205
        db.add_column('saml_libertyidentityprovider', 'http_method_for_slo_request', self.gf('django.db.models.fields.IntegerField')(default=4, max_length=60), keep_default=False)
206

  
207
        # Adding field 'LibertyIdentityProvider.want_authn_request_signed'
208
        db.add_column('saml_libertyidentityprovider', 'want_authn_request_signed', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
209

  
210
        # Adding field 'LibertyIdentityProvider.want_is_passive_authn_request'
211
        db.add_column('saml_libertyidentityprovider', 'want_is_passive_authn_request', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
212

  
213
        # Adding field 'LibertyIdentityProvider.enable_binding_for_sso_response'
214
        db.add_column('saml_libertyidentityprovider', 'enable_binding_for_sso_response', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
215

  
216
        # Adding field 'LibertyIdentityProvider.enable_following_policy'
217
        db.add_column('saml_libertyidentityprovider', 'enable_following_policy', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
218

  
219
        # Deleting field 'LibertyIdentityProvider.idp_options_policy'
220
        db.delete_column('saml_libertyidentityprovider', 'idp_options_policy_id')
221

  
222
        # Deleting field 'LibertyIdentityProvider.enable_following_idp_options_policy'
223
        db.delete_column('saml_libertyidentityprovider', 'enable_following_idp_options_policy')
224

  
225
        # Deleting field 'LibertyIdentityProvider.enable_following_authorization_policy'
226
        db.delete_column('saml_libertyidentityprovider', 'enable_following_authorization_policy')
227

  
228
        # Deleting field 'LibertyIdentityProvider.authorization_policy'
229
        db.delete_column('saml_libertyidentityprovider', 'authorization_policy_id')
230

  
231
        # Changing field 'LibertyIdentityProvider.enabled'
232
        db.alter_column('saml_libertyidentityprovider', 'enabled', self.gf('django.db.models.fields.BooleanField')())
233
    
234
    
235
    models = {
236
        'auth.group': {
237
            'Meta': {'object_name': 'Group'},
238
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
239
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
240
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
241
        },
242
        'auth.permission': {
243
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
244
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
245
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
246
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
247
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
248
        },
249
        user_model_label: {
250
            'Meta': {'object_name': user_model_label.split('.')[-1]},
251
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
252
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
253
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
254
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
255
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
256
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
257
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
258
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
259
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
260
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
261
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
262
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
263
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
264
        },
265
        'contenttypes.contenttype': {
266
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
267
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
268
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
269
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
270
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
271
        },
272
        'saml.authorizationattributemap': {
273
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
274
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
275
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
276
        },
277
        'saml.authorizationattributemapping': {
278
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
279
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
280
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
281
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
282
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
283
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
284
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
285
        },
286
        'saml.authorizationsppolicy': {
287
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
288
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
289
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
290
            'ext_function': ('django.db.models.fields.CharField', [], {'max_length': '80', 'blank': 'True'}),
291
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
292
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
293
        },
294
        'saml.idpoptionssppolicy': {
295
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
296
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
297
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '60'}),
298
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
299
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
300
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
301
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
302
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '60'}),
303
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '60'}),
304
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
305
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
306
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
307
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
308
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
309
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '60'}),
310
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
311
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
312
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
313
        },
314
        'saml.keyvalue': {
315
            'Meta': {'object_name': 'KeyValue'},
316
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
317
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
318
        },
319
        'saml.libertyartifact': {
320
            'Meta': {'object_name': 'LibertyArtifact'},
321
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
322
            'content': ('django.db.models.fields.TextField', [], {}),
323
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
324
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
325
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
326
        },
327
        'saml.libertyassertion': {
328
            'Meta': {'object_name': 'LibertyAssertion'},
329
            'assertion': ('django.db.models.fields.TextField', [], {}),
330
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
331
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
332
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
333
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
334
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
335
        },
336
        'saml.libertyattributemap': {
337
            'Meta': {'object_name': 'LibertyAttributeMap'},
338
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
339
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
340
        },
341
        'saml.libertyattributemapping': {
342
            'Meta': {'object_name': 'LibertyAttributeMapping'},
343
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
344
            'attribute_value_format': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
345
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
346
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAttributeMap']"}),
347
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
348
        },
349
        'saml.libertyfederation': {
350
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
351
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
352
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
353
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
354
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
355
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
356
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
357
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
358
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
359
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
360
        },
361
        'saml.libertyidentitydump': {
362
            'Meta': {'object_name': 'LibertyIdentityDump'},
363
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
364
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
365
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
366
        },
367
        'saml.libertyidentityprovider': {
368
            'Meta': {'object_name': 'LibertyIdentityProvider'},
369
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
370
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
371
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
372
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
373
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
374
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
375
        },
376
        'saml.libertymanagedump': {
377
            'Meta': {'object_name': 'LibertyManageDump'},
378
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
379
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
380
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
381
        },
382
        'saml.libertyprovider': {
383
            'Meta': {'object_name': 'LibertyProvider'},
384
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
385
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
386
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
387
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
388
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
389
            'metadata': ('django.db.models.fields.TextField', [], {}),
390
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40', 'blank': 'True'}),
391
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
392
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
393
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
394
        },
395
        'saml.libertyserviceprovider': {
396
            'Meta': {'object_name': 'LibertyServiceProvider'},
397
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
398
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
399
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'service_providers'", 'null': 'True', 'to': "orm['saml.LibertyAttributeMap']"}),
400
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
401
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
402
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
403
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
404
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
405
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
406
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
407
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
408
        },
409
        'saml.libertysession': {
410
            'Meta': {'object_name': 'LibertySession'},
411
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
412
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
413
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
414
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
415
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
416
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
417
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
418
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
419
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
420
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
421
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
422
        },
423
        'saml.libertysessiondump': {
424
            'Meta': {'object_name': 'LibertySessionDump'},
425
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
426
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
427
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
428
        },
429
        'saml.libertysessionsp': {
430
            'Meta': {'object_name': 'LibertySessionSP'},
431
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
432
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
433
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
434
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
435
        }
436
    }
437
    
438
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0004_auto__chg_field_authorizationattributemapping_source_attribute_name__c.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5

  
6

  
7
from authentic2.compat import user_model_label
8

  
9

  
10
class Migration(SchemaMigration):
11
    
12
    def forwards(self, orm):
13
        
14
        # Changing field 'AuthorizationAttributeMapping.source_attribute_name'
15
        db.alter_column('saml_authorizationattributemapping', 'source_attribute_name', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True))
16

  
17
        # Changing field 'AuthorizationAttributeMapping.attribute_value_format'
18
        db.alter_column('saml_authorizationattributemapping', 'attribute_value_format', self.gf('django.db.models.fields.CharField')(max_length=40, blank=True))
19

  
20
        # Deleting field 'AuthorizationSPPolicy.ext_function'
21
        db.delete_column('saml_authorizationsppolicy', 'ext_function')
22

  
23
        # Adding field 'AuthorizationSPPolicy.default_denial_message'
24
        db.add_column('saml_authorizationsppolicy', 'default_denial_message', self.gf('django.db.models.fields.CharField')(default=u'You are not authorized to access the service.', max_length=80), keep_default=False)
25

  
26
        # Changing field 'LibertyProvider.name'
27
        db.alter_column('saml_libertyprovider', 'name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=140, blank=True))
28
    
29
    
30
    def backwards(self, orm):
31
        
32
        # Changing field 'AuthorizationAttributeMapping.source_attribute_name'
33
        db.alter_column('saml_authorizationattributemapping', 'source_attribute_name', self.gf('django.db.models.fields.CharField')(max_length=40))
34

  
35
        # Changing field 'AuthorizationAttributeMapping.attribute_value_format'
36
        db.alter_column('saml_authorizationattributemapping', 'attribute_value_format', self.gf('django.db.models.fields.CharField')(max_length=40))
37

  
38
        # Adding field 'AuthorizationSPPolicy.ext_function'
39
        db.add_column('saml_authorizationsppolicy', 'ext_function', self.gf('django.db.models.fields.CharField')(default=datetime.date(2011, 2, 3), max_length=80, blank=True), keep_default=False)
40

  
41
        # Deleting field 'AuthorizationSPPolicy.default_denial_message'
42
        db.delete_column('saml_authorizationsppolicy', 'default_denial_message')
43

  
44
        # Changing field 'LibertyProvider.name'
45
        db.alter_column('saml_libertyprovider', 'name', self.gf('django.db.models.fields.CharField')(max_length=40, unique=True, blank=True))
46
    
47
    
48
    models = {
49
        'auth.group': {
50
            'Meta': {'object_name': 'Group'},
51
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
52
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
53
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
54
        },
55
        'auth.permission': {
56
            'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
57
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
58
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
59
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
61
        },
62
        user_model_label: {
63
            'Meta': {'object_name': user_model_label.split('.')[-1]},
64
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65
        },
66
        'contenttypes.contenttype': {
67
            'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
68
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
69
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
71
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
72
        },
73
        'saml.authorizationattributemap': {
74
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
75
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
77
        },
78
        'saml.authorizationattributemapping': {
79
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
80
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
81
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
82
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
83
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
84
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
85
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
86
        },
87
        'saml.authorizationsppolicy': {
88
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
89
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
90
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
91
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
92
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
93
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
94
        },
95
        'saml.idpoptionssppolicy': {
96
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
97
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
98
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '60'}),
99
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
100
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
101
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
102
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
103
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '60'}),
104
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '60'}),
105
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
106
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
107
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
108
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
109
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
110
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '60'}),
111
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
112
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
113
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
114
        },
115
        'saml.keyvalue': {
116
            'Meta': {'object_name': 'KeyValue'},
117
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
118
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
119
        },
120
        'saml.libertyartifact': {
121
            'Meta': {'object_name': 'LibertyArtifact'},
122
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
123
            'content': ('django.db.models.fields.TextField', [], {}),
124
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
125
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
126
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
127
        },
128
        'saml.libertyassertion': {
129
            'Meta': {'object_name': 'LibertyAssertion'},
130
            'assertion': ('django.db.models.fields.TextField', [], {}),
131
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
132
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
133
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
134
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
135
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
136
        },
137
        'saml.libertyattributemap': {
138
            'Meta': {'object_name': 'LibertyAttributeMap'},
139
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
140
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
141
        },
142
        'saml.libertyattributemapping': {
143
            'Meta': {'object_name': 'LibertyAttributeMapping'},
144
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
145
            'attribute_value_format': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
146
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
147
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAttributeMap']"}),
148
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
149
        },
150
        'saml.libertyfederation': {
151
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
152
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
153
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
154
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
155
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
156
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
157
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
158
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
159
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
160
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
161
        },
162
        'saml.libertyidentitydump': {
163
            'Meta': {'object_name': 'LibertyIdentityDump'},
164
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
165
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
166
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
167
        },
168
        'saml.libertyidentityprovider': {
169
            'Meta': {'object_name': 'LibertyIdentityProvider'},
170
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
171
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
172
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
173
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
174
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
175
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
176
        },
177
        'saml.libertymanagedump': {
178
            'Meta': {'object_name': 'LibertyManageDump'},
179
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
180
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
181
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
182
        },
183
        'saml.libertyprovider': {
184
            'Meta': {'object_name': 'LibertyProvider'},
185
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
186
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
187
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
188
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
189
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
190
            'metadata': ('django.db.models.fields.TextField', [], {}),
191
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '140', 'blank': 'True'}),
192
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
193
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
194
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
195
        },
196
        'saml.libertyserviceprovider': {
197
            'Meta': {'object_name': 'LibertyServiceProvider'},
198
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
199
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
200
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'service_providers'", 'null': 'True', 'to': "orm['saml.LibertyAttributeMap']"}),
201
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
202
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
203
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
204
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
205
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
206
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
207
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
208
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
209
        },
210
        'saml.libertysession': {
211
            'Meta': {'object_name': 'LibertySession'},
212
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
213
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
214
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
215
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
216
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
217
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
218
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
219
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
220
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
221
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
222
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
223
        },
224
        'saml.libertysessiondump': {
225
            'Meta': {'object_name': 'LibertySessionDump'},
226
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
227
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
228
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
229
        },
230
        'saml.libertysessionsp': {
231
            'Meta': {'object_name': 'LibertySessionSP'},
232
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
233
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
234
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
235
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
236
        }
237
    }
238
    
239
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0005_auto__del_unique_libertyprovider_name.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11

  
12
class Migration(SchemaMigration):
13

  
14
    def forwards(self, orm):
15
        
16
        # Removing unique constraint on 'LibertyProvider', fields ['name']
17
        db.delete_unique('saml_libertyprovider', ['name'])
18

  
19

  
20
    def backwards(self, orm):
21
        
22
        # Adding unique constraint on 'LibertyProvider', fields ['name']
23
        db.create_unique('saml_libertyprovider', ['name'])
24

  
25

  
26
    models = {
27
        'auth.group': {
28
            'Meta': {'object_name': 'Group'},
29
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
31
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
32
        },
33
        'auth.permission': {
34
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
35
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
36
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
37
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
39
        },
40
        user_model_label: {
41
            'Meta': {'object_name': user_model_label.split('.')[-1]},
42
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43
        },
44
        'contenttypes.contenttype': {
45
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
46
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
47
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
49
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
50
        },
51
        'saml.authorizationattributemap': {
52
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
53
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
55
        },
56
        'saml.authorizationattributemapping': {
57
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
58
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
59
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
60
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
61
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
62
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
63
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
64
        },
65
        'saml.authorizationsppolicy': {
66
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
67
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
68
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
69
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
71
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
72
        },
73
        'saml.idpoptionssppolicy': {
74
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
75
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '60'}),
77
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
78
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
79
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
80
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '60'}),
82
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '60'}),
83
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
84
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
85
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
86
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
87
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
88
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '60'}),
89
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
90
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
91
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
92
        },
93
        'saml.keyvalue': {
94
            'Meta': {'object_name': 'KeyValue'},
95
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
96
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
97
        },
98
        'saml.libertyartifact': {
99
            'Meta': {'object_name': 'LibertyArtifact'},
100
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
101
            'content': ('django.db.models.fields.TextField', [], {}),
102
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
103
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
104
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
105
        },
106
        'saml.libertyassertion': {
107
            'Meta': {'object_name': 'LibertyAssertion'},
108
            'assertion': ('django.db.models.fields.TextField', [], {}),
109
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
110
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
111
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
113
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
114
        },
115
        'saml.libertyattributemap': {
116
            'Meta': {'object_name': 'LibertyAttributeMap'},
117
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
118
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
119
        },
120
        'saml.libertyattributemapping': {
121
            'Meta': {'object_name': 'LibertyAttributeMapping'},
122
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
123
            'attribute_value_format': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
124
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
125
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAttributeMap']"}),
126
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
127
        },
128
        'saml.libertyfederation': {
129
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
130
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
131
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
132
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
133
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
134
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
135
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
136
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
137
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
138
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
139
        },
140
        'saml.libertyidentitydump': {
141
            'Meta': {'object_name': 'LibertyIdentityDump'},
142
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
143
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
144
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
145
        },
146
        'saml.libertyidentityprovider': {
147
            'Meta': {'object_name': 'LibertyIdentityProvider'},
148
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
149
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
150
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
151
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
152
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
153
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
154
        },
155
        'saml.libertymanagedump': {
156
            'Meta': {'object_name': 'LibertyManageDump'},
157
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
158
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
159
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
160
        },
161
        'saml.libertyprovider': {
162
            'Meta': {'object_name': 'LibertyProvider'},
163
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
164
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
165
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
166
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
167
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
168
            'metadata': ('django.db.models.fields.TextField', [], {}),
169
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
170
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
171
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
172
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
173
        },
174
        'saml.libertyserviceprovider': {
175
            'Meta': {'object_name': 'LibertyServiceProvider'},
176
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
177
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
178
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'service_providers'", 'null': 'True', 'to': "orm['saml.LibertyAttributeMap']"}),
179
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
180
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
181
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
182
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
183
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
184
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
185
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
186
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
187
        },
188
        'saml.libertysession': {
189
            'Meta': {'object_name': 'LibertySession'},
190
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
191
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
192
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
193
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
194
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
195
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
196
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
197
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
198
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
199
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
200
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
201
        },
202
        'saml.libertysessiondump': {
203
            'Meta': {'object_name': 'LibertySessionDump'},
204
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
205
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
206
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
207
        },
208
        'saml.libertysessionsp': {
209
            'Meta': {'object_name': 'LibertySessionSP'},
210
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
211
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
212
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
213
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
214
        }
215
    }
216

  
217
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0006_auto__add_field_libertysessiondump_kind.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11

  
12
class Migration(SchemaMigration):
13

  
14
    def forwards(self, orm):
15
        
16
        # Adding field 'LibertySessionDump.kind'
17
        db.add_column('saml_libertysessiondump', 'kind', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
18

  
19

  
20
    def backwards(self, orm):
21
        
22
        # Deleting field 'LibertySessionDump.kind'
23
        db.delete_column('saml_libertysessiondump', 'kind')
24

  
25

  
26
    models = {
27
        'auth.group': {
28
            'Meta': {'object_name': 'Group'},
29
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
30
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
31
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
32
        },
33
        'auth.permission': {
34
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
35
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
36
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
37
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
39
        },
40
        user_model_label: {
41
            'Meta': {'object_name': user_model_label.split('.')[-1]},
42
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43
        },
44
        'contenttypes.contenttype': {
45
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
46
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
47
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
49
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
50
        },
51
        'saml.authorizationattributemap': {
52
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
53
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
55
        },
56
        'saml.authorizationattributemapping': {
57
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
58
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
59
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
60
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
61
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
62
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
63
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
64
        },
65
        'saml.authorizationsppolicy': {
66
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
67
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
68
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
69
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
71
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
72
        },
73
        'saml.idpoptionssppolicy': {
74
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
75
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '60'}),
77
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
78
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
79
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
80
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '60'}),
82
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '60'}),
83
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
84
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
85
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
86
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
87
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
88
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '60'}),
89
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
90
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
91
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
92
        },
93
        'saml.keyvalue': {
94
            'Meta': {'object_name': 'KeyValue'},
95
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
96
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
97
        },
98
        'saml.libertyartifact': {
99
            'Meta': {'object_name': 'LibertyArtifact'},
100
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
101
            'content': ('django.db.models.fields.TextField', [], {}),
102
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
103
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
104
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
105
        },
106
        'saml.libertyassertion': {
107
            'Meta': {'object_name': 'LibertyAssertion'},
108
            'assertion': ('django.db.models.fields.TextField', [], {}),
109
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
110
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
111
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
113
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
114
        },
115
        'saml.libertyattributemap': {
116
            'Meta': {'object_name': 'LibertyAttributeMap'},
117
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
118
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
119
        },
120
        'saml.libertyattributemapping': {
121
            'Meta': {'object_name': 'LibertyAttributeMapping'},
122
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
123
            'attribute_value_format': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
124
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
125
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAttributeMap']"}),
126
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
127
        },
128
        'saml.libertyfederation': {
129
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
130
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
131
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
132
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
133
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
134
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
135
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
136
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
137
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
138
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
139
        },
140
        'saml.libertyidentitydump': {
141
            'Meta': {'object_name': 'LibertyIdentityDump'},
142
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
143
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
144
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
145
        },
146
        'saml.libertyidentityprovider': {
147
            'Meta': {'object_name': 'LibertyIdentityProvider'},
148
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
149
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
150
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
151
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
152
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
153
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
154
        },
155
        'saml.libertymanagedump': {
156
            'Meta': {'object_name': 'LibertyManageDump'},
157
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
158
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
159
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
160
        },
161
        'saml.libertyprovider': {
162
            'Meta': {'object_name': 'LibertyProvider'},
163
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
164
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
165
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
166
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
167
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
168
            'metadata': ('django.db.models.fields.TextField', [], {}),
169
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
170
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
171
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
172
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
173
        },
174
        'saml.libertyserviceprovider': {
175
            'Meta': {'object_name': 'LibertyServiceProvider'},
176
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
177
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
178
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'service_providers'", 'null': 'True', 'to': "orm['saml.LibertyAttributeMap']"}),
179
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
180
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
181
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
182
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
183
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
184
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
185
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
186
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
187
        },
188
        'saml.libertysession': {
189
            'Meta': {'object_name': 'LibertySession'},
190
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
191
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
192
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
193
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
194
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
195
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
196
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
197
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
198
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
199
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
200
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
201
        },
202
        'saml.libertysessiondump': {
203
            'Meta': {'object_name': 'LibertySessionDump'},
204
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
205
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
206
            'kind': ('django.db.models.fields.IntegerField', [], {}),
207
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
208
        },
209
        'saml.libertysessionsp': {
210
            'Meta': {'object_name': 'LibertySessionSP'},
211
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
212
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
213
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
214
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
215
        }
216
    }
217

  
218
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0007_auto__add_libertyproviderpolicy__add_field_libertyserviceprovider_poli.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11

  
12
class Migration(SchemaMigration):
13

  
14
    def forwards(self, orm):
15
        
16
        # Adding model 'LibertyProviderPolicy'
17
        db.create_table('saml_libertyproviderpolicy', (
18
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
19
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=64)),
20
            ('authn_request_signature_check_hint', self.gf('django.db.models.fields.IntegerField')(default=0)),
21
        ))
22
        db.send_create_signal('saml', ['LibertyProviderPolicy'])
23

  
24
        # Adding field 'LibertyServiceProvider.policy'
25
        db.add_column('saml_libertyserviceprovider', 'policy', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['saml.LibertyProviderPolicy'], null=True), keep_default=False)
26

  
27

  
28
    def backwards(self, orm):
29
        
30
        # Deleting model 'LibertyProviderPolicy'
31
        db.delete_table('saml_libertyproviderpolicy')
32

  
33
        # Deleting field 'LibertyServiceProvider.policy'
34
        db.delete_column('saml_libertyserviceprovider', 'policy_id')
35

  
36

  
37
    models = {
38
        'auth.group': {
39
            'Meta': {'object_name': 'Group'},
40
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
42
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
43
        },
44
        'auth.permission': {
45
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
46
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
47
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
48
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
50
        },
51
        user_model_label: {
52
            'Meta': {'object_name': user_model_label.split('.')[-1]},
53
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54
        },
55
        'contenttypes.contenttype': {
56
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
57
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
58
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
60
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
61
        },
62
        'saml.authorizationattributemap': {
63
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
64
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
66
        },
67
        'saml.authorizationattributemapping': {
68
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
69
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
70
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
71
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
72
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
73
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
74
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
75
        },
76
        'saml.authorizationsppolicy': {
77
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
78
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
79
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
80
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
83
        },
84
        'saml.idpoptionssppolicy': {
85
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
86
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
87
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '60'}),
88
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
89
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
90
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
91
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
92
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '60'}),
93
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '60'}),
94
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
95
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
96
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
97
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
98
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
99
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '60'}),
100
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
101
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
102
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
103
        },
104
        'saml.keyvalue': {
105
            'Meta': {'object_name': 'KeyValue'},
106
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
107
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
108
        },
109
        'saml.libertyartifact': {
110
            'Meta': {'object_name': 'LibertyArtifact'},
111
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
112
            'content': ('django.db.models.fields.TextField', [], {}),
113
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
114
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
115
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
116
        },
117
        'saml.libertyassertion': {
118
            'Meta': {'object_name': 'LibertyAssertion'},
119
            'assertion': ('django.db.models.fields.TextField', [], {}),
120
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
121
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
122
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
123
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
124
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
125
        },
126
        'saml.libertyattributemap': {
127
            'Meta': {'object_name': 'LibertyAttributeMap'},
128
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
129
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
130
        },
131
        'saml.libertyattributemapping': {
132
            'Meta': {'object_name': 'LibertyAttributeMapping'},
133
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
134
            'attribute_value_format': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
135
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
136
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAttributeMap']"}),
137
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'})
138
        },
139
        'saml.libertyfederation': {
140
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
141
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
142
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
143
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
144
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
145
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
146
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
147
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
148
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
149
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
150
        },
151
        'saml.libertyidentitydump': {
152
            'Meta': {'object_name': 'LibertyIdentityDump'},
153
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
154
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
155
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
156
        },
157
        'saml.libertyidentityprovider': {
158
            'Meta': {'object_name': 'LibertyIdentityProvider'},
159
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
160
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
161
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
162
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
163
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
164
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
165
        },
166
        'saml.libertymanagedump': {
167
            'Meta': {'object_name': 'LibertyManageDump'},
168
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
169
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
170
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
171
        },
172
        'saml.libertyprovider': {
173
            'Meta': {'object_name': 'LibertyProvider'},
174
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
175
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
176
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
177
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
178
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
179
            'metadata': ('django.db.models.fields.TextField', [], {}),
180
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
181
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
182
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
183
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
184
        },
185
        'saml.libertyproviderpolicy': {
186
            'Meta': {'object_name': 'LibertyProviderPolicy'},
187
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
188
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
189
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
190
        },
191
        'saml.libertyserviceprovider': {
192
            'Meta': {'object_name': 'LibertyServiceProvider'},
193
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
194
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
195
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'service_providers'", 'null': 'True', 'to': "orm['saml.LibertyAttributeMap']"}),
196
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
197
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
198
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
199
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
200
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
201
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
202
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
203
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
204
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
205
        },
206
        'saml.libertysession': {
207
            'Meta': {'object_name': 'LibertySession'},
208
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
209
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
210
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
211
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
212
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
213
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
214
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
215
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
216
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
217
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
218
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
219
        },
220
        'saml.libertysessiondump': {
221
            'Meta': {'object_name': 'LibertySessionDump'},
222
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
223
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
224
            'kind': ('django.db.models.fields.IntegerField', [], {}),
225
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
226
        },
227
        'saml.libertysessionsp': {
228
            'Meta': {'object_name': 'LibertySessionSP'},
229
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
230
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
231
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
232
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
233
        }
234
    }
235

  
236
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0008_auto__del_libertyattributemapping__del_libertyattributemap__del_field_.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11

  
12
class Migration(SchemaMigration):
13
    
14
    depends_on = (
15
            ('idp', '0004_auto__add_attributepolicy__add_attributelist__add_attributeitem.py'),
16
    )
17
    def forwards(self, orm):
18
        
19
        # Deleting model 'LibertyAttributeMapping'
20
        db.delete_table('saml_libertyattributemapping')
21

  
22
        # Deleting model 'LibertyAttributeMap'
23
        db.delete_table('saml_libertyattributemap')
24

  
25
        # Deleting field 'LibertyServiceProvider.attribute_map'
26
        db.delete_column('saml_libertyserviceprovider', 'attribute_map_id')
27

  
28
        # Adding field 'LibertyServiceProvider.attribute_policy'
29
        db.add_column('saml_libertyserviceprovider', 'attribute_policy', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['idp.AttributePolicy'], null=True, blank=True), keep_default=False)
30

  
31
        # Changing field 'LibertyServiceProvider.ask_user_consent'
32
        db.alter_column('saml_libertyserviceprovider', 'ask_user_consent', self.gf('django.db.models.fields.BooleanField')(blank=True))
33

  
34
        # Changing field 'LibertyServiceProvider.encrypt_nameid'
35
        db.alter_column('saml_libertyserviceprovider', 'encrypt_nameid', self.gf('django.db.models.fields.BooleanField')(blank=True))
36

  
37
        # Changing field 'LibertyServiceProvider.enabled'
38
        db.alter_column('saml_libertyserviceprovider', 'enabled', self.gf('django.db.models.fields.BooleanField')(blank=True))
39

  
40
        # Changing field 'LibertyServiceProvider.authn_request_signed'
41
        db.alter_column('saml_libertyserviceprovider', 'authn_request_signed', self.gf('django.db.models.fields.BooleanField')(blank=True))
42

  
43
        # Changing field 'LibertyServiceProvider.idp_initiated_sso'
44
        db.alter_column('saml_libertyserviceprovider', 'idp_initiated_sso', self.gf('django.db.models.fields.BooleanField')(blank=True))
45

  
46
        # Changing field 'LibertyServiceProvider.encrypt_assertion'
47
        db.alter_column('saml_libertyserviceprovider', 'encrypt_assertion', self.gf('django.db.models.fields.BooleanField')(blank=True))
48

  
49
        # Changing field 'IdPOptionsSPPolicy.enable_http_method_for_defederation_request'
50
        db.alter_column('saml_idpoptionssppolicy', 'enable_http_method_for_defederation_request', self.gf('django.db.models.fields.BooleanField')(blank=True))
51

  
52
        # Changing field 'IdPOptionsSPPolicy.want_force_authn_request'
53
        db.alter_column('saml_idpoptionssppolicy', 'want_force_authn_request', self.gf('django.db.models.fields.BooleanField')(blank=True))
54

  
55
        # Changing field 'IdPOptionsSPPolicy.enabled'
56
        db.alter_column('saml_idpoptionssppolicy', 'enabled', self.gf('django.db.models.fields.BooleanField')(blank=True))
57

  
58
        # Changing field 'IdPOptionsSPPolicy.allow_create'
59
        db.alter_column('saml_idpoptionssppolicy', 'allow_create', self.gf('django.db.models.fields.BooleanField')(blank=True))
60

  
61
        # Changing field 'IdPOptionsSPPolicy.want_authn_request_signed'
62
        db.alter_column('saml_idpoptionssppolicy', 'want_authn_request_signed', self.gf('django.db.models.fields.BooleanField')(blank=True))
63

  
64
        # Changing field 'IdPOptionsSPPolicy.enable_http_method_for_slo_request'
65
        db.alter_column('saml_idpoptionssppolicy', 'enable_http_method_for_slo_request', self.gf('django.db.models.fields.BooleanField')(blank=True))
66

  
67
        # Changing field 'IdPOptionsSPPolicy.no_nameid_policy'
68
        db.alter_column('saml_idpoptionssppolicy', 'no_nameid_policy', self.gf('django.db.models.fields.BooleanField')(blank=True))
69

  
70
        # Changing field 'IdPOptionsSPPolicy.transient_is_persistent'
71
        db.alter_column('saml_idpoptionssppolicy', 'transient_is_persistent', self.gf('django.db.models.fields.BooleanField')(blank=True))
72

  
73
        # Changing field 'IdPOptionsSPPolicy.want_is_passive_authn_request'
74
        db.alter_column('saml_idpoptionssppolicy', 'want_is_passive_authn_request', self.gf('django.db.models.fields.BooleanField')(blank=True))
75

  
76
        # Changing field 'IdPOptionsSPPolicy.enable_binding_for_sso_response'
77
        db.alter_column('saml_idpoptionssppolicy', 'enable_binding_for_sso_response', self.gf('django.db.models.fields.BooleanField')(blank=True))
78

  
79
        # Changing field 'LibertyIdentityProvider.enabled'
80
        db.alter_column('saml_libertyidentityprovider', 'enabled', self.gf('django.db.models.fields.BooleanField')(blank=True))
81

  
82
        # Changing field 'LibertyIdentityProvider.enable_following_idp_options_policy'
83
        db.alter_column('saml_libertyidentityprovider', 'enable_following_idp_options_policy', self.gf('django.db.models.fields.BooleanField')(blank=True))
84

  
85
        # Changing field 'LibertyIdentityProvider.enable_following_authorization_policy'
86
        db.alter_column('saml_libertyidentityprovider', 'enable_following_authorization_policy', self.gf('django.db.models.fields.BooleanField')(blank=True))
87

  
88
        # Changing field 'AuthorizationSPPolicy.enabled'
89
        db.alter_column('saml_authorizationsppolicy', 'enabled', self.gf('django.db.models.fields.BooleanField')(blank=True))
90
    
91
    
92
    def backwards(self, orm):
93
        
94
        # Adding model 'LibertyAttributeMapping'
95
        db.create_table('saml_libertyattributemapping', (
96
            ('map', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['saml.LibertyAttributeMap'])),
97
            ('attribute_name', self.gf('django.db.models.fields.CharField')(max_length=40)),
98
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
99
            ('attribute_value_format', self.gf('django.db.models.fields.URLField')(max_length=200)),
100
            ('source_attribute_name', self.gf('django.db.models.fields.CharField')(max_length=40)),
101
        ))
102
        db.send_create_signal('saml', ['LibertyAttributeMapping'])
103

  
104
        # Adding model 'LibertyAttributeMap'
105
        db.create_table('saml_libertyattributemap', (
106
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
107
            ('name', self.gf('django.db.models.fields.CharField')(max_length=40, unique=True)),
108
        ))
109
        db.send_create_signal('saml', ['LibertyAttributeMap'])
110

  
111
        # Adding field 'LibertyServiceProvider.attribute_map'
112
        db.add_column('saml_libertyserviceprovider', 'attribute_map', self.gf('django.db.models.fields.related.ForeignKey')(related_name='service_providers', null=True, to=orm['saml.LibertyAttributeMap'], blank=True), keep_default=False)
113

  
114
        # Deleting field 'LibertyServiceProvider.attribute_policy'
115
        db.delete_column('saml_libertyserviceprovider', 'attribute_policy_id')
116

  
117
        # Changing field 'LibertyServiceProvider.ask_user_consent'
118
        db.alter_column('saml_libertyserviceprovider', 'ask_user_consent', self.gf('django.db.models.fields.BooleanField')())
119

  
120
        # Changing field 'LibertyServiceProvider.encrypt_nameid'
121
        db.alter_column('saml_libertyserviceprovider', 'encrypt_nameid', self.gf('django.db.models.fields.BooleanField')())
122

  
123
        # Changing field 'LibertyServiceProvider.enabled'
124
        db.alter_column('saml_libertyserviceprovider', 'enabled', self.gf('django.db.models.fields.BooleanField')())
125

  
126
        # Changing field 'LibertyServiceProvider.authn_request_signed'
127
        db.alter_column('saml_libertyserviceprovider', 'authn_request_signed', self.gf('django.db.models.fields.BooleanField')())
128

  
129
        # Changing field 'LibertyServiceProvider.idp_initiated_sso'
130
        db.alter_column('saml_libertyserviceprovider', 'idp_initiated_sso', self.gf('django.db.models.fields.BooleanField')())
131

  
132
        # Changing field 'LibertyServiceProvider.encrypt_assertion'
133
        db.alter_column('saml_libertyserviceprovider', 'encrypt_assertion', self.gf('django.db.models.fields.BooleanField')())
134

  
135
        # Changing field 'IdPOptionsSPPolicy.enable_http_method_for_defederation_request'
136
        db.alter_column('saml_idpoptionssppolicy', 'enable_http_method_for_defederation_request', self.gf('django.db.models.fields.BooleanField')())
137

  
138
        # Changing field 'IdPOptionsSPPolicy.want_force_authn_request'
139
        db.alter_column('saml_idpoptionssppolicy', 'want_force_authn_request', self.gf('django.db.models.fields.BooleanField')())
140

  
141
        # Changing field 'IdPOptionsSPPolicy.enabled'
142
        db.alter_column('saml_idpoptionssppolicy', 'enabled', self.gf('django.db.models.fields.BooleanField')())
143

  
144
        # Changing field 'IdPOptionsSPPolicy.allow_create'
145
        db.alter_column('saml_idpoptionssppolicy', 'allow_create', self.gf('django.db.models.fields.BooleanField')())
146

  
147
        # Changing field 'IdPOptionsSPPolicy.want_authn_request_signed'
148
        db.alter_column('saml_idpoptionssppolicy', 'want_authn_request_signed', self.gf('django.db.models.fields.BooleanField')())
149

  
150
        # Changing field 'IdPOptionsSPPolicy.enable_http_method_for_slo_request'
151
        db.alter_column('saml_idpoptionssppolicy', 'enable_http_method_for_slo_request', self.gf('django.db.models.fields.BooleanField')())
152

  
153
        # Changing field 'IdPOptionsSPPolicy.no_nameid_policy'
154
        db.alter_column('saml_idpoptionssppolicy', 'no_nameid_policy', self.gf('django.db.models.fields.BooleanField')())
155

  
156
        # Changing field 'IdPOptionsSPPolicy.transient_is_persistent'
157
        db.alter_column('saml_idpoptionssppolicy', 'transient_is_persistent', self.gf('django.db.models.fields.BooleanField')())
158

  
159
        # Changing field 'IdPOptionsSPPolicy.want_is_passive_authn_request'
160
        db.alter_column('saml_idpoptionssppolicy', 'want_is_passive_authn_request', self.gf('django.db.models.fields.BooleanField')())
161

  
162
        # Changing field 'IdPOptionsSPPolicy.enable_binding_for_sso_response'
163
        db.alter_column('saml_idpoptionssppolicy', 'enable_binding_for_sso_response', self.gf('django.db.models.fields.BooleanField')())
164

  
165
        # Changing field 'LibertyIdentityProvider.enabled'
166
        db.alter_column('saml_libertyidentityprovider', 'enabled', self.gf('django.db.models.fields.BooleanField')())
167

  
168
        # Changing field 'LibertyIdentityProvider.enable_following_idp_options_policy'
169
        db.alter_column('saml_libertyidentityprovider', 'enable_following_idp_options_policy', self.gf('django.db.models.fields.BooleanField')())
170

  
171
        # Changing field 'LibertyIdentityProvider.enable_following_authorization_policy'
172
        db.alter_column('saml_libertyidentityprovider', 'enable_following_authorization_policy', self.gf('django.db.models.fields.BooleanField')())
173

  
174
        # Changing field 'AuthorizationSPPolicy.enabled'
175
        db.alter_column('saml_authorizationsppolicy', 'enabled', self.gf('django.db.models.fields.BooleanField')())
176
    
177
    
178
    models = {
179
        'attribute_aggregator.attributesource': {
180
            'Meta': {'object_name': 'AttributeSource'},
181
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
182
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
183
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
184
        },
185
        user_model_label: {
186
            'Meta': {'object_name': user_model_label.split('.')[-1]},
187
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
188
        },
189
        'idp.attributeitem': {
190
            'Meta': {'object_name': 'AttributeItem'},
191
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
192
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
193
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:basic', 'SAMLv2 BASIC')", 'max_length': '100'}),
194
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
195
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
196
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
197
        },
198
        'idp.attributelist': {
199
            'Meta': {'object_name': 'AttributeList'},
200
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
201
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
202
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
203
        },
204
        'idp.attributepolicy': {
205
            'Meta': {'object_name': 'AttributePolicy'},
206
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
207
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
208
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
209
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
210
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
211
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
212
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
213
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
214
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:basic', 'SAMLv2 BASIC')", 'max_length': '100'}),
215
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
216
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
217
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
218
        },
219
        'saml.authorizationattributemap': {
220
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
221
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
222
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
223
        },
224
        'saml.authorizationattributemapping': {
225
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
226
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
227
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
228
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
229
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
230
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
231
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
232
        },
233
        'saml.authorizationsppolicy': {
234
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
235
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
236
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
237
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
238
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
239
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
240
        },
241
        'saml.idpoptionssppolicy': {
242
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
243
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
244
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '60'}),
245
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
246
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
247
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
248
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
249
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '60'}),
250
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '60'}),
251
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
252
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
253
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
254
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
255
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
256
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '60'}),
257
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
258
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
259
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
260
        },
261
        'saml.keyvalue': {
262
            'Meta': {'object_name': 'KeyValue'},
263
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
264
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
265
        },
266
        'saml.libertyartifact': {
267
            'Meta': {'object_name': 'LibertyArtifact'},
268
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
269
            'content': ('django.db.models.fields.TextField', [], {}),
270
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
271
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
272
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
273
        },
274
        'saml.libertyassertion': {
275
            'Meta': {'object_name': 'LibertyAssertion'},
276
            'assertion': ('django.db.models.fields.TextField', [], {}),
277
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
278
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
279
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
280
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
281
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
282
        },
283
        'saml.libertyfederation': {
284
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
285
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
286
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
287
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
288
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
289
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
290
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
291
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
292
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
293
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
294
        },
295
        'saml.libertyidentitydump': {
296
            'Meta': {'object_name': 'LibertyIdentityDump'},
297
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
298
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
299
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
300
        },
301
        'saml.libertyidentityprovider': {
302
            'Meta': {'object_name': 'LibertyIdentityProvider'},
303
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
304
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
305
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
306
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
307
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
308
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
309
        },
310
        'saml.libertymanagedump': {
311
            'Meta': {'object_name': 'LibertyManageDump'},
312
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
313
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
314
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
315
        },
316
        'saml.libertyprovider': {
317
            'Meta': {'object_name': 'LibertyProvider'},
318
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
319
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
320
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
321
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
322
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
323
            'metadata': ('django.db.models.fields.TextField', [], {}),
324
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
325
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
326
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
327
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
328
        },
329
        'saml.libertyproviderpolicy': {
330
            'Meta': {'object_name': 'LibertyProviderPolicy'},
331
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
332
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
333
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
334
        },
335
        'saml.libertyserviceprovider': {
336
            'Meta': {'object_name': 'LibertyServiceProvider'},
337
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
338
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
339
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['idp.AttributePolicy']", 'null': 'True', 'blank': 'True'}),
340
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
341
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
342
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
343
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
344
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
345
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
346
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
347
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
348
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
349
        },
350
        'saml.libertysession': {
351
            'Meta': {'object_name': 'LibertySession'},
352
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
353
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
354
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
355
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
356
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
357
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
358
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
359
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
360
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
361
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
362
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
363
        },
364
        'saml.libertysessiondump': {
365
            'Meta': {'object_name': 'LibertySessionDump'},
366
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
367
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
368
            'kind': ('django.db.models.fields.IntegerField', [], {}),
369
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
370
        },
371
        'saml.libertysessionsp': {
372
            'Meta': {'object_name': 'LibertySessionSP'},
373
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
374
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
375
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
376
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
377
        }
378
    }
379
    
380
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0009_auto__add_spoptionsidppolicy__del_field_libertyserviceprovider_prefere.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11

  
12
class Migration(SchemaMigration):
13

  
14
    def forwards(self, orm):
15
        
16
        # Adding model 'SPOptionsIdPPolicy'
17
        db.create_table('saml_spoptionsidppolicy', (
18
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
19
            ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=80)),
20
            ('prefered_assertion_consumer_binding', self.gf('django.db.models.fields.CharField')(default='meta', max_length=4)),
21
            ('encrypt_nameid', self.gf('django.db.models.fields.BooleanField')(default=False)),
22
            ('encrypt_assertion', self.gf('django.db.models.fields.BooleanField')(default=False)),
23
            ('authn_request_signed', self.gf('django.db.models.fields.BooleanField')(default=False)),
24
            ('idp_initiated_sso', self.gf('django.db.models.fields.BooleanField')(default=False)),
25
            ('default_name_id_format', self.gf('django.db.models.fields.CharField')(default='none', max_length=20)),
26
            ('accepted_name_id_format', self.gf('authentic2.saml.fields.MultiSelectField')(max_length=31, blank=True)),
27
            ('ask_user_consent', self.gf('django.db.models.fields.BooleanField')(default=False)),
28
        ))
29
        db.send_create_signal('saml', ['SPOptionsIdPPolicy'])
30

  
31
        # Deleting field 'LibertyServiceProvider.prefered_assertion_consumer_binding'
32
        db.delete_column('saml_libertyserviceprovider', 'prefered_assertion_consumer_binding')
33

  
34
        # Deleting field 'LibertyServiceProvider.ask_user_consent'
35
        db.delete_column('saml_libertyserviceprovider', 'ask_user_consent')
36

  
37
        # Deleting field 'LibertyServiceProvider.encrypt_nameid'
38
        db.delete_column('saml_libertyserviceprovider', 'encrypt_nameid')
39

  
40
        # Deleting field 'LibertyServiceProvider.authn_request_signed'
41
        db.delete_column('saml_libertyserviceprovider', 'authn_request_signed')
42

  
43
        # Deleting field 'LibertyServiceProvider.idp_initiated_sso'
44
        db.delete_column('saml_libertyserviceprovider', 'idp_initiated_sso')
45

  
46
        # Deleting field 'LibertyServiceProvider.encrypt_assertion'
47
        db.delete_column('saml_libertyserviceprovider', 'encrypt_assertion')
48

  
49
        # Deleting field 'LibertyServiceProvider.accepted_name_id_format'
50
        db.delete_column('saml_libertyserviceprovider', 'accepted_name_id_format')
51

  
52
        # Deleting field 'LibertyServiceProvider.default_name_id_format'
53
        db.delete_column('saml_libertyserviceprovider', 'default_name_id_format')
54

  
55
        # Adding field 'LibertyServiceProvider.enable_following_sp_options_policy'
56
        db.add_column('saml_libertyserviceprovider', 'enable_following_sp_options_policy', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
57

  
58
        # Adding field 'LibertyServiceProvider.sp_options_policy'
59
        db.add_column('saml_libertyserviceprovider', 'sp_options_policy', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='sp_options_policy', null=True, to=orm['saml.SPOptionsIdPPolicy']), keep_default=False)
60

  
61

  
62
    def backwards(self, orm):
63
        
64
        # Deleting model 'SPOptionsIdPPolicy'
65
        db.delete_table('saml_spoptionsidppolicy')
66

  
67
        # Adding field 'LibertyServiceProvider.prefered_assertion_consumer_binding'
68
        db.add_column('saml_libertyserviceprovider', 'prefered_assertion_consumer_binding', self.gf('django.db.models.fields.CharField')(default='meta', max_length=4), keep_default=False)
69

  
70
        # Adding field 'LibertyServiceProvider.ask_user_consent'
71
        db.add_column('saml_libertyserviceprovider', 'ask_user_consent', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
72

  
73
        # Adding field 'LibertyServiceProvider.encrypt_nameid'
74
        db.add_column('saml_libertyserviceprovider', 'encrypt_nameid', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
75

  
76
        # Adding field 'LibertyServiceProvider.authn_request_signed'
77
        db.add_column('saml_libertyserviceprovider', 'authn_request_signed', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
78

  
79
        # Adding field 'LibertyServiceProvider.idp_initiated_sso'
80
        db.add_column('saml_libertyserviceprovider', 'idp_initiated_sso', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
81

  
82
        # Adding field 'LibertyServiceProvider.encrypt_assertion'
83
        db.add_column('saml_libertyserviceprovider', 'encrypt_assertion', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
84

  
85
        # Adding field 'LibertyServiceProvider.accepted_name_id_format'
86
        db.add_column('saml_libertyserviceprovider', 'accepted_name_id_format', self.gf('authentic2.saml.fields.MultiSelectField')(default=0, max_length=31, blank=True), keep_default=False)
87

  
88
        # Adding field 'LibertyServiceProvider.default_name_id_format'
89
        db.add_column('saml_libertyserviceprovider', 'default_name_id_format', self.gf('django.db.models.fields.CharField')(default='none', max_length=20), keep_default=False)
90

  
91
        # Deleting field 'LibertyServiceProvider.enable_following_sp_options_policy'
92
        db.delete_column('saml_libertyserviceprovider', 'enable_following_sp_options_policy')
93

  
94
        # Deleting field 'LibertyServiceProvider.sp_options_policy'
95
        db.delete_column('saml_libertyserviceprovider', 'sp_options_policy_id')
96

  
97

  
98
    models = {
99
        'attribute_aggregator.attributesource': {
100
            'Meta': {'object_name': 'AttributeSource'},
101
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
102
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
103
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
104
        },
105
        user_model_label: {
106
            'Meta': {'object_name': user_model_label.split('.')[-1]},
107
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
108
        },
109
        'idp.attributeitem': {
110
            'Meta': {'object_name': 'AttributeItem'},
111
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
112
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
113
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:basic', 'SAMLv2 BASIC')", 'max_length': '100'}),
114
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
115
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
117
        },
118
        'idp.attributelist': {
119
            'Meta': {'object_name': 'AttributeList'},
120
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
121
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
122
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
123
        },
124
        'idp.attributepolicy': {
125
            'Meta': {'object_name': 'AttributePolicy'},
126
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
127
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
128
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
129
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
130
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
131
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
132
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
133
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
134
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:basic', 'SAMLv2 BASIC')", 'max_length': '100'}),
135
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
136
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
137
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
138
        },
139
        'saml.authorizationattributemap': {
140
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
141
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
142
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
143
        },
144
        'saml.authorizationattributemapping': {
145
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
146
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
147
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
148
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
149
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
150
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
151
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
152
        },
153
        'saml.authorizationsppolicy': {
154
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
155
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
156
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
157
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
158
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
159
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
160
        },
161
        'saml.idpoptionssppolicy': {
162
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
163
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
164
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '60'}),
165
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
167
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
168
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
169
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '60'}),
170
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '60'}),
171
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
172
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
173
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
174
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
175
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
176
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '60'}),
177
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
178
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
179
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
180
        },
181
        'saml.keyvalue': {
182
            'Meta': {'object_name': 'KeyValue'},
183
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
184
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
185
        },
186
        'saml.libertyartifact': {
187
            'Meta': {'object_name': 'LibertyArtifact'},
188
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
189
            'content': ('django.db.models.fields.TextField', [], {}),
190
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
191
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
192
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
193
        },
194
        'saml.libertyassertion': {
195
            'Meta': {'object_name': 'LibertyAssertion'},
196
            'assertion': ('django.db.models.fields.TextField', [], {}),
197
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
198
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
199
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
200
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
201
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
202
        },
203
        'saml.libertyfederation': {
204
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
205
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
206
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
207
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
208
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
209
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
210
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
211
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
212
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
213
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
214
        },
215
        'saml.libertyidentitydump': {
216
            'Meta': {'object_name': 'LibertyIdentityDump'},
217
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
218
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
219
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
220
        },
221
        'saml.libertyidentityprovider': {
222
            'Meta': {'object_name': 'LibertyIdentityProvider'},
223
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
224
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
225
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
226
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
227
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
228
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
229
        },
230
        'saml.libertymanagedump': {
231
            'Meta': {'object_name': 'LibertyManageDump'},
232
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
233
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
234
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
235
        },
236
        'saml.libertyprovider': {
237
            'Meta': {'object_name': 'LibertyProvider'},
238
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
239
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
240
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
241
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
242
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
243
            'metadata': ('django.db.models.fields.TextField', [], {}),
244
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
245
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
246
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
247
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
248
        },
249
        'saml.libertyproviderpolicy': {
250
            'Meta': {'object_name': 'LibertyProviderPolicy'},
251
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
252
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
253
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
254
        },
255
        'saml.libertyserviceprovider': {
256
            'Meta': {'object_name': 'LibertyServiceProvider'},
257
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['idp.AttributePolicy']", 'null': 'True', 'blank': 'True'}),
258
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
259
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
260
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
261
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
262
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': "orm['saml.SPOptionsIdPPolicy']"})
263
        },
264
        'saml.libertysession': {
265
            'Meta': {'object_name': 'LibertySession'},
266
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
267
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
268
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
269
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
270
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
271
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
272
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
273
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
274
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
275
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
276
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
277
        },
278
        'saml.libertysessiondump': {
279
            'Meta': {'object_name': 'LibertySessionDump'},
280
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
281
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
282
            'kind': ('django.db.models.fields.IntegerField', [], {}),
283
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
284
        },
285
        'saml.libertysessionsp': {
286
            'Meta': {'object_name': 'LibertySessionSP'},
287
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
288
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
289
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
290
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
291
        },
292
        'saml.spoptionsidppolicy': {
293
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
294
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
295
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
296
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
297
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
298
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
299
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
300
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
301
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
302
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
303
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
304
        }
305
    }
306

  
307
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0010_auto__add_field_spoptionsidppolicy_enabled.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14
        
15
        # Adding field 'SPOptionsIdPPolicy.enabled'
16
        db.add_column('saml_spoptionsidppolicy', 'enabled', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
17

  
18

  
19
    def backwards(self, orm):
20
        
21
        # Deleting field 'SPOptionsIdPPolicy.enabled'
22
        db.delete_column('saml_spoptionsidppolicy', 'enabled')
23

  
24

  
25
    models = {
26
        'attribute_aggregator.attributesource': {
27
            'Meta': {'object_name': 'AttributeSource'},
28
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
30
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
31
        },
32
        user_model_label: {
33
            'Meta': {'object_name': user_model_label.split('.')[-1]},
34
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
        },
36
        'idp.attributeitem': {
37
            'Meta': {'object_name': 'AttributeItem'},
38
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
39
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:basic', 'SAMLv2 BASIC')", 'max_length': '100'}),
41
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
42
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
43
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
44
        },
45
        'idp.attributelist': {
46
            'Meta': {'object_name': 'AttributeList'},
47
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
48
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
50
        },
51
        'idp.attributepolicy': {
52
            'Meta': {'object_name': 'AttributePolicy'},
53
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
54
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
55
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
56
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
57
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
59
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
60
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
61
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:basic', 'SAMLv2 BASIC')", 'max_length': '100'}),
62
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
63
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
65
        },
66
        'saml.authorizationattributemap': {
67
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
68
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
70
        },
71
        'saml.authorizationattributemapping': {
72
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
73
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
74
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
75
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
76
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
78
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
79
        },
80
        'saml.authorizationsppolicy': {
81
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
82
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
83
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
84
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
85
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
86
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
87
        },
88
        'saml.idpoptionssppolicy': {
89
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
90
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
91
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '60'}),
92
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
93
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
94
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
95
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
96
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '60'}),
97
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '60'}),
98
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
99
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
100
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
101
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
102
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '60'}),
104
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
107
        },
108
        'saml.keyvalue': {
109
            'Meta': {'object_name': 'KeyValue'},
110
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
111
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
112
        },
113
        'saml.libertyartifact': {
114
            'Meta': {'object_name': 'LibertyArtifact'},
115
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
116
            'content': ('django.db.models.fields.TextField', [], {}),
117
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
118
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
119
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
120
        },
121
        'saml.libertyassertion': {
122
            'Meta': {'object_name': 'LibertyAssertion'},
123
            'assertion': ('django.db.models.fields.TextField', [], {}),
124
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
125
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
126
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
127
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
128
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
129
        },
130
        'saml.libertyfederation': {
131
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
132
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
133
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
134
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
135
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
136
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
137
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
138
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
139
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
140
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
141
        },
142
        'saml.libertyidentitydump': {
143
            'Meta': {'object_name': 'LibertyIdentityDump'},
144
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
145
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
146
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
147
        },
148
        'saml.libertyidentityprovider': {
149
            'Meta': {'object_name': 'LibertyIdentityProvider'},
150
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
151
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
152
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
153
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
154
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
155
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
156
        },
157
        'saml.libertymanagedump': {
158
            'Meta': {'object_name': 'LibertyManageDump'},
159
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
160
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
161
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
162
        },
163
        'saml.libertyprovider': {
164
            'Meta': {'object_name': 'LibertyProvider'},
165
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
166
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
167
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
168
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
169
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
170
            'metadata': ('django.db.models.fields.TextField', [], {}),
171
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
172
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
173
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
174
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
175
        },
176
        'saml.libertyproviderpolicy': {
177
            'Meta': {'object_name': 'LibertyProviderPolicy'},
178
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
179
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
180
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
181
        },
182
        'saml.libertyserviceprovider': {
183
            'Meta': {'object_name': 'LibertyServiceProvider'},
184
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['idp.AttributePolicy']", 'null': 'True', 'blank': 'True'}),
185
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
186
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
187
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
188
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
189
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': "orm['saml.SPOptionsIdPPolicy']"})
190
        },
191
        'saml.libertysession': {
192
            'Meta': {'object_name': 'LibertySession'},
193
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
194
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
195
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
196
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
197
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
198
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
199
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
200
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
201
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
202
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
203
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
204
        },
205
        'saml.libertysessiondump': {
206
            'Meta': {'object_name': 'LibertySessionDump'},
207
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
208
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
209
            'kind': ('django.db.models.fields.IntegerField', [], {}),
210
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
211
        },
212
        'saml.libertysessionsp': {
213
            'Meta': {'object_name': 'LibertySessionSP'},
214
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
215
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
216
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
217
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
218
        },
219
        'saml.spoptionsidppolicy': {
220
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
221
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
222
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
223
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
224
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '20'}),
225
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
226
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
227
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
228
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
229
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
230
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
231
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
232
        }
233
    }
234

  
235
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0011_auto__add_field_idpoptionssppolicy_handle_persistent__add_field_idpopt.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14
        
15
        # Adding field 'IdPOptionsSPPolicy.handle_persistent'
16
        db.add_column('saml_idpoptionssppolicy', 'handle_persistent', self.gf('django.db.models.fields.CharField')(default='AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH', max_length=200), keep_default=False)
17

  
18
        # Adding field 'IdPOptionsSPPolicy.handle_transient'
19
        db.add_column('saml_idpoptionssppolicy', 'handle_transient', self.gf('django.db.models.fields.CharField')(default='', max_length=200), keep_default=False)
20

  
21
        # Adding field 'IdPOptionsSPPolicy.back_url'
22
        db.add_column('saml_idpoptionssppolicy', 'back_url', self.gf('django.db.models.fields.CharField')(default='/', max_length=200), keep_default=False)
23

  
24
        # Changing field 'IdPOptionsSPPolicy.http_method_for_slo_request'
25
        db.alter_column('saml_idpoptionssppolicy', 'http_method_for_slo_request', self.gf('django.db.models.fields.IntegerField')(max_length=200))
26

  
27
        # Changing field 'IdPOptionsSPPolicy.name'
28
        db.alter_column('saml_idpoptionssppolicy', 'name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=200))
29

  
30
        # Changing field 'IdPOptionsSPPolicy.http_method_for_defederation_request'
31
        db.alter_column('saml_idpoptionssppolicy', 'http_method_for_defederation_request', self.gf('django.db.models.fields.IntegerField')(max_length=200))
32

  
33
        # Changing field 'IdPOptionsSPPolicy.binding_for_sso_response'
34
        db.alter_column('saml_idpoptionssppolicy', 'binding_for_sso_response', self.gf('django.db.models.fields.CharField')(max_length=200))
35

  
36
        # Changing field 'IdPOptionsSPPolicy.requested_name_id_format'
37
        db.alter_column('saml_idpoptionssppolicy', 'requested_name_id_format', self.gf('django.db.models.fields.CharField')(max_length=200))
38

  
39
        # Changing field 'IdPOptionsSPPolicy.user_consent'
40
        db.alter_column('saml_idpoptionssppolicy', 'user_consent', self.gf('django.db.models.fields.CharField')(max_length=200))
41

  
42
        # Changing field 'SPOptionsIdPPolicy.default_name_id_format'
43
        db.alter_column('saml_spoptionsidppolicy', 'default_name_id_format', self.gf('django.db.models.fields.CharField')(max_length=200))
44

  
45

  
46
    def backwards(self, orm):
47
        
48
        # Deleting field 'IdPOptionsSPPolicy.handle_persistent'
49
        db.delete_column('saml_idpoptionssppolicy', 'handle_persistent')
50

  
51
        # Deleting field 'IdPOptionsSPPolicy.handle_transient'
52
        db.delete_column('saml_idpoptionssppolicy', 'handle_transient')
53

  
54
        # Deleting field 'IdPOptionsSPPolicy.back_url'
55
        db.delete_column('saml_idpoptionssppolicy', 'back_url')
56

  
57
        # Changing field 'IdPOptionsSPPolicy.http_method_for_slo_request'
58
        db.alter_column('saml_idpoptionssppolicy', 'http_method_for_slo_request', self.gf('django.db.models.fields.IntegerField')(max_length=60))
59

  
60
        # Changing field 'IdPOptionsSPPolicy.name'
61
        db.alter_column('saml_idpoptionssppolicy', 'name', self.gf('django.db.models.fields.CharField')(max_length=80, unique=True))
62

  
63
        # Changing field 'IdPOptionsSPPolicy.http_method_for_defederation_request'
64
        db.alter_column('saml_idpoptionssppolicy', 'http_method_for_defederation_request', self.gf('django.db.models.fields.IntegerField')(max_length=60))
65

  
66
        # Changing field 'IdPOptionsSPPolicy.binding_for_sso_response'
67
        db.alter_column('saml_idpoptionssppolicy', 'binding_for_sso_response', self.gf('django.db.models.fields.CharField')(max_length=60))
68

  
69
        # Changing field 'IdPOptionsSPPolicy.requested_name_id_format'
70
        db.alter_column('saml_idpoptionssppolicy', 'requested_name_id_format', self.gf('django.db.models.fields.CharField')(max_length=20))
71

  
72
        # Changing field 'IdPOptionsSPPolicy.user_consent'
73
        db.alter_column('saml_idpoptionssppolicy', 'user_consent', self.gf('django.db.models.fields.CharField')(max_length=60))
74

  
75
        # Changing field 'SPOptionsIdPPolicy.default_name_id_format'
76
        db.alter_column('saml_spoptionsidppolicy', 'default_name_id_format', self.gf('django.db.models.fields.CharField')(max_length=20))
77

  
78

  
79
    models = {
80
        'attribute_aggregator.attributesource': {
81
            'Meta': {'object_name': 'AttributeSource'},
82
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
84
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
85
        },
86
        user_model_label: {
87
            'Meta': {'object_name': user_model_label.split('.')[-1]},
88
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89
        },
90
        'contenttypes.contenttype': {
91
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
92
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
93
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
95
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
96
        },
97
        'idp.attributeitem': {
98
            'Meta': {'object_name': 'AttributeItem'},
99
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
100
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
101
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:basic', 'SAMLv2 BASIC')", 'max_length': '100'}),
102
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
103
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
105
        },
106
        'idp.attributelist': {
107
            'Meta': {'object_name': 'AttributeList'},
108
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
109
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
110
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
111
        },
112
        'idp.attributepolicy': {
113
            'Meta': {'object_name': 'AttributePolicy'},
114
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
115
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
116
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
119
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
121
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
122
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:basic', 'SAMLv2 BASIC')", 'max_length': '100'}),
123
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
124
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
125
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
126
        },
127
        'saml.authorizationattributemap': {
128
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
129
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
130
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
131
        },
132
        'saml.authorizationattributemapping': {
133
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
134
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
135
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
136
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
137
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
138
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
139
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
140
        },
141
        'saml.authorizationsppolicy': {
142
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
143
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
144
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
145
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
146
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
147
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
148
        },
149
        'saml.idpoptionssppolicy': {
150
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
151
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
152
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
153
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
154
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
155
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
156
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
157
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
158
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
159
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
160
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
161
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
162
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
163
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
164
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
166
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
167
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '200'}),
168
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
169
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
170
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
171
        },
172
        'saml.keyvalue': {
173
            'Meta': {'object_name': 'KeyValue'},
174
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
175
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
176
        },
177
        'saml.libertyartifact': {
178
            'Meta': {'object_name': 'LibertyArtifact'},
179
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
180
            'content': ('django.db.models.fields.TextField', [], {}),
181
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
182
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
183
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
184
        },
185
        'saml.libertyassertion': {
186
            'Meta': {'object_name': 'LibertyAssertion'},
187
            'assertion': ('django.db.models.fields.TextField', [], {}),
188
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
189
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
190
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
191
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
192
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
193
        },
194
        'saml.libertyfederation': {
195
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
196
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
197
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
198
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
199
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
200
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
201
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
202
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
203
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
204
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
205
        },
206
        'saml.libertyidentitydump': {
207
            'Meta': {'object_name': 'LibertyIdentityDump'},
208
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
209
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
210
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
211
        },
212
        'saml.libertyidentityprovider': {
213
            'Meta': {'object_name': 'LibertyIdentityProvider'},
214
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
215
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
216
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
217
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
218
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
219
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
220
        },
221
        'saml.libertymanagedump': {
222
            'Meta': {'object_name': 'LibertyManageDump'},
223
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
224
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
225
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
226
        },
227
        'saml.libertyprovider': {
228
            'Meta': {'object_name': 'LibertyProvider'},
229
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
230
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
231
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
232
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
233
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
234
            'metadata': ('django.db.models.fields.TextField', [], {}),
235
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
236
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
237
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
238
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
239
        },
240
        'saml.libertyproviderpolicy': {
241
            'Meta': {'object_name': 'LibertyProviderPolicy'},
242
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
243
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
244
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
245
        },
246
        'saml.libertyserviceprovider': {
247
            'Meta': {'object_name': 'LibertyServiceProvider'},
248
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['idp.AttributePolicy']", 'null': 'True', 'blank': 'True'}),
249
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
250
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
251
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
252
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
253
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': "orm['saml.SPOptionsIdPPolicy']"})
254
        },
255
        'saml.libertysession': {
256
            'Meta': {'object_name': 'LibertySession'},
257
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
258
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
259
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
260
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
261
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
262
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
263
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
264
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
265
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
266
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
267
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
268
        },
269
        'saml.libertysessiondump': {
270
            'Meta': {'object_name': 'LibertySessionDump'},
271
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
272
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
273
            'kind': ('django.db.models.fields.IntegerField', [], {}),
274
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
275
        },
276
        'saml.libertysessionsp': {
277
            'Meta': {'object_name': 'LibertySessionSP'},
278
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
279
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
280
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
281
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
282
        },
283
        'saml.spoptionsidppolicy': {
284
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
285
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
286
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
287
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
288
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
289
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
290
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
291
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
292
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
293
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
294
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
295
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
296
        }
297
    }
298

  
299
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0012_auto__add_field_libertyserviceprovider_enable_following_attribute_poli.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14
        
15
        # Adding field 'LibertyServiceProvider.enable_following_attribute_policy'
16
        db.add_column('saml_libertyserviceprovider', 'enable_following_attribute_policy', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
17

  
18

  
19
    def backwards(self, orm):
20
        
21
        # Deleting field 'LibertyServiceProvider.enable_following_attribute_policy'
22
        db.delete_column('saml_libertyserviceprovider', 'enable_following_attribute_policy')
23

  
24

  
25
    models = {
26
        'attribute_aggregator.attributesource': {
27
            'Meta': {'object_name': 'AttributeSource'},
28
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
30
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
31
        },
32
        user_model_label: {
33
            'Meta': {'object_name': user_model_label.split('.')[-1]},
34
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
        },
36
        'idp.attributeitem': {
37
            'Meta': {'object_name': 'AttributeItem'},
38
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
39
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
41
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
42
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
43
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
44
        },
45
        'idp.attributelist': {
46
            'Meta': {'object_name': 'AttributeList'},
47
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
48
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
50
        },
51
        'idp.attributepolicy': {
52
            'Meta': {'object_name': 'AttributePolicy'},
53
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
54
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
55
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
56
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
57
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
59
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
60
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
61
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
62
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
63
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
65
        },
66
        'saml.authorizationattributemap': {
67
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
68
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
70
        },
71
        'saml.authorizationattributemapping': {
72
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
73
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
74
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
75
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
76
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
78
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
79
        },
80
        'saml.authorizationsppolicy': {
81
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
82
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
83
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
84
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
85
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
86
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
87
        },
88
        'saml.idpoptionssppolicy': {
89
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
90
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
91
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
92
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
93
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
94
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
95
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
96
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
97
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
98
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
99
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
100
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
101
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
102
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
103
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
105
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '200'}),
107
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
108
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
110
        },
111
        'saml.keyvalue': {
112
            'Meta': {'object_name': 'KeyValue'},
113
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
114
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
115
        },
116
        'saml.libertyartifact': {
117
            'Meta': {'object_name': 'LibertyArtifact'},
118
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
119
            'content': ('django.db.models.fields.TextField', [], {}),
120
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
121
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
122
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
123
        },
124
        'saml.libertyassertion': {
125
            'Meta': {'object_name': 'LibertyAssertion'},
126
            'assertion': ('django.db.models.fields.TextField', [], {}),
127
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
128
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
129
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
130
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
131
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
132
        },
133
        'saml.libertyfederation': {
134
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
135
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
136
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
137
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
138
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
139
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
140
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
141
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
142
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
143
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
144
        },
145
        'saml.libertyidentitydump': {
146
            'Meta': {'object_name': 'LibertyIdentityDump'},
147
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
148
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
149
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
150
        },
151
        'saml.libertyidentityprovider': {
152
            'Meta': {'object_name': 'LibertyIdentityProvider'},
153
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
154
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
155
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
156
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
157
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
158
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
159
        },
160
        'saml.libertymanagedump': {
161
            'Meta': {'object_name': 'LibertyManageDump'},
162
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
163
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
164
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
165
        },
166
        'saml.libertyprovider': {
167
            'Meta': {'object_name': 'LibertyProvider'},
168
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
169
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
170
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
171
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
172
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
173
            'metadata': ('django.db.models.fields.TextField', [], {}),
174
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
175
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
176
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
177
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
178
        },
179
        'saml.libertyproviderpolicy': {
180
            'Meta': {'object_name': 'LibertyProviderPolicy'},
181
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
182
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
183
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
184
        },
185
        'saml.libertyserviceprovider': {
186
            'Meta': {'object_name': 'LibertyServiceProvider'},
187
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': "orm['idp.AttributePolicy']"}),
188
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
189
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
190
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
191
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
192
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
193
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': "orm['saml.SPOptionsIdPPolicy']"})
194
        },
195
        'saml.libertysession': {
196
            'Meta': {'object_name': 'LibertySession'},
197
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
198
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
199
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
200
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
201
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
202
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
203
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
204
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
205
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
206
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
207
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
208
        },
209
        'saml.libertysessiondump': {
210
            'Meta': {'object_name': 'LibertySessionDump'},
211
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
212
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
213
            'kind': ('django.db.models.fields.IntegerField', [], {}),
214
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
215
        },
216
        'saml.libertysessionsp': {
217
            'Meta': {'object_name': 'LibertySessionSP'},
218
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
219
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
220
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
221
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
222
        },
223
        'saml.spoptionsidppolicy': {
224
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
225
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
226
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
227
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
228
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
229
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
230
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
231
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
232
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
233
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
234
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
235
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
236
        }
237
    }
238

  
239
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0013_auto__add_field_idpoptionssppolicy_accept_slo.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14
        
15
        # Adding field 'IdPOptionsSPPolicy.accept_slo'
16
        db.add_column('saml_idpoptionssppolicy', 'accept_slo', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=False)
17

  
18

  
19
    def backwards(self, orm):
20
        
21
        # Deleting field 'IdPOptionsSPPolicy.accept_slo'
22
        db.delete_column('saml_idpoptionssppolicy', 'accept_slo')
23

  
24

  
25
    models = {
26
        'attribute_aggregator.attributesource': {
27
            'Meta': {'object_name': 'AttributeSource'},
28
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
30
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
31
        },
32
        user_model_label: {
33
            'Meta': {'object_name': user_model_label.split('.')[-1]},
34
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
        },
36
        'contenttypes.contenttype': {
37
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
38
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
39
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
41
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
42
        },
43
        'idp.attributeitem': {
44
            'Meta': {'object_name': 'AttributeItem'},
45
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
46
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
48
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
49
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
50
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
51
        },
52
        'idp.attributelist': {
53
            'Meta': {'object_name': 'AttributeList'},
54
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
55
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
57
        },
58
        'idp.attributepolicy': {
59
            'Meta': {'object_name': 'AttributePolicy'},
60
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
61
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
62
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
63
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
67
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
68
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
69
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
70
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
71
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
72
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
73
        },
74
        'saml.authorizationattributemap': {
75
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
76
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
78
        },
79
        'saml.authorizationattributemapping': {
80
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
81
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
82
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
83
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
84
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
86
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
87
        },
88
        'saml.authorizationsppolicy': {
89
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
90
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
91
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
92
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
93
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
95
        },
96
        'saml.idpoptionssppolicy': {
97
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
98
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
99
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
100
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
101
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
102
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
107
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
108
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
109
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
110
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
111
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
112
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
113
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
114
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
115
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '200'}),
116
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
119
        },
120
        'saml.keyvalue': {
121
            'Meta': {'object_name': 'KeyValue'},
122
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
123
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
124
        },
125
        'saml.libertyartifact': {
126
            'Meta': {'object_name': 'LibertyArtifact'},
127
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
128
            'content': ('django.db.models.fields.TextField', [], {}),
129
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
130
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
131
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
132
        },
133
        'saml.libertyassertion': {
134
            'Meta': {'object_name': 'LibertyAssertion'},
135
            'assertion': ('django.db.models.fields.TextField', [], {}),
136
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
137
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
138
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
139
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
140
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
141
        },
142
        'saml.libertyfederation': {
143
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
144
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
145
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
146
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
147
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
148
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
149
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
150
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
151
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
152
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
153
        },
154
        'saml.libertyidentitydump': {
155
            'Meta': {'object_name': 'LibertyIdentityDump'},
156
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
157
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
158
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
159
        },
160
        'saml.libertyidentityprovider': {
161
            'Meta': {'object_name': 'LibertyIdentityProvider'},
162
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
163
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
164
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
167
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
168
        },
169
        'saml.libertymanagedump': {
170
            'Meta': {'object_name': 'LibertyManageDump'},
171
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
172
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
173
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
174
        },
175
        'saml.libertyprovider': {
176
            'Meta': {'object_name': 'LibertyProvider'},
177
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
178
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
179
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
180
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
181
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
182
            'metadata': ('django.db.models.fields.TextField', [], {}),
183
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
184
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
185
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
186
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
187
        },
188
        'saml.libertyproviderpolicy': {
189
            'Meta': {'object_name': 'LibertyProviderPolicy'},
190
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
191
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
192
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
193
        },
194
        'saml.libertyserviceprovider': {
195
            'Meta': {'object_name': 'LibertyServiceProvider'},
196
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': "orm['idp.AttributePolicy']"}),
197
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
198
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
199
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
200
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
201
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
202
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': "orm['saml.SPOptionsIdPPolicy']"})
203
        },
204
        'saml.libertysession': {
205
            'Meta': {'object_name': 'LibertySession'},
206
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
207
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
208
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
209
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
210
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
211
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
212
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
213
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
214
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
215
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
216
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
217
        },
218
        'saml.libertysessiondump': {
219
            'Meta': {'object_name': 'LibertySessionDump'},
220
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
221
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
222
            'kind': ('django.db.models.fields.IntegerField', [], {}),
223
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
224
        },
225
        'saml.libertysessionsp': {
226
            'Meta': {'object_name': 'LibertySessionSP'},
227
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
228
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
229
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
230
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
231
        },
232
        'saml.spoptionsidppolicy': {
233
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
234
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
235
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
236
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
237
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
238
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
239
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
240
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
241
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
242
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
243
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
244
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
245
        }
246
    }
247

  
248
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0014_auto__add_field_idpoptionssppolicy_forward_slo.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14
        
15
        # Adding field 'IdPOptionsSPPolicy.forward_slo'
16
        db.add_column('saml_idpoptionssppolicy', 'forward_slo', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=False)
17

  
18

  
19
    def backwards(self, orm):
20
        
21
        # Deleting field 'IdPOptionsSPPolicy.forward_slo'
22
        db.delete_column('saml_idpoptionssppolicy', 'forward_slo')
23

  
24

  
25
    models = {
26
        'attribute_aggregator.attributesource': {
27
            'Meta': {'object_name': 'AttributeSource'},
28
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
30
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
31
        },
32
        user_model_label: {
33
            'Meta': {'object_name': user_model_label.split('.')[-1]},
34
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
        },
36
        'contenttypes.contenttype': {
37
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
38
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
39
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
41
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
42
        },
43
        'idp.attributeitem': {
44
            'Meta': {'object_name': 'AttributeItem'},
45
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
46
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
48
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
49
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
50
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
51
        },
52
        'idp.attributelist': {
53
            'Meta': {'object_name': 'AttributeList'},
54
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
55
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
57
        },
58
        'idp.attributepolicy': {
59
            'Meta': {'object_name': 'AttributePolicy'},
60
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
61
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
62
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
63
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
67
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
68
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
69
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
70
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
71
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
72
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
73
        },
74
        'saml.authorizationattributemap': {
75
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
76
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
78
        },
79
        'saml.authorizationattributemapping': {
80
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
81
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
82
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
83
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
84
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
86
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
87
        },
88
        'saml.authorizationsppolicy': {
89
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
90
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
91
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
92
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
93
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
95
        },
96
        'saml.idpoptionssppolicy': {
97
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
98
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
99
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
100
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
101
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
102
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
107
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
108
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
109
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
110
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
111
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
113
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
114
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
115
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '200'}),
117
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
120
        },
121
        'saml.keyvalue': {
122
            'Meta': {'object_name': 'KeyValue'},
123
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
124
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
125
        },
126
        'saml.libertyartifact': {
127
            'Meta': {'object_name': 'LibertyArtifact'},
128
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
129
            'content': ('django.db.models.fields.TextField', [], {}),
130
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
131
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
132
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
133
        },
134
        'saml.libertyassertion': {
135
            'Meta': {'object_name': 'LibertyAssertion'},
136
            'assertion': ('django.db.models.fields.TextField', [], {}),
137
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
138
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
139
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
140
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
141
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
142
        },
143
        'saml.libertyfederation': {
144
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
145
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
146
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
147
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
148
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
149
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
150
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
151
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
152
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
153
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
154
        },
155
        'saml.libertyidentitydump': {
156
            'Meta': {'object_name': 'LibertyIdentityDump'},
157
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
158
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
159
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
160
        },
161
        'saml.libertyidentityprovider': {
162
            'Meta': {'object_name': 'LibertyIdentityProvider'},
163
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
164
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
167
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
168
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
169
        },
170
        'saml.libertymanagedump': {
171
            'Meta': {'object_name': 'LibertyManageDump'},
172
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
173
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
174
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
175
        },
176
        'saml.libertyprovider': {
177
            'Meta': {'object_name': 'LibertyProvider'},
178
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
179
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
180
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
181
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
182
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
183
            'metadata': ('django.db.models.fields.TextField', [], {}),
184
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
185
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
186
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
187
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
188
        },
189
        'saml.libertyproviderpolicy': {
190
            'Meta': {'object_name': 'LibertyProviderPolicy'},
191
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
192
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
193
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
194
        },
195
        'saml.libertyserviceprovider': {
196
            'Meta': {'object_name': 'LibertyServiceProvider'},
197
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': "orm['idp.AttributePolicy']"}),
198
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
199
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
200
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
201
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
202
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
203
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': "orm['saml.SPOptionsIdPPolicy']"})
204
        },
205
        'saml.libertysession': {
206
            'Meta': {'object_name': 'LibertySession'},
207
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
208
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
209
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
210
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
211
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
212
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
213
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
214
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
215
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
216
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
217
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
218
        },
219
        'saml.libertysessiondump': {
220
            'Meta': {'object_name': 'LibertySessionDump'},
221
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
222
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
223
            'kind': ('django.db.models.fields.IntegerField', [], {}),
224
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
225
        },
226
        'saml.libertysessionsp': {
227
            'Meta': {'object_name': 'LibertySessionSP'},
228
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
229
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
230
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
231
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
232
        },
233
        'saml.spoptionsidppolicy': {
234
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
235
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
236
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
237
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
238
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
239
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
240
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
241
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
242
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
243
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
244
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
245
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
246
        }
247
    }
248

  
249
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0015_auto__add_field_spoptionsidppolicy_accept_slo.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14
        
15
        # Adding field 'SPOptionsIdPPolicy.accept_slo'
16
        db.add_column('saml_spoptionsidppolicy', 'accept_slo', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=False)
17

  
18

  
19
    def backwards(self, orm):
20
        
21
        # Deleting field 'SPOptionsIdPPolicy.accept_slo'
22
        db.delete_column('saml_spoptionsidppolicy', 'accept_slo')
23

  
24

  
25
    models = {
26
        'attribute_aggregator.attributesource': {
27
            'Meta': {'object_name': 'AttributeSource'},
28
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
30
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
31
        },
32
        user_model_label: {
33
            'Meta': {'object_name': user_model_label.split('.')[-1]},
34
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
        },
36
        'contenttypes.contenttype': {
37
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
38
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
39
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
41
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
42
        },
43
        'idp.attributeitem': {
44
            'Meta': {'object_name': 'AttributeItem'},
45
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
46
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
48
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
49
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
50
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
51
        },
52
        'idp.attributelist': {
53
            'Meta': {'object_name': 'AttributeList'},
54
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
55
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
57
        },
58
        'idp.attributepolicy': {
59
            'Meta': {'object_name': 'AttributePolicy'},
60
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
61
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
62
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
63
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
67
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
68
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
69
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
70
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
71
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
72
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
73
        },
74
        'saml.authorizationattributemap': {
75
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
76
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
78
        },
79
        'saml.authorizationattributemapping': {
80
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
81
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
82
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
83
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
84
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
86
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
87
        },
88
        'saml.authorizationsppolicy': {
89
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
90
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
91
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
92
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
93
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
95
        },
96
        'saml.idpoptionssppolicy': {
97
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
98
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
99
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
100
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
101
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
102
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
107
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
108
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
109
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
110
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
111
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
113
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
114
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
115
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '200'}),
117
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
120
        },
121
        'saml.keyvalue': {
122
            'Meta': {'object_name': 'KeyValue'},
123
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
124
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
125
        },
126
        'saml.libertyartifact': {
127
            'Meta': {'object_name': 'LibertyArtifact'},
128
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
129
            'content': ('django.db.models.fields.TextField', [], {}),
130
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
131
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
132
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
133
        },
134
        'saml.libertyassertion': {
135
            'Meta': {'object_name': 'LibertyAssertion'},
136
            'assertion': ('django.db.models.fields.TextField', [], {}),
137
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
138
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
139
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
140
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
141
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
142
        },
143
        'saml.libertyfederation': {
144
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
145
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
146
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
147
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
148
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
149
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
150
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
151
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
152
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
153
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
154
        },
155
        'saml.libertyidentitydump': {
156
            'Meta': {'object_name': 'LibertyIdentityDump'},
157
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
158
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
159
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
160
        },
161
        'saml.libertyidentityprovider': {
162
            'Meta': {'object_name': 'LibertyIdentityProvider'},
163
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
164
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
167
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
168
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
169
        },
170
        'saml.libertymanagedump': {
171
            'Meta': {'object_name': 'LibertyManageDump'},
172
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
173
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
174
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
175
        },
176
        'saml.libertyprovider': {
177
            'Meta': {'object_name': 'LibertyProvider'},
178
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
179
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
180
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
181
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
182
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
183
            'metadata': ('django.db.models.fields.TextField', [], {}),
184
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
185
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
186
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
187
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
188
        },
189
        'saml.libertyproviderpolicy': {
190
            'Meta': {'object_name': 'LibertyProviderPolicy'},
191
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
192
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
193
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
194
        },
195
        'saml.libertyserviceprovider': {
196
            'Meta': {'object_name': 'LibertyServiceProvider'},
197
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': "orm['idp.AttributePolicy']"}),
198
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
199
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
200
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
201
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
202
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
203
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': "orm['saml.SPOptionsIdPPolicy']"})
204
        },
205
        'saml.libertysession': {
206
            'Meta': {'object_name': 'LibertySession'},
207
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
208
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
209
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
210
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
211
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
212
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
213
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
214
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
215
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
216
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
217
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
218
        },
219
        'saml.libertysessiondump': {
220
            'Meta': {'object_name': 'LibertySessionDump'},
221
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
222
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
223
            'kind': ('django.db.models.fields.IntegerField', [], {}),
224
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
225
        },
226
        'saml.libertysessionsp': {
227
            'Meta': {'object_name': 'LibertySessionSP'},
228
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
229
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
230
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
231
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
232
        },
233
        'saml.spoptionsidppolicy': {
234
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
235
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
236
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
237
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
238
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
239
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
240
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
241
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
242
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
243
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
244
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
246
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
247
        }
248
    }
249

  
250
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0016_auto__add_field_spoptionsidppolicy_forward_slo.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14
        
15
        # Adding field 'SPOptionsIdPPolicy.forward_slo'
16
        db.add_column('saml_spoptionsidppolicy', 'forward_slo', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=False)
17

  
18

  
19
    def backwards(self, orm):
20
        
21
        # Deleting field 'SPOptionsIdPPolicy.forward_slo'
22
        db.delete_column('saml_spoptionsidppolicy', 'forward_slo')
23

  
24

  
25
    models = {
26
        'attribute_aggregator.attributesource': {
27
            'Meta': {'object_name': 'AttributeSource'},
28
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
30
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
31
        },
32
        user_model_label: {
33
            'Meta': {'object_name': user_model_label.split('.')[-1]},
34
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
        },
36
        'idp.attributeitem': {
37
            'Meta': {'object_name': 'AttributeItem'},
38
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
39
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
41
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
42
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
43
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
44
        },
45
        'idp.attributelist': {
46
            'Meta': {'object_name': 'AttributeList'},
47
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
48
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
50
        },
51
        'idp.attributepolicy': {
52
            'Meta': {'object_name': 'AttributePolicy'},
53
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
54
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
55
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
56
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
57
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
58
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
60
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
62
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
63
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
64
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
66
        },
67
        'saml.authorizationattributemap': {
68
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
69
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
71
        },
72
        'saml.authorizationattributemapping': {
73
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
74
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
75
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
76
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
77
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
79
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
80
        },
81
        'saml.authorizationsppolicy': {
82
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
83
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
84
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
85
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
86
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
87
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
88
        },
89
        'saml.idpoptionssppolicy': {
90
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
91
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
92
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
93
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
94
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
95
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
96
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
97
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
98
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
99
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
100
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
101
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
102
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
103
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
104
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
105
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
106
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
107
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
108
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109
            'user_consent': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:consent:current-implicit'", 'max_length': '200'}),
110
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
113
        },
114
        'saml.keyvalue': {
115
            'Meta': {'object_name': 'KeyValue'},
116
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
117
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
118
        },
119
        'saml.libertyartifact': {
120
            'Meta': {'object_name': 'LibertyArtifact'},
121
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
122
            'content': ('django.db.models.fields.TextField', [], {}),
123
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
124
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
125
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
126
        },
127
        'saml.libertyassertion': {
128
            'Meta': {'object_name': 'LibertyAssertion'},
129
            'assertion': ('django.db.models.fields.TextField', [], {}),
130
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
131
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
132
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
133
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
134
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
135
        },
136
        'saml.libertyfederation': {
137
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
138
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
139
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
140
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
141
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
142
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
143
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
144
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
145
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
146
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
147
        },
148
        'saml.libertyidentitydump': {
149
            'Meta': {'object_name': 'LibertyIdentityDump'},
150
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
151
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
152
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
153
        },
154
        'saml.libertyidentityprovider': {
155
            'Meta': {'object_name': 'LibertyIdentityProvider'},
156
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
157
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
158
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
159
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
160
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
161
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
162
        },
163
        'saml.libertymanagedump': {
164
            'Meta': {'object_name': 'LibertyManageDump'},
165
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
166
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
167
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
168
        },
169
        'saml.libertyprovider': {
170
            'Meta': {'object_name': 'LibertyProvider'},
171
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
172
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
173
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
174
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
175
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
176
            'metadata': ('django.db.models.fields.TextField', [], {}),
177
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
178
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
179
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
180
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
181
        },
182
        'saml.libertyproviderpolicy': {
183
            'Meta': {'object_name': 'LibertyProviderPolicy'},
184
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
185
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
186
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
187
        },
188
        'saml.libertyserviceprovider': {
189
            'Meta': {'object_name': 'LibertyServiceProvider'},
190
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': "orm['idp.AttributePolicy']"}),
191
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
192
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
193
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
194
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
195
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
196
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': "orm['saml.SPOptionsIdPPolicy']"})
197
        },
198
        'saml.libertysession': {
199
            'Meta': {'object_name': 'LibertySession'},
200
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
201
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
202
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
203
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
204
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
205
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
206
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
207
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
208
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
209
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
210
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
211
        },
212
        'saml.libertysessiondump': {
213
            'Meta': {'object_name': 'LibertySessionDump'},
214
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
215
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
216
            'kind': ('django.db.models.fields.IntegerField', [], {}),
217
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
218
        },
219
        'saml.libertysessionsp': {
220
            'Meta': {'object_name': 'LibertySessionSP'},
221
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
222
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
223
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
224
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
225
        },
226
        'saml.spoptionsidppolicy': {
227
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
228
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
229
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
230
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
231
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
232
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
233
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
234
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
235
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
236
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
237
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
238
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
239
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
240
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
241
        }
242
    }
243

  
244
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0017_auto__del_field_idpoptionssppolicy_user_consent__add_field_idpoptionss.py
1
# encoding: utf-8
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14
        
15
        # Deleting field 'IdPOptionsSPPolicy.user_consent'
16
        db.delete_column('saml_idpoptionssppolicy', 'user_consent')
17

  
18
        # Adding field 'IdPOptionsSPPolicy.force_user_consent'
19
        db.add_column('saml_idpoptionssppolicy', 'force_user_consent', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
20

  
21

  
22
    def backwards(self, orm):
23
        
24
        # Adding field 'IdPOptionsSPPolicy.user_consent'
25
        db.add_column('saml_idpoptionssppolicy', 'user_consent', self.gf('django.db.models.fields.CharField')(default='urn:oasis:names:tc:SAML:2.0:consent:current-implicit', max_length=200), keep_default=False)
26

  
27
        # Deleting field 'IdPOptionsSPPolicy.force_user_consent'
28
        db.delete_column('saml_idpoptionssppolicy', 'force_user_consent')
29

  
30

  
31
    models = {
32
        'attribute_aggregator.attributesource': {
33
            'Meta': {'object_name': 'AttributeSource'},
34
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
36
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
37
        },
38
        user_model_label: {
39
            'Meta': {'object_name': user_model_label.split('.')[-1]},
40
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
        },
42
        'idp.attributeitem': {
43
            'Meta': {'object_name': 'AttributeItem'},
44
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
45
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
47
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
48
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
49
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
50
        },
51
        'idp.attributelist': {
52
            'Meta': {'object_name': 'AttributeList'},
53
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['idp.AttributeItem']"}),
54
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
55
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
56
        },
57
        'idp.attributepolicy': {
58
            'Meta': {'object_name': 'AttributePolicy'},
59
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
60
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
61
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
62
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': "orm['idp.AttributeList']"}),
63
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
66
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
68
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
69
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
70
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
71
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
72
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
73
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': "orm['attribute_aggregator.AttributeSource']"})
74
        },
75
        'saml.authorizationattributemap': {
76
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
77
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
79
        },
80
        'saml.authorizationattributemapping': {
81
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
82
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
83
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
84
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
85
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
86
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.AuthorizationAttributeMap']"}),
87
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
88
        },
89
        'saml.authorizationsppolicy': {
90
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
91
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': "orm['saml.AuthorizationAttributeMap']"}),
92
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
93
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
94
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
95
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
96
        },
97
        'saml.idpoptionssppolicy': {
98
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
99
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
100
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
101
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
102
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
103
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
107
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
108
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
109
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
110
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
111
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
112
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
113
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
114
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
115
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
117
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
121
        },
122
        'saml.keyvalue': {
123
            'Meta': {'object_name': 'KeyValue'},
124
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
125
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
126
        },
127
        'saml.libertyartifact': {
128
            'Meta': {'object_name': 'LibertyArtifact'},
129
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
130
            'content': ('django.db.models.fields.TextField', [], {}),
131
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
132
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
133
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
134
        },
135
        'saml.libertyassertion': {
136
            'Meta': {'object_name': 'LibertyAssertion'},
137
            'assertion': ('django.db.models.fields.TextField', [], {}),
138
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
139
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
140
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
141
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
142
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
143
        },
144
        'saml.libertyfederation': {
145
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
146
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
147
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
148
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
149
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
150
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
151
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
152
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
153
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
154
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label})
155
        },
156
        'saml.libertyidentitydump': {
157
            'Meta': {'object_name': 'LibertyIdentityDump'},
158
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
159
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
160
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['%s']" % user_model_label, 'unique': 'True'})
161
        },
162
        'saml.libertyidentityprovider': {
163
            'Meta': {'object_name': 'LibertyIdentityProvider'},
164
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': "orm['saml.AuthorizationSPPolicy']"}),
165
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
167
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
168
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': "orm['saml.IdPOptionsSPPolicy']"}),
169
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"})
170
        },
171
        'saml.libertymanagedump': {
172
            'Meta': {'object_name': 'LibertyManageDump'},
173
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
174
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
175
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
176
        },
177
        'saml.libertyprovider': {
178
            'Meta': {'object_name': 'LibertyProvider'},
179
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
180
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
181
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
182
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
183
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
184
            'metadata': ('django.db.models.fields.TextField', [], {}),
185
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
186
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
187
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
188
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
189
        },
190
        'saml.libertyproviderpolicy': {
191
            'Meta': {'object_name': 'LibertyProviderPolicy'},
192
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
193
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
194
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
195
        },
196
        'saml.libertyserviceprovider': {
197
            'Meta': {'object_name': 'LibertyServiceProvider'},
198
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': "orm['idp.AttributePolicy']"}),
199
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
200
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
201
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
202
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': "orm['saml.LibertyProvider']"}),
203
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': "orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
204
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': "orm['saml.SPOptionsIdPPolicy']"})
205
        },
206
        'saml.libertysession': {
207
            'Meta': {'object_name': 'LibertySession'},
208
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyAssertion']", 'null': 'True'}),
209
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
210
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
211
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']", 'null': 'True'}),
212
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
213
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
214
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
215
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True'}),
216
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
217
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
218
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
219
        },
220
        'saml.libertysessiondump': {
221
            'Meta': {'object_name': 'LibertySessionDump'},
222
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
223
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
224
            'kind': ('django.db.models.fields.IntegerField', [], {}),
225
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
226
        },
227
        'saml.libertysessionsp': {
228
            'Meta': {'object_name': 'LibertySessionSP'},
229
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
230
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['saml.LibertyFederation']"}),
231
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
232
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
233
        },
234
        'saml.spoptionsidppolicy': {
235
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
236
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
237
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
238
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
239
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
240
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
241
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
242
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
243
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
244
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
245
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
246
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
247
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
248
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
249
        }
250
    }
251

  
252
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0018_auto__chg_field_libertyfederation_user__chg_field_libertyidentitydump_.py
1
# -*- coding: utf-8 -*-
2
from south.v2 import SchemaMigration
3

  
4

  
5
class Migration(SchemaMigration):
6
    def forwards(self, orm):
7
        pass
8

  
9
    def backwards(self, orm):
10
        pass
src/authentic2/saml/south_migrations/0019_auto__chg_field_libertysession_provider_id__chg_field_libertysession_n.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14

  
15
        # Changing field 'LibertySession.provider_id'
16
        db.alter_column(u'saml_libertysession', 'provider_id', self.gf('django.db.models.fields.CharField')(max_length=256))
17

  
18
        # Changing field 'LibertySession.name_id_sp_name_qualifier'
19
        db.alter_column(u'saml_libertysession', 'name_id_sp_name_qualifier', self.gf('django.db.models.fields.CharField')(max_length=256, null=True))
20

  
21
        # Changing field 'LibertySession.name_id_qualifier'
22
        db.alter_column(u'saml_libertysession', 'name_id_qualifier', self.gf('django.db.models.fields.CharField')(max_length=256, null=True))
23

  
24
    def backwards(self, orm):
25

  
26
        # Changing field 'LibertySession.provider_id'
27
        db.alter_column(u'saml_libertysession', 'provider_id', self.gf('django.db.models.fields.CharField')(max_length=80))
28

  
29
        # Changing field 'LibertySession.name_id_sp_name_qualifier'
30
        db.alter_column(u'saml_libertysession', 'name_id_sp_name_qualifier', self.gf('django.db.models.fields.CharField')(max_length=100, null=True))
31

  
32
        # Changing field 'LibertySession.name_id_qualifier'
33
        db.alter_column(u'saml_libertysession', 'name_id_qualifier', self.gf('django.db.models.fields.CharField')(max_length=150, null=True))
34

  
35
    models = {
36
        u'attribute_aggregator.attributesource': {
37
            'Meta': {'object_name': 'AttributeSource'},
38
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
39
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
40
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
41
        },
42
        user_model_label: {
43
            'Meta': {'object_name': user_model_label.split('.')[-1]},
44
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45
        },
46
        u'idp.attributeitem': {
47
            'Meta': {'object_name': 'AttributeItem'},
48
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
49
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
51
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
52
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
53
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
54
        },
55
        u'idp.attributelist': {
56
            'Meta': {'object_name': 'AttributeList'},
57
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
58
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
60
        },
61
        u'idp.attributepolicy': {
62
            'Meta': {'object_name': 'AttributePolicy'},
63
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
64
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
65
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
66
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
67
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
68
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
69
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
71
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
72
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
73
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
74
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
75
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
76
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
77
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
78
        },
79
        u'saml.authorizationattributemap': {
80
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
81
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
83
        },
84
        u'saml.authorizationattributemapping': {
85
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
86
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
87
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
88
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
89
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
90
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
91
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
92
        },
93
        u'saml.authorizationsppolicy': {
94
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
95
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
96
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
97
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
98
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
99
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
100
        },
101
        u'saml.idpoptionssppolicy': {
102
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
103
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
104
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
106
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
107
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
108
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
113
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
114
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
115
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
116
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
117
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
118
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
119
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
121
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
122
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
123
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
124
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
125
        },
126
        u'saml.keyvalue': {
127
            'Meta': {'object_name': 'KeyValue'},
128
            'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
129
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
130
        },
131
        u'saml.libertyartifact': {
132
            'Meta': {'object_name': 'LibertyArtifact'},
133
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
134
            'content': ('django.db.models.fields.TextField', [], {}),
135
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
136
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
137
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
138
        },
139
        u'saml.libertyassertion': {
140
            'Meta': {'object_name': 'LibertyAssertion'},
141
            'assertion': ('django.db.models.fields.TextField', [], {}),
142
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
143
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
144
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
145
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
146
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
147
        },
148
        u'saml.libertyfederation': {
149
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
150
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
151
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
152
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
153
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
154
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
155
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
156
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
157
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
158
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label})
159
        },
160
        u'saml.libertyidentitydump': {
161
            'Meta': {'object_name': 'LibertyIdentityDump'},
162
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
163
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
164
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'unique': 'True'})
165
        },
166
        u'saml.libertyidentityprovider': {
167
            'Meta': {'object_name': 'LibertyIdentityProvider'},
168
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
169
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
170
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
171
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
172
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
173
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
174
        },
175
        u'saml.libertymanagedump': {
176
            'Meta': {'object_name': 'LibertyManageDump'},
177
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
178
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
179
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
180
        },
181
        u'saml.libertyprovider': {
182
            'Meta': {'object_name': 'LibertyProvider'},
183
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
184
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
185
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
186
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
187
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
188
            'metadata': ('django.db.models.fields.TextField', [], {}),
189
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
190
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
191
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
192
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
193
        },
194
        u'saml.libertyproviderpolicy': {
195
            'Meta': {'object_name': 'LibertyProviderPolicy'},
196
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
197
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
198
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
199
        },
200
        u'saml.libertyserviceprovider': {
201
            'Meta': {'object_name': 'LibertyServiceProvider'},
202
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
203
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
204
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
205
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
206
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
207
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
208
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
209
        },
210
        u'saml.libertysession': {
211
            'Meta': {'object_name': 'LibertySession'},
212
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
213
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
214
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
215
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
216
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
217
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
218
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
219
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
220
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
221
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
222
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
223
        },
224
        u'saml.libertysessiondump': {
225
            'Meta': {'object_name': 'LibertySessionDump'},
226
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
227
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
228
            'kind': ('django.db.models.fields.IntegerField', [], {}),
229
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
230
        },
231
        u'saml.libertysessionsp': {
232
            'Meta': {'object_name': 'LibertySessionSP'},
233
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
234
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
235
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
236
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
237
        },
238
        u'saml.spoptionsidppolicy': {
239
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
240
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
241
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
242
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
243
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
244
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
245
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
246
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
247
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
248
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
249
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
250
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
251
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
252
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
253
        }
254
    }
255

  
256
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0020_auto__chg_field_keyvalue_key.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14

  
15
        # Changing field 'KeyValue.key'
16
        db.alter_column(u'saml_keyvalue', 'key', self.gf('django.db.models.fields.CharField')(max_length=128, primary_key=True))
17

  
18
    def backwards(self, orm):
19

  
20
        # Changing field 'KeyValue.key'
21
        db.alter_column(u'saml_keyvalue', 'key', self.gf('django.db.models.fields.CharField')(max_length=40, primary_key=True))
22

  
23
    models = {
24
        u'attribute_aggregator.attributesource': {
25
            'Meta': {'object_name': 'AttributeSource'},
26
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
28
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
29
        },
30
        user_model_label: {
31
            'Meta': {'object_name': user_model_label.split('.')[-1]},
32
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
        },
34
        u'idp.attributeitem': {
35
            'Meta': {'object_name': 'AttributeItem'},
36
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
37
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
39
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
40
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
41
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
42
        },
43
        u'idp.attributelist': {
44
            'Meta': {'object_name': 'AttributeList'},
45
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
46
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
48
        },
49
        u'idp.attributepolicy': {
50
            'Meta': {'object_name': 'AttributePolicy'},
51
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
52
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
53
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
54
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
55
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
56
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
57
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
58
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
60
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
62
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
63
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
64
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
66
        },
67
        u'saml.authorizationattributemap': {
68
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
69
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
71
        },
72
        u'saml.authorizationattributemapping': {
73
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
74
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
75
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
76
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
77
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
79
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
80
        },
81
        u'saml.authorizationsppolicy': {
82
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
83
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
84
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
85
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
86
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
87
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
88
        },
89
        u'saml.idpoptionssppolicy': {
90
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
91
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
92
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
93
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
94
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
95
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
96
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
97
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
98
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
99
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
100
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
101
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
102
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
103
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
104
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
105
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
106
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
107
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
108
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
109
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
113
        },
114
        u'saml.keyvalue': {
115
            'Meta': {'object_name': 'KeyValue'},
116
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
117
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
118
        },
119
        u'saml.libertyartifact': {
120
            'Meta': {'object_name': 'LibertyArtifact'},
121
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
122
            'content': ('django.db.models.fields.TextField', [], {}),
123
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
124
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
125
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
126
        },
127
        u'saml.libertyassertion': {
128
            'Meta': {'object_name': 'LibertyAssertion'},
129
            'assertion': ('django.db.models.fields.TextField', [], {}),
130
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
131
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
132
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
133
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
134
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
135
        },
136
        u'saml.libertyfederation': {
137
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
138
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
139
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
140
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
141
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
142
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '150', 'null': 'True', 'blank': 'True'}),
143
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
144
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
145
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
146
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label})
147
        },
148
        u'saml.libertyidentitydump': {
149
            'Meta': {'object_name': 'LibertyIdentityDump'},
150
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
151
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
152
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'unique': 'True'})
153
        },
154
        u'saml.libertyidentityprovider': {
155
            'Meta': {'object_name': 'LibertyIdentityProvider'},
156
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
157
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
158
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
159
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
160
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
161
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
162
        },
163
        u'saml.libertymanagedump': {
164
            'Meta': {'object_name': 'LibertyManageDump'},
165
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
166
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
167
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
168
        },
169
        u'saml.libertyprovider': {
170
            'Meta': {'object_name': 'LibertyProvider'},
171
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
172
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
173
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
174
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
175
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
176
            'metadata': ('django.db.models.fields.TextField', [], {}),
177
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
178
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
179
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
180
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
181
        },
182
        u'saml.libertyproviderpolicy': {
183
            'Meta': {'object_name': 'LibertyProviderPolicy'},
184
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
185
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
186
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
187
        },
188
        u'saml.libertyserviceprovider': {
189
            'Meta': {'object_name': 'LibertyServiceProvider'},
190
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
191
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
192
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
193
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
194
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
195
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
196
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
197
        },
198
        u'saml.libertysession': {
199
            'Meta': {'object_name': 'LibertySession'},
200
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
201
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
202
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
203
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
204
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
205
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
206
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
207
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
208
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
209
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
210
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
211
        },
212
        u'saml.libertysessiondump': {
213
            'Meta': {'object_name': 'LibertySessionDump'},
214
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
215
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
216
            'kind': ('django.db.models.fields.IntegerField', [], {}),
217
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
218
        },
219
        u'saml.libertysessionsp': {
220
            'Meta': {'object_name': 'LibertySessionSP'},
221
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
222
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
223
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
224
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
225
        },
226
        u'saml.spoptionsidppolicy': {
227
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
228
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
229
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
230
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
231
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
232
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
233
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
234
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
235
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
236
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
237
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
238
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
239
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
240
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
241
        }
242
    }
243

  
244
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0021_auto__chg_field_libertyfederation_idp_id__chg_field_libertyfederation_.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14

  
15
        # Changing field 'LibertyFederation.idp_id'
16
        db.alter_column(u'saml_libertyfederation', 'idp_id', self.gf('django.db.models.fields.CharField')(max_length=256))
17

  
18
        # Changing field 'LibertyFederation.name_id_sp_provided_id'
19
        db.alter_column(u'saml_libertyfederation', 'name_id_sp_provided_id', self.gf('django.db.models.fields.CharField')(max_length=256, null=True))
20

  
21
        # Changing field 'LibertyFederation.name_id_sp_name_qualifier'
22
        db.alter_column(u'saml_libertyfederation', 'name_id_sp_name_qualifier', self.gf('django.db.models.fields.CharField')(max_length=256, null=True))
23

  
24
        # Changing field 'LibertyFederation.sp_id'
25
        db.alter_column(u'saml_libertyfederation', 'sp_id', self.gf('django.db.models.fields.CharField')(max_length=256))
26

  
27
        # Changing field 'LibertyFederation.name_id_qualifier'
28
        db.alter_column(u'saml_libertyfederation', 'name_id_qualifier', self.gf('django.db.models.fields.CharField')(max_length=256, null=True))
29

  
30
    def backwards(self, orm):
31

  
32
        # Changing field 'LibertyFederation.idp_id'
33
        db.alter_column(u'saml_libertyfederation', 'idp_id', self.gf('django.db.models.fields.CharField')(max_length=80))
34

  
35
        # Changing field 'LibertyFederation.name_id_sp_provided_id'
36
        db.alter_column(u'saml_libertyfederation', 'name_id_sp_provided_id', self.gf('django.db.models.fields.CharField')(max_length=100, null=True))
37

  
38
        # Changing field 'LibertyFederation.name_id_sp_name_qualifier'
39
        db.alter_column(u'saml_libertyfederation', 'name_id_sp_name_qualifier', self.gf('django.db.models.fields.CharField')(max_length=100, null=True))
40

  
41
        # Changing field 'LibertyFederation.sp_id'
42
        db.alter_column(u'saml_libertyfederation', 'sp_id', self.gf('django.db.models.fields.CharField')(max_length=80))
43

  
44
        # Changing field 'LibertyFederation.name_id_qualifier'
45
        db.alter_column(u'saml_libertyfederation', 'name_id_qualifier', self.gf('django.db.models.fields.CharField')(max_length=150, null=True))
46

  
47
    models = {
48
        u'attribute_aggregator.attributesource': {
49
            'Meta': {'object_name': 'AttributeSource'},
50
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
52
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
53
        },
54
        user_model_label: {
55
            'Meta': {'object_name': user_model_label.split('.')[-1]},
56
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57
        },
58
        u'idp.attributeitem': {
59
            'Meta': {'object_name': 'AttributeItem'},
60
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
61
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
62
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
63
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
64
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
66
        },
67
        u'idp.attributelist': {
68
            'Meta': {'object_name': 'AttributeList'},
69
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
70
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
71
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
72
        },
73
        u'idp.attributepolicy': {
74
            'Meta': {'object_name': 'AttributePolicy'},
75
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
76
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
77
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
78
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
79
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
80
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
82
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
84
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
85
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
86
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
87
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
88
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
89
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
90
        },
91
        u'saml.authorizationattributemap': {
92
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
93
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
95
        },
96
        u'saml.authorizationattributemapping': {
97
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
98
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
99
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
100
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
101
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
102
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
103
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
104
        },
105
        u'saml.authorizationsppolicy': {
106
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
107
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
108
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
109
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
111
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
112
        },
113
        u'saml.idpoptionssppolicy': {
114
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
115
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
116
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
118
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
119
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
121
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
122
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
123
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
124
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
125
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
126
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
127
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
128
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
129
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
130
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
131
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
132
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
133
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
134
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
135
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
136
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
137
        },
138
        u'saml.keyvalue': {
139
            'Meta': {'object_name': 'KeyValue'},
140
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
141
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
142
        },
143
        u'saml.libertyartifact': {
144
            'Meta': {'object_name': 'LibertyArtifact'},
145
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
146
            'content': ('django.db.models.fields.TextField', [], {}),
147
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
148
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
149
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'})
150
        },
151
        u'saml.libertyassertion': {
152
            'Meta': {'object_name': 'LibertyAssertion'},
153
            'assertion': ('django.db.models.fields.TextField', [], {}),
154
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
155
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
156
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
157
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
158
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
159
        },
160
        u'saml.libertyfederation': {
161
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
162
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
163
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
164
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
165
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
166
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
167
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
168
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
169
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
170
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label})
171
        },
172
        u'saml.libertyidentitydump': {
173
            'Meta': {'object_name': 'LibertyIdentityDump'},
174
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
175
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
176
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'unique': 'True'})
177
        },
178
        u'saml.libertyidentityprovider': {
179
            'Meta': {'object_name': 'LibertyIdentityProvider'},
180
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
181
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
182
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
183
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
184
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
185
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
186
        },
187
        u'saml.libertymanagedump': {
188
            'Meta': {'object_name': 'LibertyManageDump'},
189
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
190
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
191
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
192
        },
193
        u'saml.libertyprovider': {
194
            'Meta': {'object_name': 'LibertyProvider'},
195
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
196
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
197
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
198
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
199
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
200
            'metadata': ('django.db.models.fields.TextField', [], {}),
201
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
202
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
203
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
204
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
205
        },
206
        u'saml.libertyproviderpolicy': {
207
            'Meta': {'object_name': 'LibertyProviderPolicy'},
208
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
209
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
210
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
211
        },
212
        u'saml.libertyserviceprovider': {
213
            'Meta': {'object_name': 'LibertyServiceProvider'},
214
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
215
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
216
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
217
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
218
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
219
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
220
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
221
        },
222
        u'saml.libertysession': {
223
            'Meta': {'object_name': 'LibertySession'},
224
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
225
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
226
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
227
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
228
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
229
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
230
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
231
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
232
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
233
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
234
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
235
        },
236
        u'saml.libertysessiondump': {
237
            'Meta': {'object_name': 'LibertySessionDump'},
238
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
239
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
240
            'kind': ('django.db.models.fields.IntegerField', [], {}),
241
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
242
        },
243
        u'saml.libertysessionsp': {
244
            'Meta': {'object_name': 'LibertySessionSP'},
245
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
246
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
247
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
248
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
249
        },
250
        u'saml.spoptionsidppolicy': {
251
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
252
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
253
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
254
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
255
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
256
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
257
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
258
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
259
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
260
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
261
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
262
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
263
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
264
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
265
        }
266
    }
267

  
268
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0022_auto__chg_field_libertysession_django_session_key__chg_field_libertyar.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14

  
15
        # Changing field 'LibertySession.django_session_key'
16
        db.alter_column(u'saml_libertysession', 'django_session_key', self.gf('django.db.models.fields.CharField')(max_length=128))
17

  
18
        # Changing field 'LibertyArtifact.provider_id'
19
        db.alter_column(u'saml_libertyartifact', 'provider_id', self.gf('django.db.models.fields.CharField')(max_length=256))
20

  
21
        # Changing field 'LibertyArtifact.artifact'
22
        db.alter_column(u'saml_libertyartifact', 'artifact', self.gf('django.db.models.fields.CharField')(max_length=128, primary_key=True))
23

  
24
        # Changing field 'LibertyArtifact.django_session_key'
25
        db.alter_column(u'saml_libertyartifact', 'django_session_key', self.gf('django.db.models.fields.CharField')(max_length=128))
26

  
27
        # Changing field 'LibertyManageDump.django_session_key'
28
        db.alter_column(u'saml_libertymanagedump', 'django_session_key', self.gf('django.db.models.fields.CharField')(max_length=128))
29

  
30
        # Changing field 'LibertySessionSP.django_session_key'
31
        db.alter_column(u'saml_libertysessionsp', 'django_session_key', self.gf('django.db.models.fields.CharField')(max_length=128))
32

  
33
        # Changing field 'LibertyAssertion.provider_id'
34
        db.alter_column(u'saml_libertyassertion', 'provider_id', self.gf('django.db.models.fields.CharField')(max_length=256))
35

  
36
        # Changing field 'LibertyAssertion.assertion_id'
37
        db.alter_column(u'saml_libertyassertion', 'assertion_id', self.gf('django.db.models.fields.CharField')(max_length=128))
38

  
39
        # Changing field 'LibertyAssertion.session_index'
40
        db.alter_column(u'saml_libertyassertion', 'session_index', self.gf('django.db.models.fields.CharField')(max_length=128))
41

  
42
        # Changing field 'LibertySessionDump.django_session_key'
43
        db.alter_column(u'saml_libertysessiondump', 'django_session_key', self.gf('django.db.models.fields.CharField')(max_length=128))
44

  
45
    def backwards(self, orm):
46

  
47
        # Changing field 'LibertySession.django_session_key'
48
        db.alter_column(u'saml_libertysession', 'django_session_key', self.gf('django.db.models.fields.CharField')(max_length=40))
49

  
50
        # Changing field 'LibertyArtifact.provider_id'
51
        db.alter_column(u'saml_libertyartifact', 'provider_id', self.gf('django.db.models.fields.CharField')(max_length=80))
52

  
53
        # Changing field 'LibertyArtifact.artifact'
54
        db.alter_column(u'saml_libertyartifact', 'artifact', self.gf('django.db.models.fields.CharField')(max_length=40, primary_key=True))
55

  
56
        # Changing field 'LibertyArtifact.django_session_key'
57
        db.alter_column(u'saml_libertyartifact', 'django_session_key', self.gf('django.db.models.fields.CharField')(max_length=40))
58

  
59
        # Changing field 'LibertyManageDump.django_session_key'
60
        db.alter_column(u'saml_libertymanagedump', 'django_session_key', self.gf('django.db.models.fields.CharField')(max_length=40))
61

  
62
        # Changing field 'LibertySessionSP.django_session_key'
63
        db.alter_column(u'saml_libertysessionsp', 'django_session_key', self.gf('django.db.models.fields.CharField')(max_length=40))
64

  
65
        # Changing field 'LibertyAssertion.provider_id'
66
        db.alter_column(u'saml_libertyassertion', 'provider_id', self.gf('django.db.models.fields.CharField')(max_length=80))
67

  
68
        # Changing field 'LibertyAssertion.assertion_id'
69
        db.alter_column(u'saml_libertyassertion', 'assertion_id', self.gf('django.db.models.fields.CharField')(max_length=50))
70

  
71
        # Changing field 'LibertyAssertion.session_index'
72
        db.alter_column(u'saml_libertyassertion', 'session_index', self.gf('django.db.models.fields.CharField')(max_length=80))
73

  
74
        # Changing field 'LibertySessionDump.django_session_key'
75
        db.alter_column(u'saml_libertysessiondump', 'django_session_key', self.gf('django.db.models.fields.CharField')(max_length=40))
76

  
77
    models = {
78
        u'attribute_aggregator.attributesource': {
79
            'Meta': {'object_name': 'AttributeSource'},
80
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
81
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
82
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
83
        },
84
        user_model_label: {
85
            'Meta': {'object_name': user_model_label.split('.')[-1]},
86
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
87
        },
88
        u'idp.attributeitem': {
89
            'Meta': {'object_name': 'AttributeItem'},
90
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
91
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
92
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
93
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
94
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
95
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
96
        },
97
        u'idp.attributelist': {
98
            'Meta': {'object_name': 'AttributeList'},
99
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
100
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
101
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
102
        },
103
        u'idp.attributepolicy': {
104
            'Meta': {'object_name': 'AttributePolicy'},
105
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
106
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
107
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
108
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
109
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
113
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
114
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
115
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
116
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
117
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
118
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
120
        },
121
        u'saml.authorizationattributemap': {
122
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
123
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
124
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
125
        },
126
        u'saml.authorizationattributemapping': {
127
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
128
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
129
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
130
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
131
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
132
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
133
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
134
        },
135
        u'saml.authorizationsppolicy': {
136
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
137
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
138
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
139
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
140
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
141
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
142
        },
143
        u'saml.idpoptionssppolicy': {
144
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
145
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
146
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
147
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
148
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
149
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
150
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
151
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
152
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
153
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
154
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
155
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
156
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
157
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
158
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
159
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
160
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
161
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
162
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
163
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
164
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
167
        },
168
        u'saml.keyvalue': {
169
            'Meta': {'object_name': 'KeyValue'},
170
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
171
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
172
        },
173
        u'saml.libertyartifact': {
174
            'Meta': {'object_name': 'LibertyArtifact'},
175
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
176
            'content': ('django.db.models.fields.TextField', [], {}),
177
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
178
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
179
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
180
        },
181
        u'saml.libertyassertion': {
182
            'Meta': {'object_name': 'LibertyAssertion'},
183
            'assertion': ('django.db.models.fields.TextField', [], {}),
184
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
185
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
186
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
187
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
188
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
189
        },
190
        u'saml.libertyfederation': {
191
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
192
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
193
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
194
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
195
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
196
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
197
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
198
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
199
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
200
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label})
201
        },
202
        u'saml.libertyidentitydump': {
203
            'Meta': {'object_name': 'LibertyIdentityDump'},
204
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
205
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
206
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'unique': 'True'})
207
        },
208
        u'saml.libertyidentityprovider': {
209
            'Meta': {'object_name': 'LibertyIdentityProvider'},
210
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
211
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
212
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
213
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
214
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
215
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
216
        },
217
        u'saml.libertymanagedump': {
218
            'Meta': {'object_name': 'LibertyManageDump'},
219
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
220
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
221
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
222
        },
223
        u'saml.libertyprovider': {
224
            'Meta': {'object_name': 'LibertyProvider'},
225
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
226
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
227
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
228
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
229
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
230
            'metadata': ('django.db.models.fields.TextField', [], {}),
231
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
232
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
233
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
234
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
235
        },
236
        u'saml.libertyproviderpolicy': {
237
            'Meta': {'object_name': 'LibertyProviderPolicy'},
238
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
239
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
240
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
241
        },
242
        u'saml.libertyserviceprovider': {
243
            'Meta': {'object_name': 'LibertyServiceProvider'},
244
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
245
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
246
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
247
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
248
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
249
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
250
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
251
        },
252
        u'saml.libertysession': {
253
            'Meta': {'object_name': 'LibertySession'},
254
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
255
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
256
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
257
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
258
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
259
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
260
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
261
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
262
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
263
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
264
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
265
        },
266
        u'saml.libertysessiondump': {
267
            'Meta': {'object_name': 'LibertySessionDump'},
268
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
269
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
270
            'kind': ('django.db.models.fields.IntegerField', [], {}),
271
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
272
        },
273
        u'saml.libertysessionsp': {
274
            'Meta': {'object_name': 'LibertySessionSP'},
275
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
276
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
277
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
278
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
279
        },
280
        u'saml.spoptionsidppolicy': {
281
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
282
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
283
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '31', 'blank': 'True'}),
284
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
285
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
286
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
287
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
288
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
289
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
290
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
291
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
292
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
293
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
294
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
295
        }
296
    }
297

  
298
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0023_auto__chg_field_spoptionsidppolicy_accepted_name_id_format__chg_field_.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14

  
15
        # Changing field 'SPOptionsIdPPolicy.accepted_name_id_format'
16
        db.alter_column(u'saml_spoptionsidppolicy', 'accepted_name_id_format', self.gf('authentic2.saml.fields.MultiSelectField')(max_length=1024))
17

  
18
        # Changing field 'SPOptionsIdPPolicy.default_name_id_format'
19
        db.alter_column(u'saml_spoptionsidppolicy', 'default_name_id_format', self.gf('django.db.models.fields.CharField')(max_length=256))
20

  
21
    def backwards(self, orm):
22

  
23
        # Changing field 'SPOptionsIdPPolicy.accepted_name_id_format'
24
        db.alter_column(u'saml_spoptionsidppolicy', 'accepted_name_id_format', self.gf('authentic2.saml.fields.MultiSelectField')(max_length=31))
25

  
26
        # Changing field 'SPOptionsIdPPolicy.default_name_id_format'
27
        db.alter_column(u'saml_spoptionsidppolicy', 'default_name_id_format', self.gf('django.db.models.fields.CharField')(max_length=200))
28

  
29
    models = {
30
        u'attribute_aggregator.attributesource': {
31
            'Meta': {'object_name': 'AttributeSource'},
32
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
34
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
35
        },
36
        user_model_label: {
37
            'Meta': {'object_name': user_model_label.split('.')[-1]},
38
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
39
        },
40
        u'idp.attributeitem': {
41
            'Meta': {'object_name': 'AttributeItem'},
42
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
43
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
44
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
45
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
46
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
47
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
48
        },
49
        u'idp.attributelist': {
50
            'Meta': {'object_name': 'AttributeList'},
51
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
52
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
54
        },
55
        u'idp.attributepolicy': {
56
            'Meta': {'object_name': 'AttributePolicy'},
57
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
58
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
59
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
60
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
61
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
62
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
63
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
66
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
67
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
68
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
69
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
70
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
71
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
72
        },
73
        u'saml.authorizationattributemap': {
74
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
75
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
77
        },
78
        u'saml.authorizationattributemapping': {
79
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
80
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
81
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
82
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
83
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
84
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
85
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
86
        },
87
        u'saml.authorizationsppolicy': {
88
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
89
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
90
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
91
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
92
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
93
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
94
        },
95
        u'saml.idpoptionssppolicy': {
96
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
97
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
98
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
99
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
100
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
101
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
102
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
107
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
108
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
109
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
110
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
111
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
113
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
114
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
115
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
119
        },
120
        u'saml.keyvalue': {
121
            'Meta': {'object_name': 'KeyValue'},
122
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
123
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
124
        },
125
        u'saml.libertyartifact': {
126
            'Meta': {'object_name': 'LibertyArtifact'},
127
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
128
            'content': ('django.db.models.fields.TextField', [], {}),
129
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
130
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
131
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
132
        },
133
        u'saml.libertyassertion': {
134
            'Meta': {'object_name': 'LibertyAssertion'},
135
            'assertion': ('django.db.models.fields.TextField', [], {}),
136
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
137
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
138
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
139
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
140
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
141
        },
142
        u'saml.libertyfederation': {
143
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
144
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
145
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
146
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
147
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
148
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
149
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
150
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
151
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
152
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label})
153
        },
154
        u'saml.libertyidentitydump': {
155
            'Meta': {'object_name': 'LibertyIdentityDump'},
156
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
157
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
158
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'unique': 'True'})
159
        },
160
        u'saml.libertyidentityprovider': {
161
            'Meta': {'object_name': 'LibertyIdentityProvider'},
162
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
163
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
164
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
167
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
168
        },
169
        u'saml.libertymanagedump': {
170
            'Meta': {'object_name': 'LibertyManageDump'},
171
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
172
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
173
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
174
        },
175
        u'saml.libertyprovider': {
176
            'Meta': {'object_name': 'LibertyProvider'},
177
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
178
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
179
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
180
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
181
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
182
            'metadata': ('django.db.models.fields.TextField', [], {}),
183
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
184
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
185
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
186
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
187
        },
188
        u'saml.libertyproviderpolicy': {
189
            'Meta': {'object_name': 'LibertyProviderPolicy'},
190
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
191
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
192
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
193
        },
194
        u'saml.libertyserviceprovider': {
195
            'Meta': {'object_name': 'LibertyServiceProvider'},
196
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
197
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
198
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
199
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
200
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
201
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
202
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
203
        },
204
        u'saml.libertysession': {
205
            'Meta': {'object_name': 'LibertySession'},
206
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
207
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
208
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
209
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
210
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
211
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
212
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
213
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
214
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
215
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
216
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
217
        },
218
        u'saml.libertysessiondump': {
219
            'Meta': {'object_name': 'LibertySessionDump'},
220
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
221
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
222
            'kind': ('django.db.models.fields.IntegerField', [], {}),
223
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
224
        },
225
        u'saml.libertysessionsp': {
226
            'Meta': {'object_name': 'LibertySessionSP'},
227
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
228
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
229
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
230
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
231
        },
232
        u'saml.spoptionsidppolicy': {
233
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
234
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
235
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
236
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
237
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
238
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
239
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
240
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
241
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
242
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
243
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
244
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
246
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
247
        }
248
    }
249

  
250
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0024_auto__add_field_libertyfederation_site__add_field_libertyfederation_id.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14
        # Adding field 'LibertyFederation.idp1'
15
        db.add_column(u'saml_libertyfederation', 'idp1',
16
                      self.gf('django.db.models.fields.related.ForeignKey')(to=orm['saml.LibertyIdentityProvider'], null=True),
17
                      keep_default=False)
18

  
19
        # Adding field 'LibertyFederation.sp1'
20
        db.add_column(u'saml_libertyfederation', 'sp1',
21
                      self.gf('django.db.models.fields.related.ForeignKey')(to=orm['saml.LibertyServiceProvider'], null=True),
22
                      keep_default=False)
23

  
24

  
25
    def backwards(self, orm):
26
        # Deleting field 'LibertyFederation.idp1'
27
        db.delete_column(u'saml_libertyfederation', 'idp1_id')
28

  
29
        # Deleting field 'LibertyFederation.sp1'
30
        db.delete_column(u'saml_libertyfederation', 'sp1_id')
31

  
32

  
33
    models = {
34
        u'attribute_aggregator.attributesource': {
35
            'Meta': {'object_name': 'AttributeSource'},
36
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
38
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
39
        },
40
        user_model_label: {
41
            'Meta': {'object_name': user_model_label.split('.')[-1]},
42
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43
        },
44
        u'idp.attributeitem': {
45
            'Meta': {'object_name': 'AttributeItem'},
46
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
47
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
49
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
50
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
51
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
52
        },
53
        u'idp.attributelist': {
54
            'Meta': {'object_name': 'AttributeList'},
55
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
56
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
58
        },
59
        u'idp.attributepolicy': {
60
            'Meta': {'object_name': 'AttributePolicy'},
61
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
62
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
63
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
64
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
65
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
66
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
67
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
68
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
71
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
72
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
73
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
74
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
75
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
76
        },
77
        u'saml.authorizationattributemap': {
78
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
79
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
80
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
81
        },
82
        u'saml.authorizationattributemapping': {
83
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
84
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
85
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
86
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
87
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
88
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
89
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
90
        },
91
        u'saml.authorizationsppolicy': {
92
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
93
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
94
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
95
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
96
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
97
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
98
        },
99
        u'saml.idpoptionssppolicy': {
100
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
101
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
102
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
104
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
105
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
107
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
108
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
111
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
112
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
113
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
114
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
115
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
116
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
117
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
119
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
121
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
122
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
123
        },
124
        u'saml.keyvalue': {
125
            'Meta': {'object_name': 'KeyValue'},
126
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
127
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
128
        },
129
        u'saml.libertyartifact': {
130
            'Meta': {'object_name': 'LibertyArtifact'},
131
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
132
            'content': ('django.db.models.fields.TextField', [], {}),
133
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
134
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
135
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
136
        },
137
        u'saml.libertyassertion': {
138
            'Meta': {'object_name': 'LibertyAssertion'},
139
            'assertion': ('django.db.models.fields.TextField', [], {}),
140
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
141
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
142
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
143
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
144
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
145
        },
146
        u'saml.libertyfederation': {
147
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
148
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
149
            'idp1': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True'}),
150
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
151
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
152
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
153
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
154
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
155
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
156
            'sp1': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True'}),
157
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
158
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label})
159
        },
160
        u'saml.libertyidentitydump': {
161
            'Meta': {'object_name': 'LibertyIdentityDump'},
162
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
163
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
164
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'unique': 'True'})
165
        },
166
        u'saml.libertyidentityprovider': {
167
            'Meta': {'object_name': 'LibertyIdentityProvider'},
168
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
169
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
170
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
171
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
172
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
173
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
174
        },
175
        u'saml.libertymanagedump': {
176
            'Meta': {'object_name': 'LibertyManageDump'},
177
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
178
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
179
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
180
        },
181
        u'saml.libertyprovider': {
182
            'Meta': {'object_name': 'LibertyProvider'},
183
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
184
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
185
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
186
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
187
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
188
            'metadata': ('django.db.models.fields.TextField', [], {}),
189
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
190
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
191
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
192
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
193
        },
194
        u'saml.libertyproviderpolicy': {
195
            'Meta': {'object_name': 'LibertyProviderPolicy'},
196
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
197
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
198
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
199
        },
200
        u'saml.libertyserviceprovider': {
201
            'Meta': {'object_name': 'LibertyServiceProvider'},
202
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
203
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
204
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
205
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
206
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
207
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
208
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
209
        },
210
        u'saml.libertysession': {
211
            'Meta': {'object_name': 'LibertySession'},
212
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
213
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
214
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
215
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
216
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
217
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
218
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
219
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
220
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
221
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
222
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
223
        },
224
        u'saml.libertysessiondump': {
225
            'Meta': {'object_name': 'LibertySessionDump'},
226
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
227
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
228
            'kind': ('django.db.models.fields.IntegerField', [], {}),
229
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
230
        },
231
        u'saml.libertysessionsp': {
232
            'Meta': {'object_name': 'LibertySessionSP'},
233
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
234
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
235
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
236
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
237
        },
238
        u'saml.spoptionsidppolicy': {
239
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
240
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
241
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
242
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
243
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
244
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
245
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
246
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
247
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
248
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
249
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
250
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
251
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
252
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
253
        },
254
    }
255

  
256
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0025_fill_liberty_federation_provider_site.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4
from django.core.exceptions import ObjectDoesNotExist
5

  
6

  
7
from authentic2.compat import user_model_label
8

  
9

  
10
class Migration(SchemaMigration):
11
    def forwards(self, orm):
12
        if db.dry_run:
13
            return
14
        for federation in orm.LibertyFederation.objects.all():
15
            entity_ids = [ federation.sp_id, federation.idp_id ]
16
            provider = orm.LibertyProvider.objects.get(entity_id__in=entity_ids)
17
            try:
18
                provider.identity_provider and provider.service_provider
19
            except ObjectDoesNotExist:
20
                pass
21
            else:
22
                raise RuntimeError('unable to find if %r is a service or identity provider' %
23
                        provider.entity_id)
24
            try:
25
                federation.idp1 = provider.identity_provider
26
            except ObjectDoesNotExist:
27
                pass
28
            try:
29
                federation.sp1 = provider.service_provider
30
            except ObjectDoesNotExist:
31
                pass
32
            if not federation.idp1 and not federation.sp1:
33
                raise RuntimeError('%r is not a service or an identity provider' %
34
                        provider.entity_id)
35
            federation.save()
36

  
37
    def backwards(self, orm):
38
        if db.dry_run:
39
            return
40
        local_provider_id = raw_input('give the local provider id: ')
41
        for federation in orm.LibertyFederation.objects.all():
42
            if federation.idp1:
43
                federation.idp_id = federation.idp1.liberty_provider.entity_id
44
                federation.sp_id = local_provider_id
45
            elif federation.sp1:
46
                federation.sp_id = federation.sp1.liberty_provider.entity_id
47
                federation.idp_id = local_provider_id
48
            federation.name_id_sp_name_qualifier = federation.sp_id
49
            federation.name_id_name_qualifier = federation.idp_id
50
            federation.save()
51

  
52
    models = {
53
        u'attribute_aggregator.attributesource': {
54
            'Meta': {'object_name': 'AttributeSource'},
55
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
57
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
58
        },
59
        user_model_label: {
60
            'Meta': {'object_name': user_model_label.split('.')[-1]},
61
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
62
        },
63
        u'contenttypes.contenttype': {
64
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
65
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
66
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
68
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
69
        },
70
        u'idp.attributeitem': {
71
            'Meta': {'object_name': 'AttributeItem'},
72
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
73
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
74
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
75
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
76
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
77
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
78
        },
79
        u'idp.attributelist': {
80
            'Meta': {'object_name': 'AttributeList'},
81
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
82
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
84
        },
85
        u'idp.attributepolicy': {
86
            'Meta': {'object_name': 'AttributePolicy'},
87
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
88
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
89
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
90
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
91
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
92
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
93
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
94
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
95
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
96
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
97
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
98
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
99
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
100
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
101
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
102
        },
103
        u'saml.authorizationattributemap': {
104
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
105
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
106
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
107
        },
108
        u'saml.authorizationattributemapping': {
109
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
110
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
111
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
112
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
113
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
114
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
115
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
116
        },
117
        u'saml.authorizationsppolicy': {
118
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
119
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
120
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
121
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
122
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
123
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
124
        },
125
        u'saml.idpoptionssppolicy': {
126
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
127
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
128
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
129
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
130
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
131
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
132
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
133
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
134
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
135
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
136
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
137
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
138
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
139
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
140
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
141
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
142
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
143
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
144
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
145
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
146
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
147
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
148
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
149
        },
150
        u'saml.keyvalue': {
151
            'Meta': {'object_name': 'KeyValue'},
152
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
153
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
154
        },
155
        u'saml.libertyartifact': {
156
            'Meta': {'object_name': 'LibertyArtifact'},
157
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
158
            'content': ('django.db.models.fields.TextField', [], {}),
159
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
160
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
161
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
162
        },
163
        u'saml.libertyassertion': {
164
            'Meta': {'object_name': 'LibertyAssertion'},
165
            'assertion': ('django.db.models.fields.TextField', [], {}),
166
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
167
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
168
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
169
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
170
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
171
        },
172
        u'saml.libertyfederation': {
173
            'Meta': {'unique_together': "(('name_id_qualifier', 'name_id_format', 'name_id_content', 'name_id_sp_name_qualifier'),)", 'object_name': 'LibertyFederation'},
174
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
175
            'idp1': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True'}),
176
            'idp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
177
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
178
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
179
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
180
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
181
            'name_id_sp_provided_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
182
            'sp1': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True'}),
183
            'sp_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'blank': 'True'}),
184
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label})
185
        },
186
        u'saml.libertyidentitydump': {
187
            'Meta': {'object_name': 'LibertyIdentityDump'},
188
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
189
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
190
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'unique': 'True'})
191
        },
192
        u'saml.libertyidentityprovider': {
193
            'Meta': {'object_name': 'LibertyIdentityProvider'},
194
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
195
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
196
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
197
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
198
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
199
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
200
        },
201
        u'saml.libertymanagedump': {
202
            'Meta': {'object_name': 'LibertyManageDump'},
203
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
204
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
205
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
206
        },
207
        u'saml.libertyprovider': {
208
            'Meta': {'object_name': 'LibertyProvider'},
209
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
210
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
211
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
212
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
213
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
214
            'metadata': ('django.db.models.fields.TextField', [], {}),
215
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
216
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
217
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
218
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
219
        },
220
        u'saml.libertyproviderpolicy': {
221
            'Meta': {'object_name': 'LibertyProviderPolicy'},
222
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
223
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
224
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
225
        },
226
        u'saml.libertyserviceprovider': {
227
            'Meta': {'object_name': 'LibertyServiceProvider'},
228
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
229
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
230
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
231
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
232
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
233
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
234
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
235
        },
236
        u'saml.libertysession': {
237
            'Meta': {'object_name': 'LibertySession'},
238
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
239
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
240
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
241
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
242
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
243
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
244
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
245
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
246
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
247
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
248
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
249
        },
250
        u'saml.libertysessiondump': {
251
            'Meta': {'object_name': 'LibertySessionDump'},
252
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
253
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
254
            'kind': ('django.db.models.fields.IntegerField', [], {}),
255
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
256
        },
257
        u'saml.libertysessionsp': {
258
            'Meta': {'object_name': 'LibertySessionSP'},
259
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
260
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
261
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
262
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
263
        },
264
        u'saml.spoptionsidppolicy': {
265
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
266
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
267
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
268
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
269
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
270
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
271
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
272
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
273
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
274
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
275
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
276
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
277
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
278
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
279
        },
280
    }
281

  
282
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0026_auto__del_field_libertyfederation_idp_id__del_field_libertyfederation_.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Removing unique constraint on 'LibertyFederation', fields ['name_id_sp_name_qualifier', 'name_id_format', 'name_id_content', 'name_id_qualifier']
12
        db.delete_unique(u'saml_libertyfederation', ['name_id_sp_name_qualifier', 'name_id_format', 'name_id_content', 'name_id_qualifier'])
13

  
14
        # Deleting field 'LibertyFederation.idp_id'
15
        db.delete_column(u'saml_libertyfederation', 'idp_id')
16

  
17
        # Deleting field 'LibertyFederation.name_id_sp_provided_id'
18
        db.delete_column(u'saml_libertyfederation', 'name_id_sp_provided_id')
19

  
20
        # Deleting field 'LibertyFederation.name_id_sp_name_qualifier'
21
        db.delete_column(u'saml_libertyfederation', 'name_id_sp_name_qualifier')
22

  
23
        # Deleting field 'LibertyFederation.sp_id'
24
        db.delete_column(u'saml_libertyfederation', 'sp_id')
25

  
26
        # Deleting field 'LibertyFederation.name_id_qualifier'
27
        db.delete_column(u'saml_libertyfederation', 'name_id_qualifier')
28

  
29
        # Rename idp1 to idp
30
        db.rename_column(u'saml_libertyfederation', 'idp1_id', 'idp_id')
31

  
32
        # Rename sp1 to sp
33
        db.rename_column(u'saml_libertyfederation', 'sp1_id', 'sp_id')
34

  
35
        db.create_unique(u'saml_libertyfederation', ['sp_id', 'user_id', 'name_id_format' ])
36
        db.create_unique(u'saml_libertyfederation', ['idp_id', 'user_id', 'name_id_format' ])
37

  
38

  
39
    def backwards(self, orm):
40
        db.delete_unique(u'saml_libertyfederation', ['idp_id', 'user_id', 'name_id_format'])
41
        db.delete_unique(u'saml_libertyfederation', ['sp_id', 'user_id', 'name_id_format'])
42

  
43
        # Rename sp1 to sp
44
        db.rename_column(u'saml_libertyfederation', 'sp_id', 'sp1_id')
45

  
46
        # Rename id1 to idp
47
        db.rename_column(u'saml_libertyfederation', 'idp_id', 'idp1_id')
48

  
49
        # Adding field 'LibertyFederation.idp_id'
50
        db.add_column(u'saml_libertyfederation', 'idp_id',
51
                      self.gf('django.db.models.fields.CharField')(default='', max_length=256, blank=True),
52
                      keep_default=False)
53

  
54
        # Adding field 'LibertyFederation.name_id_sp_provided_id'
55
        db.add_column(u'saml_libertyfederation', 'name_id_sp_provided_id',
56
                      self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True),
57
                      keep_default=False)
58

  
59
        # Adding field 'LibertyFederation.name_id_sp_name_qualifier'
60
        db.add_column(u'saml_libertyfederation', 'name_id_sp_name_qualifier',
61
                      self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True),
62
                      keep_default=False)
63

  
64
        # Adding field 'LibertyFederation.sp_id'
65
        db.add_column(u'saml_libertyfederation', 'sp_id',
66
                      self.gf('django.db.models.fields.CharField')(default='', max_length=256, blank=True),
67
                      keep_default=False)
68

  
69
        # Adding field 'LibertyFederation.name_id_qualifier'
70
        db.add_column(u'saml_libertyfederation', 'name_id_qualifier',
71
                      self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True),
72
                      keep_default=False)
73

  
74
        # Adding unique constraint on 'LibertyFederation', fields ['name_id_sp_name_qualifier', 'name_id_format', 'name_id_content', 'name_id_qualifier']
75
        db.create_unique(u'saml_libertyfederation', ['name_id_sp_name_qualifier', 'name_id_format', 'name_id_content', 'name_id_qualifier'])
76

  
77

  
78
    models = {
79
        u'attribute_aggregator.attributesource': {
80
            'Meta': {'object_name': 'AttributeSource'},
81
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
83
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
84
        },
85
        user_model_label: {
86
            'Meta': {'object_name': user_model_label.split('.')[-1]},
87
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
88
        },
89
        u'idp.attributeitem': {
90
            'Meta': {'object_name': 'AttributeItem'},
91
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
92
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
93
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
94
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
95
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
96
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
97
        },
98
        u'idp.attributelist': {
99
            'Meta': {'object_name': 'AttributeList'},
100
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
101
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
102
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
103
        },
104
        u'idp.attributepolicy': {
105
            'Meta': {'object_name': 'AttributePolicy'},
106
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
107
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
108
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
109
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
110
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
113
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
114
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
115
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
117
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
118
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
119
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
121
        },
122
        u'saml.authorizationattributemap': {
123
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
124
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
125
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
126
        },
127
        u'saml.authorizationattributemapping': {
128
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
129
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
130
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
131
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
132
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
133
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
134
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
135
        },
136
        u'saml.authorizationsppolicy': {
137
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
138
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
139
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
140
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
141
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
142
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
143
        },
144
        u'saml.idpoptionssppolicy': {
145
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
146
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
147
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
148
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
149
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
150
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
151
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
152
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
153
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
154
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
155
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
156
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
157
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
158
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
159
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
160
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
161
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
162
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
163
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
164
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
167
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
168
        },
169
        u'saml.keyvalue': {
170
            'Meta': {'object_name': 'KeyValue'},
171
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
172
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
173
        },
174
        u'saml.libertyartifact': {
175
            'Meta': {'object_name': 'LibertyArtifact'},
176
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
177
            'content': ('django.db.models.fields.TextField', [], {}),
178
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
179
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
180
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
181
        },
182
        u'saml.libertyassertion': {
183
            'Meta': {'object_name': 'LibertyAssertion'},
184
            'assertion': ('django.db.models.fields.TextField', [], {}),
185
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
186
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
187
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
188
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
189
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
190
        },
191
        u'saml.libertyfederation': {
192
            'Meta': {'unique_together': "(('user', 'sp', 'name_id_format'),('user', 'idp', 'name_id_format'),)", 'object_name': 'LibertyFederation'},
193
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
194
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True'}),
195
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
196
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
197
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True'}),
198
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label})
199
        },
200
        u'saml.libertyidentitydump': {
201
            'Meta': {'object_name': 'LibertyIdentityDump'},
202
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
203
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
204
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'unique': 'True'})
205
        },
206
        u'saml.libertyidentityprovider': {
207
            'Meta': {'object_name': 'LibertyIdentityProvider'},
208
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
209
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
210
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
211
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
212
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
213
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
214
        },
215
        u'saml.libertymanagedump': {
216
            'Meta': {'object_name': 'LibertyManageDump'},
217
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
218
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
219
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
220
        },
221
        u'saml.libertyprovider': {
222
            'Meta': {'object_name': 'LibertyProvider'},
223
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
224
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
225
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
226
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
227
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
228
            'metadata': ('django.db.models.fields.TextField', [], {}),
229
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
230
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
231
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
232
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
233
        },
234
        u'saml.libertyproviderpolicy': {
235
            'Meta': {'object_name': 'LibertyProviderPolicy'},
236
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
237
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
238
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
239
        },
240
        u'saml.libertyserviceprovider': {
241
            'Meta': {'object_name': 'LibertyServiceProvider'},
242
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
243
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
244
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
246
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
247
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
248
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
249
        },
250
        u'saml.libertysession': {
251
            'Meta': {'object_name': 'LibertySession'},
252
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
253
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
254
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
255
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
256
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
257
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
258
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
259
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
260
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
261
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
262
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
263
        },
264
        u'saml.libertysessiondump': {
265
            'Meta': {'object_name': 'LibertySessionDump'},
266
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
267
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
268
            'kind': ('django.db.models.fields.IntegerField', [], {}),
269
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
270
        },
271
        u'saml.libertysessionsp': {
272
            'Meta': {'object_name': 'LibertySessionSP'},
273
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
274
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
275
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
276
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
277
        },
278
        u'saml.spoptionsidppolicy': {
279
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
280
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
281
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
282
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
283
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
284
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
285
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
286
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
287
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
288
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
289
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
290
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
291
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
292
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
293
        },
294
    }
295

  
296
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0027_auto__add_field_libertyfederation_creation__add_field_libertyfederatio.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5

  
6
from authentic2.compat import user_model_label
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Adding field 'LibertyFederation.creation'
12
        db.add_column(u'saml_libertyfederation', 'creation',
13
                      self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now, auto_now_add=True, blank=True),
14
                      keep_default=False)
15

  
16
        # Adding field 'LibertyFederation.last_modification'
17
        db.add_column(u'saml_libertyfederation', 'last_modification',
18
                      self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now, auto_now=True, blank=True),
19
                      keep_default=False)
20

  
21

  
22
    def backwards(self, orm):
23
        # Deleting field 'LibertyFederation.creation'
24
        db.delete_column(u'saml_libertyfederation', 'creation')
25

  
26
        # Deleting field 'LibertyFederation.last_modification'
27
        db.delete_column(u'saml_libertyfederation', 'last_modification')
28

  
29

  
30
    models = {
31
        u'attribute_aggregator.attributesource': {
32
            'Meta': {'object_name': 'AttributeSource'},
33
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
35
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
36
        },
37
        user_model_label: {
38
            'Meta': {'object_name': user_model_label.split('.')[-1]},
39
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40
        },
41
        u'idp.attributeitem': {
42
            'Meta': {'object_name': 'AttributeItem'},
43
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
44
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
46
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
47
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
48
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
49
        },
50
        u'idp.attributelist': {
51
            'Meta': {'object_name': 'AttributeList'},
52
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
53
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
55
        },
56
        u'idp.attributepolicy': {
57
            'Meta': {'object_name': 'AttributePolicy'},
58
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
59
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
60
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
61
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
62
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
63
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
67
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
68
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
69
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
70
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
71
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
72
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
73
        },
74
        u'saml.authorizationattributemap': {
75
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
76
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
78
        },
79
        u'saml.authorizationattributemapping': {
80
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
81
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
82
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
83
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
84
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
86
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
87
        },
88
        u'saml.authorizationsppolicy': {
89
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
90
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
91
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
92
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
93
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
95
        },
96
        u'saml.idpoptionssppolicy': {
97
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
98
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
99
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
100
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
101
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
102
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
107
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
108
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
109
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
110
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
111
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
112
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
113
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
114
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
115
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
116
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
120
        },
121
        u'saml.keyvalue': {
122
            'Meta': {'object_name': 'KeyValue'},
123
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
124
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
125
        },
126
        u'saml.libertyartifact': {
127
            'Meta': {'object_name': 'LibertyArtifact'},
128
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
129
            'content': ('django.db.models.fields.TextField', [], {}),
130
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
131
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
132
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
133
        },
134
        u'saml.libertyassertion': {
135
            'Meta': {'object_name': 'LibertyAssertion'},
136
            'assertion': ('django.db.models.fields.TextField', [], {}),
137
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
138
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
139
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
140
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
141
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
142
        },
143
        u'saml.libertyfederation': {
144
            'Meta': {'unique_together': "(('user', 'sp', 'name_id_format'),('user', 'idp', 'name_id_format'),)", 'object_name': 'LibertyFederation'},
145
            'creation': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'auto_now_add': 'True', 'blank': 'True'}),
146
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
147
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True'}),
148
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'auto_now': 'True', 'blank': 'True'}),
149
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
150
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
151
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True'}),
152
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label})
153
        },
154
        u'saml.libertyidentitydump': {
155
            'Meta': {'object_name': 'LibertyIdentityDump'},
156
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
157
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
158
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'unique': 'True'})
159
        },
160
        u'saml.libertyidentityprovider': {
161
            'Meta': {'object_name': 'LibertyIdentityProvider'},
162
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
163
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
164
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
167
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
168
        },
169
        u'saml.libertymanagedump': {
170
            'Meta': {'object_name': 'LibertyManageDump'},
171
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
172
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
173
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
174
        },
175
        u'saml.libertyprovider': {
176
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
177
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
178
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
179
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
180
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
181
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
182
            'metadata': ('django.db.models.fields.TextField', [], {}),
183
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
184
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
185
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
186
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
187
        },
188
        u'saml.libertyproviderpolicy': {
189
            'Meta': {'object_name': 'LibertyProviderPolicy'},
190
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
191
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
192
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
193
        },
194
        u'saml.libertyserviceprovider': {
195
            'Meta': {'object_name': 'LibertyServiceProvider'},
196
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
197
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
198
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
199
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
200
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
201
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
202
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
203
        },
204
        u'saml.libertysession': {
205
            'Meta': {'object_name': 'LibertySession'},
206
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
207
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
208
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
209
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
210
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
211
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
212
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
213
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
214
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
215
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
216
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
217
        },
218
        u'saml.libertysessiondump': {
219
            'Meta': {'object_name': 'LibertySessionDump'},
220
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
221
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
222
            'kind': ('django.db.models.fields.IntegerField', [], {}),
223
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
224
        },
225
        u'saml.libertysessionsp': {
226
            'Meta': {'object_name': 'LibertySessionSP'},
227
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
228
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
229
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
230
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
231
        },
232
        u'saml.spoptionsidppolicy': {
233
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
234
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
235
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
236
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
237
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
238
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
239
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
240
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
241
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
242
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
243
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
244
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
246
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
247
        },
248
    }
249

  
250
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0028_auto__chg_field_libertyfederation_site__chg_field_libertyfederation_us.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4
from django.db import models
5

  
6
from authentic2.compat import user_model_label
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Changing field 'LibertyFederation.user'
12
        db.alter_column(u'saml_libertyfederation', 'user_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[user_model_label], null=True, on_delete=models.SET_NULL))
13

  
14
    def backwards(self, orm):
15
        # Changing field 'LibertyFederation.user'
16
        db.alter_column(u'saml_libertyfederation', 'user_id', self.gf('django.db.models.fields.related.ForeignKey')(default=0, to=orm[user_model_label]))
17

  
18
    models = {
19
        u'attribute_aggregator.attributesource': {
20
            'Meta': {'object_name': 'AttributeSource'},
21
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
22
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
23
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
24
        },
25
        user_model_label: {
26
            'Meta': {'object_name': user_model_label.split('.')[-1]},
27
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
28
        },
29
        u'idp.attributeitem': {
30
            'Meta': {'object_name': 'AttributeItem'},
31
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
32
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
34
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
35
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
36
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
37
        },
38
        u'idp.attributelist': {
39
            'Meta': {'object_name': 'AttributeList'},
40
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
41
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
43
        },
44
        u'idp.attributepolicy': {
45
            'Meta': {'object_name': 'AttributePolicy'},
46
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
47
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
48
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
49
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
50
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
51
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
52
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
53
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
55
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
56
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
57
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
58
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
59
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
60
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
61
        },
62
        u'saml.authorizationattributemap': {
63
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
64
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
66
        },
67
        u'saml.authorizationattributemapping': {
68
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
69
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
70
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
71
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
72
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
73
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
74
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
75
        },
76
        u'saml.authorizationsppolicy': {
77
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
78
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
79
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
80
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
83
        },
84
        u'saml.idpoptionssppolicy': {
85
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
86
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
87
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
88
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
89
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
90
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
91
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
92
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
93
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
94
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
95
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
96
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
97
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
98
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
99
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
100
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
101
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
102
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
104
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
107
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
108
        },
109
        u'saml.keyvalue': {
110
            'Meta': {'object_name': 'KeyValue'},
111
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
112
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
113
        },
114
        u'saml.libertyartifact': {
115
            'Meta': {'object_name': 'LibertyArtifact'},
116
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
117
            'content': ('django.db.models.fields.TextField', [], {}),
118
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
119
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
120
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
121
        },
122
        u'saml.libertyassertion': {
123
            'Meta': {'object_name': 'LibertyAssertion'},
124
            'assertion': ('django.db.models.fields.TextField', [], {}),
125
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
126
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
127
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
128
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
129
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
130
        },
131
        u'saml.libertyfederation': {
132
            'Meta': {'unique_together': "(('user', 'sp', 'name_id_format'),('user', 'idp', 'name_id_format'),)", 'object_name': 'LibertyFederation'},
133
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
134
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
135
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True'}),
136
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
137
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
138
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
139
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True'}),
140
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
141
        },
142
        u'saml.libertyidentitydump': {
143
            'Meta': {'object_name': 'LibertyIdentityDump'},
144
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
145
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
146
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'unique': 'True'})
147
        },
148
        u'saml.libertyidentityprovider': {
149
            'Meta': {'object_name': 'LibertyIdentityProvider'},
150
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
151
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
152
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
153
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
154
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
155
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
156
        },
157
        u'saml.libertymanagedump': {
158
            'Meta': {'object_name': 'LibertyManageDump'},
159
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
160
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
161
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
162
        },
163
        u'saml.libertyprovider': {
164
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
165
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
166
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
167
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
168
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
169
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
170
            'metadata': ('django.db.models.fields.TextField', [], {}),
171
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
172
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
173
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
174
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
175
        },
176
        u'saml.libertyproviderpolicy': {
177
            'Meta': {'object_name': 'LibertyProviderPolicy'},
178
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
179
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
180
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
181
        },
182
        u'saml.libertyserviceprovider': {
183
            'Meta': {'object_name': 'LibertyServiceProvider'},
184
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
185
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
186
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
187
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
188
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
189
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
190
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
191
        },
192
        u'saml.libertysession': {
193
            'Meta': {'object_name': 'LibertySession'},
194
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
195
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
196
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
197
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
198
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
199
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
200
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
201
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
202
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
203
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
204
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
205
        },
206
        u'saml.libertysessiondump': {
207
            'Meta': {'object_name': 'LibertySessionDump'},
208
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
209
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
210
            'kind': ('django.db.models.fields.IntegerField', [], {}),
211
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
212
        },
213
        u'saml.libertysessionsp': {
214
            'Meta': {'object_name': 'LibertySessionSP'},
215
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
216
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
217
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
218
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
219
        },
220
        u'saml.spoptionsidppolicy': {
221
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
222
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
223
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
224
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
225
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
226
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
227
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
228
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
229
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
230
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
231
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
232
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
233
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
234
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
235
        },
236
    }
237

  
238
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0029_auto__add_field_libertyfederation_termination_notified.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Adding field 'LibertyFederation.termination_notified'
12
        db.add_column(u'saml_libertyfederation', 'termination_notified',
13
                      self.gf('django.db.models.fields.BooleanField')(default=False),
14
                      keep_default=False)
15

  
16

  
17
    def backwards(self, orm):
18
        # Deleting field 'LibertyFederation.termination_notified'
19
        db.delete_column(u'saml_libertyfederation', 'termination_notified')
20

  
21

  
22
    models = {
23
        u'attribute_aggregator.attributesource': {
24
            'Meta': {'object_name': 'AttributeSource'},
25
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
27
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
28
        },
29
        user_model_label: {
30
            'Meta': {'object_name': user_model_label.split('.')[-1]},
31
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32
        },
33
        u'idp.attributeitem': {
34
            'Meta': {'object_name': 'AttributeItem'},
35
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
36
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
38
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
39
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
40
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
41
        },
42
        u'idp.attributelist': {
43
            'Meta': {'object_name': 'AttributeList'},
44
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
45
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
47
        },
48
        u'idp.attributepolicy': {
49
            'Meta': {'object_name': 'AttributePolicy'},
50
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
51
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
52
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
53
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
54
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
55
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
56
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
57
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
59
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
60
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
61
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
62
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
63
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
65
        },
66
        u'saml.authorizationattributemap': {
67
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
68
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
69
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
70
        },
71
        u'saml.authorizationattributemapping': {
72
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
73
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
74
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
75
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
76
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
78
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
79
        },
80
        u'saml.authorizationsppolicy': {
81
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
82
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
83
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
84
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
85
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
86
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
87
        },
88
        u'saml.idpoptionssppolicy': {
89
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
90
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
91
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
92
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
93
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
94
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
95
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
96
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
97
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
98
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
99
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
100
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
101
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
102
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
103
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
104
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
105
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
106
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
107
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
108
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
112
        },
113
        u'saml.keyvalue': {
114
            'Meta': {'object_name': 'KeyValue'},
115
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
116
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
117
        },
118
        u'saml.libertyartifact': {
119
            'Meta': {'object_name': 'LibertyArtifact'},
120
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
121
            'content': ('django.db.models.fields.TextField', [], {}),
122
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
123
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
124
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
125
        },
126
        u'saml.libertyassertion': {
127
            'Meta': {'object_name': 'LibertyAssertion'},
128
            'assertion': ('django.db.models.fields.TextField', [], {}),
129
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
130
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
131
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
132
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
133
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
134
        },
135
        u'saml.libertyfederation': {
136
            'Meta': {'unique_together': "(('user', 'sp', 'name_id_format'),('user', 'idp', 'name_id_format'),)", 'object_name': 'LibertyFederation'},
137
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
138
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
139
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True'}),
140
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
141
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
142
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
143
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True'}),
144
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
145
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
146
        },
147
        u'saml.libertyidentitydump': {
148
            'Meta': {'object_name': 'LibertyIdentityDump'},
149
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
150
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
151
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'unique': 'True'})
152
        },
153
        u'saml.libertyidentityprovider': {
154
            'Meta': {'object_name': 'LibertyIdentityProvider'},
155
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
156
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
157
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
158
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
159
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
160
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
161
        },
162
        u'saml.libertymanagedump': {
163
            'Meta': {'object_name': 'LibertyManageDump'},
164
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
165
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
166
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
167
        },
168
        u'saml.libertyprovider': {
169
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
170
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
171
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
172
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
173
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
174
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
175
            'metadata': ('django.db.models.fields.TextField', [], {}),
176
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
177
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
178
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
179
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
180
        },
181
        u'saml.libertyproviderpolicy': {
182
            'Meta': {'object_name': 'LibertyProviderPolicy'},
183
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
184
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
185
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
186
        },
187
        u'saml.libertyserviceprovider': {
188
            'Meta': {'object_name': 'LibertyServiceProvider'},
189
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
190
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
191
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
192
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
193
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
194
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
195
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
196
        },
197
        u'saml.libertysession': {
198
            'Meta': {'object_name': 'LibertySession'},
199
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
200
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
201
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
202
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
203
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
204
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
205
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
206
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
207
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
208
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
209
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
210
        },
211
        u'saml.libertysessiondump': {
212
            'Meta': {'object_name': 'LibertySessionDump'},
213
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
214
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
215
            'kind': ('django.db.models.fields.IntegerField', [], {}),
216
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
217
        },
218
        u'saml.libertysessionsp': {
219
            'Meta': {'object_name': 'LibertySessionSP'},
220
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
221
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
222
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
223
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
224
        },
225
        u'saml.spoptionsidppolicy': {
226
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
227
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
228
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
229
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
230
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
231
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
232
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
233
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
234
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
235
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
236
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
237
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
238
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
239
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
240
        },
241
        u'sites.site': {
242
            'Meta': {'ordering': "('domain',)", 'object_name': 'Site', 'db_table': "'django_site'"},
243
            'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
244
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
245
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
246
        }
247
    }
248

  
249
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0030_auto__del_field_libertyfederation_site__del_field_libertyartifact_djan.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7
class Migration(SchemaMigration):
8

  
9
    def forwards(self, orm):
10
        # Deleting field 'LibertyArtifact.django_session_key'
11
        db.delete_column(u'saml_libertyartifact', 'django_session_key')
12

  
13

  
14
    def backwards(self, orm):
15
        # Adding field 'LibertyArtifact.django_session_key'
16
        db.add_column(u'saml_libertyartifact', 'django_session_key',
17
                      self.gf('django.db.models.fields.CharField')(default='xxx', max_length=128),
18
                      keep_default=False)
19

  
20

  
21
    models = {
22
        u'attribute_aggregator.attributesource': {
23
            'Meta': {'object_name': 'AttributeSource'},
24
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
26
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
27
        },
28
        user_model_label: {
29
            'Meta': {'object_name': user_model_label.split('.')[-1]},
30
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
31
        },
32
        u'idp.attributeitem': {
33
            'Meta': {'object_name': 'AttributeItem'},
34
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
35
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
37
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
38
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
39
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
40
        },
41
        u'idp.attributelist': {
42
            'Meta': {'object_name': 'AttributeList'},
43
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
44
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
46
        },
47
        u'idp.attributepolicy': {
48
            'Meta': {'object_name': 'AttributePolicy'},
49
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
50
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
51
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
52
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
53
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
54
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
55
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
56
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
58
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
59
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
60
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
61
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
62
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
63
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
64
        },
65
        u'saml.authorizationattributemap': {
66
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
67
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
69
        },
70
        u'saml.authorizationattributemapping': {
71
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
72
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
73
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
74
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
75
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
77
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
78
        },
79
        u'saml.authorizationsppolicy': {
80
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
81
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
82
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
83
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
84
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
86
        },
87
        u'saml.idpoptionssppolicy': {
88
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
89
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
90
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
91
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
92
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
93
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
94
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
95
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
96
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
97
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
98
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
99
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
100
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
101
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
102
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
103
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
104
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
105
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
107
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
108
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
111
        },
112
        u'saml.keyvalue': {
113
            'Meta': {'object_name': 'KeyValue'},
114
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
115
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
116
        },
117
        u'saml.libertyartifact': {
118
            'Meta': {'object_name': 'LibertyArtifact'},
119
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
120
            'content': ('django.db.models.fields.TextField', [], {}),
121
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
122
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
123
        },
124
        u'saml.libertyassertion': {
125
            'Meta': {'object_name': 'LibertyAssertion'},
126
            'assertion': ('django.db.models.fields.TextField', [], {}),
127
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
128
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
129
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
130
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
131
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
132
        },
133
        u'saml.libertyfederation': {
134
            'Meta': {'unique_together': "(('user', 'idp', 'name_id_format'), ('user', 'sp', 'name_id_format'))", 'object_name': 'LibertyFederation'},
135
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
136
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
137
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True'}),
138
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
139
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
140
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
141
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True'}),
142
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
143
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
144
        },
145
        u'saml.libertyidentitydump': {
146
            'Meta': {'object_name': 'LibertyIdentityDump'},
147
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
148
            'identity_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
149
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'unique': 'True'})
150
        },
151
        u'saml.libertyidentityprovider': {
152
            'Meta': {'object_name': 'LibertyIdentityProvider'},
153
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
154
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
155
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
156
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
157
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
158
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
159
        },
160
        u'saml.libertymanagedump': {
161
            'Meta': {'object_name': 'LibertyManageDump'},
162
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
163
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
164
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
165
        },
166
        u'saml.libertyprovider': {
167
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
168
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
169
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
170
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
171
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
172
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
173
            'metadata': ('django.db.models.fields.TextField', [], {}),
174
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
175
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
176
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
177
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
178
        },
179
        u'saml.libertyproviderpolicy': {
180
            'Meta': {'object_name': 'LibertyProviderPolicy'},
181
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
182
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
183
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
184
        },
185
        u'saml.libertyserviceprovider': {
186
            'Meta': {'object_name': 'LibertyServiceProvider'},
187
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
188
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
189
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
190
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
191
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
192
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
193
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
194
        },
195
        u'saml.libertysession': {
196
            'Meta': {'object_name': 'LibertySession'},
197
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
198
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
199
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
200
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
201
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
202
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
203
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
204
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
205
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
206
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
207
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
208
        },
209
        u'saml.libertysessiondump': {
210
            'Meta': {'object_name': 'LibertySessionDump'},
211
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
212
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
213
            'kind': ('django.db.models.fields.IntegerField', [], {}),
214
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
215
        },
216
        u'saml.libertysessionsp': {
217
            'Meta': {'object_name': 'LibertySessionSP'},
218
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
219
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
220
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
221
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
222
        },
223
        u'saml.spoptionsidppolicy': {
224
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
225
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
226
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
227
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
228
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
229
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
230
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
231
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
232
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
233
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
234
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
235
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
236
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
237
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
238
        }
239
    }
240

  
241
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0031_auto__del_libertyidentitydump.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7
class Migration(SchemaMigration):
8

  
9
    def forwards(self, orm):
10
        # Deleting model 'LibertyIdentityDump'
11
        db.delete_table(u'saml_libertyidentitydump')
12

  
13

  
14
    def backwards(self, orm):
15
        # Adding model 'LibertyIdentityDump'
16
        db.create_table(u'saml_libertyidentitydump', (
17
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
18
            ('identity_dump', self.gf('django.db.models.fields.TextField')(blank=True)),
19
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm[user_model_label], unique=True)),
20
        ))
21
        db.send_create_signal(u'saml', ['LibertyIdentityDump'])
22

  
23

  
24
    models = {
25
        u'attribute_aggregator.attributesource': {
26
            'Meta': {'object_name': 'AttributeSource'},
27
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
28
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
29
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
30
        },
31
        u'auth.group': {
32
            'Meta': {'object_name': 'Group'},
33
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
35
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
36
        },
37
        u'auth.permission': {
38
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
39
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
40
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
41
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
43
        },
44
        u'contenttypes.contenttype': {
45
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
46
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
47
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
49
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
50
        },
51
        u'idp.attributeitem': {
52
            'Meta': {'object_name': 'AttributeItem'},
53
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
54
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
55
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
56
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
57
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
58
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
59
        },
60
        u'idp.attributelist': {
61
            'Meta': {'object_name': 'AttributeList'},
62
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
63
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
64
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
65
        },
66
        u'idp.attributepolicy': {
67
            'Meta': {'object_name': 'AttributePolicy'},
68
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
69
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
70
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
71
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
72
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
73
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
74
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
75
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
77
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
78
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
79
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
80
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
81
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
82
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
83
        },
84
        user_model_label: {
85
            'Meta': {'object_name': user_model_label.split('.')[-1]},
86
        },
87
        u'saml.authorizationattributemap': {
88
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
89
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
90
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
91
        },
92
        u'saml.authorizationattributemapping': {
93
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
94
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
95
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
96
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
97
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
98
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
99
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
100
        },
101
        u'saml.authorizationsppolicy': {
102
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
103
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
104
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
105
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
107
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
108
        },
109
        u'saml.idpoptionssppolicy': {
110
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
111
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
112
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
113
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
114
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
115
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
121
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
122
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
123
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
124
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
125
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
126
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
127
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
128
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
129
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
130
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
131
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
132
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
133
        },
134
        u'saml.keyvalue': {
135
            'Meta': {'object_name': 'KeyValue'},
136
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
137
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
138
        },
139
        u'saml.libertyartifact': {
140
            'Meta': {'object_name': 'LibertyArtifact'},
141
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
142
            'content': ('django.db.models.fields.TextField', [], {}),
143
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
144
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
145
        },
146
        u'saml.libertyassertion': {
147
            'Meta': {'object_name': 'LibertyAssertion'},
148
            'assertion': ('django.db.models.fields.TextField', [], {}),
149
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
150
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
151
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
152
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
153
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
154
        },
155
        u'saml.libertyfederation': {
156
            'Meta': {'unique_together': "(('user', 'idp', 'name_id_format'), ('user', 'sp', 'name_id_format'))", 'object_name': 'LibertyFederation'},
157
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
158
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
159
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True'}),
160
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
161
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
162
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
163
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True'}),
164
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
166
        },
167
        u'saml.libertyidentityprovider': {
168
            'Meta': {'object_name': 'LibertyIdentityProvider'},
169
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
170
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
171
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
172
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
173
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
174
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
175
        },
176
        u'saml.libertymanagedump': {
177
            'Meta': {'object_name': 'LibertyManageDump'},
178
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
179
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
180
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
181
        },
182
        u'saml.libertyprovider': {
183
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
184
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
185
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
186
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
187
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
188
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
189
            'metadata': ('django.db.models.fields.TextField', [], {}),
190
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
191
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
192
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
193
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
194
        },
195
        u'saml.libertyproviderpolicy': {
196
            'Meta': {'object_name': 'LibertyProviderPolicy'},
197
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
198
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
199
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
200
        },
201
        u'saml.libertyserviceprovider': {
202
            'Meta': {'object_name': 'LibertyServiceProvider'},
203
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
204
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
205
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
206
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
207
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
208
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
209
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
210
        },
211
        u'saml.libertysession': {
212
            'Meta': {'object_name': 'LibertySession'},
213
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
214
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
215
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
216
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
217
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
218
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
219
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
220
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
221
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
222
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
223
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
224
        },
225
        u'saml.libertysessiondump': {
226
            'Meta': {'object_name': 'LibertySessionDump'},
227
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
228
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
229
            'kind': ('django.db.models.fields.IntegerField', [], {}),
230
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
231
        },
232
        u'saml.libertysessionsp': {
233
            'Meta': {'object_name': 'LibertySessionSP'},
234
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
235
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
236
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
237
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
238
        },
239
        u'saml.spoptionsidppolicy': {
240
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
241
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
242
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
243
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
244
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
246
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
247
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
248
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
249
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
250
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
251
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
252
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
253
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
254
        }
255
    }
256

  
257
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0032_auto__del_unique_libertyfederation_user_idp_name_id_format__del_unique.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7
from authentic2.compat import user_model_label
8

  
9
class Migration(SchemaMigration):
10

  
11
    def forwards(self, orm):
12
        # Removing unique constraint on 'LibertyFederation', fields ['sp', 'user', 'name_id_format']
13
        db.delete_unique(u'saml_libertyfederation', ['sp_id', 'user_id', 'name_id_format'])
14

  
15
        # Removing unique constraint on 'LibertyFederation', fields ['user', 'idp', 'name_id_format']
16
        db.delete_unique(u'saml_libertyfederation', ['user_id', 'idp_id', 'name_id_format'])
17

  
18

  
19
    def backwards(self, orm):
20
        # Adding unique constraint on 'LibertyFederation', fields ['user', 'idp', 'name_id_format']
21
        db.create_unique(u'saml_libertyfederation', ['user_id', 'idp_id', 'name_id_format'])
22

  
23
        # Adding unique constraint on 'LibertyFederation', fields ['sp', 'user', 'name_id_format']
24
        db.create_unique(u'saml_libertyfederation', ['sp_id', 'user_id', 'name_id_format'])
25

  
26

  
27
    models = {
28
        u'attribute_aggregator.attributesource': {
29
            'Meta': {'object_name': 'AttributeSource'},
30
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
31
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
32
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
33
        },
34
        u'auth.group': {
35
            'Meta': {'object_name': 'Group'},
36
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
38
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
39
        },
40
        u'auth.permission': {
41
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
42
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
43
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
44
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
46
        },
47
        user_model_label: {
48
            'Meta': {'object_name': user_model_label.split('.')[-1]},
49
        },
50
        u'contenttypes.contenttype': {
51
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
52
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
53
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
55
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
56
        },
57
        u'idp.attributeitem': {
58
            'Meta': {'object_name': 'AttributeItem'},
59
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
60
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
61
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
62
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
63
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
65
        },
66
        u'idp.attributelist': {
67
            'Meta': {'object_name': 'AttributeList'},
68
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
69
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
71
        },
72
        u'idp.attributepolicy': {
73
            'Meta': {'object_name': 'AttributePolicy'},
74
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
75
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
76
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
77
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
78
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
79
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
80
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
83
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
84
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
85
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
86
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
87
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
88
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
89
        },
90
        u'saml.authorizationattributemap': {
91
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
92
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
93
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
94
        },
95
        u'saml.authorizationattributemapping': {
96
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
97
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
98
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
99
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
100
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
101
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
102
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
103
        },
104
        u'saml.authorizationsppolicy': {
105
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
106
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
107
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
108
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
110
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
111
        },
112
        u'saml.idpoptionssppolicy': {
113
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
114
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
115
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
117
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
118
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
121
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
122
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
123
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
124
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
125
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
126
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
127
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
128
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
129
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
130
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
131
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
132
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
133
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
134
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
135
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
136
        },
137
        u'saml.keyvalue': {
138
            'Meta': {'object_name': 'KeyValue'},
139
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
140
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
141
        },
142
        u'saml.libertyartifact': {
143
            'Meta': {'object_name': 'LibertyArtifact'},
144
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
145
            'content': ('django.db.models.fields.TextField', [], {}),
146
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
147
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
148
        },
149
        u'saml.libertyassertion': {
150
            'Meta': {'object_name': 'LibertyAssertion'},
151
            'assertion': ('django.db.models.fields.TextField', [], {}),
152
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
153
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
154
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
155
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
156
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
157
        },
158
        u'saml.libertyfederation': {
159
            'Meta': {'object_name': 'LibertyFederation'},
160
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
161
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
162
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True'}),
163
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
164
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
165
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
166
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True'}),
167
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
168
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
169
        },
170
        u'saml.libertyidentityprovider': {
171
            'Meta': {'object_name': 'LibertyIdentityProvider'},
172
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
173
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
174
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
175
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
176
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
177
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
178
        },
179
        u'saml.libertymanagedump': {
180
            'Meta': {'object_name': 'LibertyManageDump'},
181
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
182
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
183
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
184
        },
185
        u'saml.libertyprovider': {
186
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
187
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
188
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
189
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
190
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
191
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
192
            'metadata': ('django.db.models.fields.TextField', [], {}),
193
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
194
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
195
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
196
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
197
        },
198
        u'saml.libertyproviderpolicy': {
199
            'Meta': {'object_name': 'LibertyProviderPolicy'},
200
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
201
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
202
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
203
        },
204
        u'saml.libertyserviceprovider': {
205
            'Meta': {'object_name': 'LibertyServiceProvider'},
206
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
207
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
208
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
209
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
210
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
211
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
212
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
213
        },
214
        u'saml.libertysession': {
215
            'Meta': {'object_name': 'LibertySession'},
216
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
217
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
218
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
219
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
220
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
221
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
222
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
223
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
224
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
225
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
226
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
227
        },
228
        u'saml.libertysessiondump': {
229
            'Meta': {'object_name': 'LibertySessionDump'},
230
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
231
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
232
            'kind': ('django.db.models.fields.IntegerField', [], {}),
233
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
234
        },
235
        u'saml.libertysessionsp': {
236
            'Meta': {'object_name': 'LibertySessionSP'},
237
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
238
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
239
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
240
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
241
        },
242
        u'saml.spoptionsidppolicy': {
243
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
244
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
245
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
246
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
247
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
248
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
249
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
250
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
251
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
252
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
253
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
254
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
255
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
256
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
257
        }
258
    }
259

  
260
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0033_auto__add_field_libertyprovider_slug.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6
from django.template.defaultfilters import slugify
7

  
8
from authentic2.compat import user_model_label
9

  
10
class Migration(SchemaMigration):
11

  
12
    def forwards(self, orm):
13
        # Adding field 'LibertyProvider.slug'
14
        db.add_column(u'saml_libertyprovider', 'slug',
15
                      self.gf('django.db.models.fields.SlugField')(max_length=140, null=True),
16
                      keep_default=False)
17
        if not db.dry_run:
18
            for provider in orm.LibertyProvider.objects.all():
19
                provider.slug = slugify(provider.name)
20
                provider.save()
21
        # Changing field 'LibertyProvider.slug'
22
        db.alter_column(u'saml_libertyprovider', 'slug', self.gf('django.db.models.fields.SlugField')(default='', unique=True, max_length=140))
23
        # Adding unique constraint on 'LibertyProvider', fields ['slug']
24
        db.create_unique(u'saml_libertyprovider', ['slug'])
25

  
26

  
27
    def backwards(self, orm):
28
        # Removing unique constraint on 'LibertyProvider', fields ['slug']
29
        db.delete_unique(u'saml_libertyprovider', ['slug'])
30

  
31

  
32
        # Changing field 'LibertyProvider.slug'
33
        db.alter_column(u'saml_libertyprovider', 'slug', self.gf('django.db.models.fields.SlugField')(max_length=140, null=True))
34
        # Deleting field 'LibertyProvider.slug'
35
        db.delete_column(u'saml_libertyprovider', 'slug')
36

  
37

  
38
    models = {
39
        u'attribute_aggregator.attributesource': {
40
            'Meta': {'object_name': 'AttributeSource'},
41
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
43
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
44
        },
45
        u'auth.group': {
46
            'Meta': {'object_name': 'Group'},
47
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
49
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
50
        },
51
        u'auth.permission': {
52
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
53
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
54
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
55
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
57
        },
58
        user_model_label: {
59
            'Meta': {'object_name': user_model_label.split('.')[-1]},
60
        },
61
        u'contenttypes.contenttype': {
62
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
63
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
64
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
66
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
67
        },
68
        u'idp.attributeitem': {
69
            'Meta': {'object_name': 'AttributeItem'},
70
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
71
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
73
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
74
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
75
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
76
        },
77
        u'idp.attributelist': {
78
            'Meta': {'object_name': 'AttributeList'},
79
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
80
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
81
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
82
        },
83
        u'idp.attributepolicy': {
84
            'Meta': {'object_name': 'AttributePolicy'},
85
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
86
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
87
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
88
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
89
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
90
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
91
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
92
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
93
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
94
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
95
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
96
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
97
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
98
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
99
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
100
        },
101
        u'saml.authorizationattributemap': {
102
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
103
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
104
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
105
        },
106
        u'saml.authorizationattributemapping': {
107
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
108
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
109
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
110
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
111
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
113
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
114
        },
115
        u'saml.authorizationsppolicy': {
116
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
117
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
118
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
119
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
121
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
122
        },
123
        u'saml.idpoptionssppolicy': {
124
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
125
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
126
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
127
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
128
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
129
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
130
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
131
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
132
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
133
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
134
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
135
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
136
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
137
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
138
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
139
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
140
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
141
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
142
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
143
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
144
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
145
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
146
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
147
        },
148
        u'saml.keyvalue': {
149
            'Meta': {'object_name': 'KeyValue'},
150
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
151
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
152
        },
153
        u'saml.libertyartifact': {
154
            'Meta': {'object_name': 'LibertyArtifact'},
155
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
156
            'content': ('django.db.models.fields.TextField', [], {}),
157
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
158
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
159
        },
160
        u'saml.libertyassertion': {
161
            'Meta': {'object_name': 'LibertyAssertion'},
162
            'assertion': ('django.db.models.fields.TextField', [], {}),
163
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
164
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
165
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
166
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
167
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
168
        },
169
        u'saml.libertyfederation': {
170
            'Meta': {'object_name': 'LibertyFederation'},
171
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
172
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
173
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True'}),
174
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
175
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
176
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
177
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True'}),
178
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
179
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
180
        },
181
        u'saml.libertyidentityprovider': {
182
            'Meta': {'object_name': 'LibertyIdentityProvider'},
183
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
184
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
185
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
186
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
187
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
188
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
189
        },
190
        u'saml.libertymanagedump': {
191
            'Meta': {'object_name': 'LibertyManageDump'},
192
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
193
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
194
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
195
        },
196
        u'saml.libertyprovider': {
197
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
198
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
199
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
200
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
201
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
202
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
203
            'metadata': ('django.db.models.fields.TextField', [], {}),
204
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
205
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
206
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
207
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
208
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
209
        },
210
        u'saml.libertyproviderpolicy': {
211
            'Meta': {'object_name': 'LibertyProviderPolicy'},
212
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
213
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
214
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
215
        },
216
        u'saml.libertyserviceprovider': {
217
            'Meta': {'object_name': 'LibertyServiceProvider'},
218
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
219
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
220
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
221
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
222
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
223
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
224
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
225
        },
226
        u'saml.libertysession': {
227
            'Meta': {'object_name': 'LibertySession'},
228
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
229
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
230
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
231
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
232
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
233
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
234
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
235
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
236
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
237
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
238
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
239
        },
240
        u'saml.libertysessiondump': {
241
            'Meta': {'object_name': 'LibertySessionDump'},
242
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
243
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
244
            'kind': ('django.db.models.fields.IntegerField', [], {}),
245
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
246
        },
247
        u'saml.libertysessionsp': {
248
            'Meta': {'object_name': 'LibertySessionSP'},
249
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
250
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
251
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
252
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
253
        },
254
        u'saml.spoptionsidppolicy': {
255
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
256
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
257
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
258
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
259
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
260
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
261
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
262
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
263
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
264
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
265
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
266
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
267
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
268
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
269
        }
270
    }
271

  
272
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0034_auto__add_field_idpoptionssppolicy_persistent_identifier_attribute.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
from authentic2.compat import user_model_label
9

  
10

  
11
class Migration(SchemaMigration):
12

  
13
    def forwards(self, orm):
14
        # Adding field 'IdPOptionsSPPolicy.persistent_identifier_attribute'
15
        db.add_column(u'saml_idpoptionssppolicy', 'persistent_identifier_attribute',
16
                      self.gf('django.db.models.fields.CharField')(max_length=200, null=True, blank=True),
17
                      keep_default=False)
18

  
19

  
20
    def backwards(self, orm):
21
        # Deleting field 'IdPOptionsSPPolicy.persistent_identifier_attribute'
22
        db.delete_column(u'saml_idpoptionssppolicy', 'persistent_identifier_attribute')
23

  
24

  
25
    models = {
26
        u'attribute_aggregator.attributesource': {
27
            'Meta': {'object_name': 'AttributeSource'},
28
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
29
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
30
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
31
        },
32
        u'auth.group': {
33
            'Meta': {'object_name': 'Group'},
34
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
36
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
37
        },
38
        u'auth.permission': {
39
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
40
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
41
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
42
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
44
        },
45
        u'contenttypes.contenttype': {
46
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
47
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
48
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
50
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
51
        },
52
        u'idp.attributeitem': {
53
            'Meta': {'object_name': 'AttributeItem'},
54
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
55
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
57
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
58
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
59
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
60
        },
61
        u'idp.attributelist': {
62
            'Meta': {'object_name': 'AttributeList'},
63
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
64
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
66
        },
67
        u'idp.attributepolicy': {
68
            'Meta': {'object_name': 'AttributePolicy'},
69
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
70
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
71
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
72
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
73
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
74
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
75
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
77
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
78
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
79
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
80
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
81
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
82
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
83
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
84
        },
85
        user_model_label: {
86
            'Meta': {'object_name': user_model_label.split('.')[-1]},
87
        },
88
        u'saml.authorizationattributemap': {
89
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
90
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
91
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
92
        },
93
        u'saml.authorizationattributemapping': {
94
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
95
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
96
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
97
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
98
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
99
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
100
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
101
        },
102
        u'saml.authorizationsppolicy': {
103
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
104
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
105
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
106
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
107
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
108
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
109
        },
110
        u'saml.idpoptionssppolicy': {
111
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
112
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
113
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
114
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
115
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
116
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
121
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
122
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
123
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
124
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
125
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
126
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
127
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
128
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
129
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
130
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
131
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
132
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
133
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
134
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
135
        },
136
        u'saml.keyvalue': {
137
            'Meta': {'object_name': 'KeyValue'},
138
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
139
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
140
        },
141
        u'saml.libertyartifact': {
142
            'Meta': {'object_name': 'LibertyArtifact'},
143
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
144
            'content': ('django.db.models.fields.TextField', [], {}),
145
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
146
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
147
        },
148
        u'saml.libertyassertion': {
149
            'Meta': {'object_name': 'LibertyAssertion'},
150
            'assertion': ('django.db.models.fields.TextField', [], {}),
151
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
152
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
153
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
154
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
155
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
156
        },
157
        u'saml.libertyfederation': {
158
            'Meta': {'object_name': 'LibertyFederation'},
159
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
160
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
161
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True'}),
162
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
163
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
164
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
165
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True'}),
166
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
167
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
168
        },
169
        u'saml.libertyidentityprovider': {
170
            'Meta': {'object_name': 'LibertyIdentityProvider'},
171
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
172
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
173
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
174
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
175
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
176
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
177
        },
178
        u'saml.libertymanagedump': {
179
            'Meta': {'object_name': 'LibertyManageDump'},
180
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
181
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
182
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
183
        },
184
        u'saml.libertyprovider': {
185
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
186
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
187
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
188
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
189
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
190
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
191
            'metadata': ('django.db.models.fields.TextField', [], {}),
192
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
193
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
194
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
195
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
196
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
197
        },
198
        u'saml.libertyproviderpolicy': {
199
            'Meta': {'object_name': 'LibertyProviderPolicy'},
200
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
201
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
202
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
203
        },
204
        u'saml.libertyserviceprovider': {
205
            'Meta': {'object_name': 'LibertyServiceProvider'},
206
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
207
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
208
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
209
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
210
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
211
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
212
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
213
        },
214
        u'saml.libertysession': {
215
            'Meta': {'object_name': 'LibertySession'},
216
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
217
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
218
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
219
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
220
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
221
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
222
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
223
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
224
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
225
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
226
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
227
        },
228
        u'saml.libertysessiondump': {
229
            'Meta': {'object_name': 'LibertySessionDump'},
230
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
231
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
232
            'kind': ('django.db.models.fields.IntegerField', [], {}),
233
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
234
        },
235
        u'saml.libertysessionsp': {
236
            'Meta': {'object_name': 'LibertySessionSP'},
237
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
238
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
239
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
240
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
241
        },
242
        u'saml.spoptionsidppolicy': {
243
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
244
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
245
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
246
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
247
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
248
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
249
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
250
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
251
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
252
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
253
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
254
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
255
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
256
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
257
        }
258
    }
259

  
260
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0035_auto__add_field_spoptionsidppolicy_federation_mode.py
1
# -*- coding: utf-8 -*-
2
import datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7
from authentic2.compat import user_model_label
8

  
9
class Migration(SchemaMigration):
10

  
11
    def forwards(self, orm):
12
        # Adding field 'SPOptionsIdPPolicy.federation_mode'
13
        db.add_column(u'saml_spoptionsidppolicy', 'federation_mode',
14
                      self.gf('django.db.models.fields.PositiveIntegerField')(default=0),
15
                      keep_default=False)
16

  
17

  
18
    def backwards(self, orm):
19
        # Deleting field 'SPOptionsIdPPolicy.federation_mode'
20
        db.delete_column(u'saml_spoptionsidppolicy', 'federation_mode')
21

  
22

  
23
    models = {
24
        u'attribute_aggregator.attributesource': {
25
            'Meta': {'object_name': 'AttributeSource'},
26
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
28
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
29
        },
30
        u'auth.group': {
31
            'Meta': {'object_name': 'Group'},
32
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
34
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
35
        },
36
        u'auth.permission': {
37
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
38
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
39
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
40
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
42
        },
43
        user_model_label: {
44
            'Meta': {'object_name':  user_model_label.split('.')[-1]},
45
        },
46
        u'contenttypes.contenttype': {
47
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
48
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
49
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
51
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
52
        },
53
        u'idp.attributeitem': {
54
            'Meta': {'object_name': 'AttributeItem'},
55
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
56
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
58
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
59
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
60
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
61
        },
62
        u'idp.attributelist': {
63
            'Meta': {'object_name': 'AttributeList'},
64
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['idp.AttributeItem']"}),
65
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
67
        },
68
        u'idp.attributepolicy': {
69
            'Meta': {'object_name': 'AttributePolicy'},
70
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
71
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
72
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
73
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['idp.AttributeList']"}),
74
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
75
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
77
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
79
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
80
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
81
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
82
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
83
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
84
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
85
        },
86
        u'saml.authorizationattributemap': {
87
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
88
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
90
        },
91
        u'saml.authorizationattributemapping': {
92
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
93
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
94
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
95
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
96
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
97
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
98
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
99
        },
100
        u'saml.authorizationsppolicy': {
101
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
102
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
103
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
104
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
106
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
107
        },
108
        u'saml.idpoptionssppolicy': {
109
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
110
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
111
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
113
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
114
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
115
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
120
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
121
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
122
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
123
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
124
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
125
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
126
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
127
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
128
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
129
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
130
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
131
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
132
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
133
        },
134
        u'saml.keyvalue': {
135
            'Meta': {'object_name': 'KeyValue'},
136
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
137
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
138
        },
139
        u'saml.libertyartifact': {
140
            'Meta': {'object_name': 'LibertyArtifact'},
141
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
142
            'content': ('django.db.models.fields.TextField', [], {}),
143
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
144
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
145
        },
146
        u'saml.libertyassertion': {
147
            'Meta': {'object_name': 'LibertyAssertion'},
148
            'assertion': ('django.db.models.fields.TextField', [], {}),
149
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
150
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
151
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
152
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
153
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
154
        },
155
        u'saml.libertyfederation': {
156
            'Meta': {'object_name': 'LibertyFederation'},
157
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
158
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
159
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
160
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
161
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
162
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
163
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
164
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
166
        },
167
        u'saml.libertyidentityprovider': {
168
            'Meta': {'object_name': 'LibertyIdentityProvider'},
169
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
170
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
171
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
172
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
173
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
174
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
175
        },
176
        u'saml.libertymanagedump': {
177
            'Meta': {'object_name': 'LibertyManageDump'},
178
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
179
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
180
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
181
        },
182
        u'saml.libertyprovider': {
183
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
184
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
185
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
186
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
187
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
188
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
189
            'metadata': ('django.db.models.fields.TextField', [], {}),
190
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
191
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
192
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
193
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
194
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
195
        },
196
        u'saml.libertyproviderpolicy': {
197
            'Meta': {'object_name': 'LibertyProviderPolicy'},
198
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
199
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
200
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
201
        },
202
        u'saml.libertyserviceprovider': {
203
            'Meta': {'object_name': 'LibertyServiceProvider'},
204
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
205
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
206
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
207
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
208
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
209
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
210
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
211
        },
212
        u'saml.libertysession': {
213
            'Meta': {'object_name': 'LibertySession'},
214
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
215
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
216
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
217
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
218
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
219
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
220
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
221
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
222
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
223
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
224
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
225
        },
226
        u'saml.libertysessiondump': {
227
            'Meta': {'object_name': 'LibertySessionDump'},
228
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
229
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
230
            'kind': ('django.db.models.fields.IntegerField', [], {}),
231
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
232
        },
233
        u'saml.libertysessionsp': {
234
            'Meta': {'object_name': 'LibertySessionSP'},
235
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
236
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
237
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
238
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
239
        },
240
        u'saml.spoptionsidppolicy': {
241
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
242
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
243
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
244
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
246
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
247
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
248
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
249
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
250
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
251
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
252
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
253
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
254
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
255
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
256
        }
257
    }
258

  
259
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0036_auto__add_field_libertyfederation_name_id_qualifier__add_field_liberty.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Adding field 'LibertyFederation.name_id_qualifier'
12
        db.add_column(u'saml_libertyfederation', 'name_id_qualifier',
13
                      self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True),
14
                      keep_default=False)
15

  
16
        # Adding field 'LibertyFederation.name_id_sp_name_qualifier'
17
        db.add_column(u'saml_libertyfederation', 'name_id_sp_name_qualifier',
18
                      self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True),
19
                      keep_default=False)
20

  
21

  
22
    def backwards(self, orm):
23
        # Deleting field 'LibertyFederation.name_id_qualifier'
24
        db.delete_column(u'saml_libertyfederation', 'name_id_qualifier')
25

  
26
        # Deleting field 'LibertyFederation.name_id_sp_name_qualifier'
27
        db.delete_column(u'saml_libertyfederation', 'name_id_sp_name_qualifier')
28

  
29

  
30
    models = {
31
        u'attribute_aggregator.attributeitem': {
32
            'Meta': {'object_name': 'AttributeItem'},
33
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
34
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
36
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
37
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
38
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
39
        },
40
        u'attribute_aggregator.attributelist': {
41
            'Meta': {'object_name': 'AttributeList'},
42
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
43
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
44
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
45
        },
46
        u'attribute_aggregator.attributesource': {
47
            'Meta': {'object_name': 'AttributeSource'},
48
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
50
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
51
        },
52
        user_model_label: {
53
            'Meta': {'object_name': user_model_label.split('.')[-1]},
54
        },
55
        u'contenttypes.contenttype': {
56
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
57
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
58
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
60
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
61
        },
62
        u'idp.attributepolicy': {
63
            'Meta': {'object_name': 'AttributePolicy'},
64
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
65
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
66
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
67
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
68
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
69
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
71
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
73
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
74
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
75
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
76
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
77
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
78
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
79
        },
80
        u'saml.authorizationattributemap': {
81
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
82
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
84
        },
85
        u'saml.authorizationattributemapping': {
86
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
87
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
88
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
89
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
90
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
91
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
92
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
93
        },
94
        u'saml.authorizationsppolicy': {
95
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
96
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
97
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
98
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
99
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
100
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
101
        },
102
        u'saml.idpoptionssppolicy': {
103
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
104
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
105
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
107
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
108
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
113
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
114
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
115
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
116
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
117
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
118
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
119
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
120
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
121
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
122
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
123
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
124
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
125
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
126
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
127
        },
128
        u'saml.keyvalue': {
129
            'Meta': {'object_name': 'KeyValue'},
130
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
131
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
132
        },
133
        u'saml.libertyartifact': {
134
            'Meta': {'object_name': 'LibertyArtifact'},
135
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
136
            'content': ('django.db.models.fields.TextField', [], {}),
137
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
138
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
139
        },
140
        u'saml.libertyassertion': {
141
            'Meta': {'object_name': 'LibertyAssertion'},
142
            'assertion': ('django.db.models.fields.TextField', [], {}),
143
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
144
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
145
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
146
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
147
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
148
        },
149
        u'saml.libertyfederation': {
150
            'Meta': {'object_name': 'LibertyFederation'},
151
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
152
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
153
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
154
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
155
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
156
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
157
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
158
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
159
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
160
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
161
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
162
        },
163
        u'saml.libertyidentityprovider': {
164
            'Meta': {'object_name': 'LibertyIdentityProvider'},
165
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
166
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
167
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
168
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
169
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
170
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
171
        },
172
        u'saml.libertymanagedump': {
173
            'Meta': {'object_name': 'LibertyManageDump'},
174
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
175
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
176
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
177
        },
178
        u'saml.libertyprovider': {
179
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
180
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
181
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
182
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
183
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
184
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
185
            'metadata': ('django.db.models.fields.TextField', [], {}),
186
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
187
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
188
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
189
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
190
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
191
        },
192
        u'saml.libertyproviderpolicy': {
193
            'Meta': {'object_name': 'LibertyProviderPolicy'},
194
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
195
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
196
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
197
        },
198
        u'saml.libertyserviceprovider': {
199
            'Meta': {'object_name': 'LibertyServiceProvider'},
200
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
201
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
202
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
203
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
204
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
205
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
206
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
207
        },
208
        u'saml.libertysession': {
209
            'Meta': {'object_name': 'LibertySession'},
210
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
211
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
212
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
213
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
214
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
215
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
216
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
217
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
218
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
219
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
220
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
221
        },
222
        u'saml.libertysessiondump': {
223
            'Meta': {'object_name': 'LibertySessionDump'},
224
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
225
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
226
            'kind': ('django.db.models.fields.IntegerField', [], {}),
227
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
228
        },
229
        u'saml.libertysessionsp': {
230
            'Meta': {'object_name': 'LibertySessionSP'},
231
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
232
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
233
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
234
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
235
        },
236
        u'saml.spoptionsidppolicy': {
237
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
238
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
239
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
240
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
241
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
242
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
243
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
244
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
246
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
247
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
248
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
249
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
250
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
251
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
252
        }
253
    }
254

  
255
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0037_auto__add_field_spoptionsidppolicy_needs_iframe_logout__add_field_spop.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Adding field 'SPOptionsIdPPolicy.needs_iframe_logout'
12
        db.add_column(u'saml_spoptionsidppolicy', 'needs_iframe_logout',
13
                      self.gf('django.db.models.fields.BooleanField')(default=False),
14
                      keep_default=False)
15

  
16
        # Adding field 'SPOptionsIdPPolicy.iframe_logout_timeout'
17
        db.add_column(u'saml_spoptionsidppolicy', 'iframe_logout_timeout',
18
                      self.gf('django.db.models.fields.PositiveIntegerField')(default=300),
19
                      keep_default=False)
20

  
21

  
22
    def backwards(self, orm):
23
        # Deleting field 'SPOptionsIdPPolicy.needs_iframe_logout'
24
        db.delete_column(u'saml_spoptionsidppolicy', 'needs_iframe_logout')
25

  
26
        # Deleting field 'SPOptionsIdPPolicy.iframe_logout_timeout'
27
        db.delete_column(u'saml_spoptionsidppolicy', 'iframe_logout_timeout')
28

  
29

  
30
    models = {
31
        u'attribute_aggregator.attributeitem': {
32
            'Meta': {'object_name': 'AttributeItem'},
33
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
34
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
36
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
37
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
38
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
39
        },
40
        u'attribute_aggregator.attributelist': {
41
            'Meta': {'object_name': 'AttributeList'},
42
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
43
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
44
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
45
        },
46
        u'attribute_aggregator.attributesource': {
47
            'Meta': {'object_name': 'AttributeSource'},
48
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
50
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
51
        },
52
        user_model_label: {
53
            'Meta': {'object_name': user_model_label.split('.')[-1]},
54
        },
55
        u'contenttypes.contenttype': {
56
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
57
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
58
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
60
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
61
        },
62
        u'idp.attributepolicy': {
63
            'Meta': {'object_name': 'AttributePolicy'},
64
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
65
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
66
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
67
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
68
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
69
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
71
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
73
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
74
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
75
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
76
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
77
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
78
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
79
        },
80
        u'saml.authorizationattributemap': {
81
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
82
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
84
        },
85
        u'saml.authorizationattributemapping': {
86
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
87
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
88
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
89
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
90
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
91
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
92
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
93
        },
94
        u'saml.authorizationsppolicy': {
95
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
96
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
97
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
98
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
99
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
100
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
101
        },
102
        u'saml.idpoptionssppolicy': {
103
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
104
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
105
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
107
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
108
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
113
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
114
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
115
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
116
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
117
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
118
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
119
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
120
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
121
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
122
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
123
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
124
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
125
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
126
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
127
        },
128
        u'saml.keyvalue': {
129
            'Meta': {'object_name': 'KeyValue'},
130
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
131
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
132
        },
133
        u'saml.libertyartifact': {
134
            'Meta': {'object_name': 'LibertyArtifact'},
135
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
136
            'content': ('django.db.models.fields.TextField', [], {}),
137
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
138
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
139
        },
140
        u'saml.libertyassertion': {
141
            'Meta': {'object_name': 'LibertyAssertion'},
142
            'assertion': ('django.db.models.fields.TextField', [], {}),
143
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
144
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
145
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
146
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
147
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
148
        },
149
        u'saml.libertyfederation': {
150
            'Meta': {'object_name': 'LibertyFederation'},
151
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
152
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
153
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
154
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
155
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
156
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
157
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
158
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
159
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
160
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
161
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
162
        },
163
        u'saml.libertyidentityprovider': {
164
            'Meta': {'object_name': 'LibertyIdentityProvider'},
165
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
166
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
167
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
168
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
169
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
170
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
171
        },
172
        u'saml.libertymanagedump': {
173
            'Meta': {'object_name': 'LibertyManageDump'},
174
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
175
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
176
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
177
        },
178
        u'saml.libertyprovider': {
179
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
180
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
181
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
182
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
183
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
184
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
185
            'metadata': ('django.db.models.fields.TextField', [], {}),
186
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
187
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
188
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
189
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
190
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
191
        },
192
        u'saml.libertyproviderpolicy': {
193
            'Meta': {'object_name': 'LibertyProviderPolicy'},
194
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
195
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
196
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
197
        },
198
        u'saml.libertyserviceprovider': {
199
            'Meta': {'object_name': 'LibertyServiceProvider'},
200
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
201
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
202
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
203
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
204
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
205
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
206
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
207
        },
208
        u'saml.libertysession': {
209
            'Meta': {'object_name': 'LibertySession'},
210
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
211
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
212
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
213
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
214
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
215
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
216
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
217
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
218
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
219
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
220
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
221
        },
222
        u'saml.libertysessiondump': {
223
            'Meta': {'object_name': 'LibertySessionDump'},
224
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
225
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
226
            'kind': ('django.db.models.fields.IntegerField', [], {}),
227
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
228
        },
229
        u'saml.libertysessionsp': {
230
            'Meta': {'object_name': 'LibertySessionSP'},
231
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
232
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
233
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
234
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
235
        },
236
        u'saml.spoptionsidppolicy': {
237
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
238
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
239
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
240
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
241
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
242
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
243
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
244
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
246
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
247
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
248
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
249
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
250
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
251
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
252
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
253
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
254
        }
255
    }
256

  
257
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0038_auto__add_field_spoptionsidppolicy_http_method_for_slo_request.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Adding field 'SPOptionsIdPPolicy.http_method_for_slo_request'
12
        db.add_column(u'saml_spoptionsidppolicy', 'http_method_for_slo_request',
13
                      self.gf('django.db.models.fields.IntegerField')(default=4),
14
                      keep_default=False)
15

  
16

  
17
    def backwards(self, orm):
18
        # Deleting field 'SPOptionsIdPPolicy.http_method_for_slo_request'
19
        db.delete_column(u'saml_spoptionsidppolicy', 'http_method_for_slo_request')
20

  
21

  
22
    models = {
23
        u'attribute_aggregator.attributeitem': {
24
            'Meta': {'object_name': 'AttributeItem'},
25
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
26
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
28
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
29
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
30
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
31
        },
32
        u'attribute_aggregator.attributelist': {
33
            'Meta': {'object_name': 'AttributeList'},
34
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
35
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
37
        },
38
        u'attribute_aggregator.attributesource': {
39
            'Meta': {'object_name': 'AttributeSource'},
40
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
42
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
43
        },
44
        user_model_label: {
45
            'Meta': {'object_name': user_model_label.split('.')[-1]},
46
        },
47
        u'contenttypes.contenttype': {
48
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
49
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
50
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
52
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
53
        },
54
        u'idp.attributepolicy': {
55
            'Meta': {'object_name': 'AttributePolicy'},
56
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
57
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
58
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
59
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
60
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
62
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
63
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
64
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
66
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
67
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
68
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
69
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
71
        },
72
        u'saml.authorizationattributemap': {
73
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
74
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
76
        },
77
        u'saml.authorizationattributemapping': {
78
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
79
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
80
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
81
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
82
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
84
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
85
        },
86
        u'saml.authorizationsppolicy': {
87
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
88
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
89
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
90
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
91
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
92
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
93
        },
94
        u'saml.idpoptionssppolicy': {
95
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
96
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
97
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
98
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
99
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
100
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
101
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
102
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
106
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
107
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
108
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
109
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
110
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
111
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
112
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
113
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
114
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
115
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
119
        },
120
        u'saml.keyvalue': {
121
            'Meta': {'object_name': 'KeyValue'},
122
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
123
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
124
        },
125
        u'saml.libertyartifact': {
126
            'Meta': {'object_name': 'LibertyArtifact'},
127
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
128
            'content': ('django.db.models.fields.TextField', [], {}),
129
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
130
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
131
        },
132
        u'saml.libertyassertion': {
133
            'Meta': {'object_name': 'LibertyAssertion'},
134
            'assertion': ('django.db.models.fields.TextField', [], {}),
135
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
136
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
137
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
138
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
139
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
140
        },
141
        u'saml.libertyfederation': {
142
            'Meta': {'object_name': 'LibertyFederation'},
143
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
144
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
145
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
146
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
147
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
148
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
149
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
150
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
151
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
152
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
153
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
154
        },
155
        u'saml.libertyidentityprovider': {
156
            'Meta': {'object_name': 'LibertyIdentityProvider'},
157
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
158
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
159
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
160
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
161
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
162
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
163
        },
164
        u'saml.libertymanagedump': {
165
            'Meta': {'object_name': 'LibertyManageDump'},
166
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
167
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
168
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
169
        },
170
        u'saml.libertyprovider': {
171
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
172
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
173
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
174
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
175
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
176
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
177
            'metadata': ('django.db.models.fields.TextField', [], {}),
178
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
179
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
180
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
181
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
182
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
183
        },
184
        u'saml.libertyproviderpolicy': {
185
            'Meta': {'object_name': 'LibertyProviderPolicy'},
186
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
187
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
188
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
189
        },
190
        u'saml.libertyserviceprovider': {
191
            'Meta': {'object_name': 'LibertyServiceProvider'},
192
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
193
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
194
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
195
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
196
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
197
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
198
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
199
        },
200
        u'saml.libertysession': {
201
            'Meta': {'object_name': 'LibertySession'},
202
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True'}),
203
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
204
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
205
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True'}),
206
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
207
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
208
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
209
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
210
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
211
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
212
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
213
        },
214
        u'saml.libertysessiondump': {
215
            'Meta': {'object_name': 'LibertySessionDump'},
216
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
217
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
218
            'kind': ('django.db.models.fields.IntegerField', [], {}),
219
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
220
        },
221
        u'saml.libertysessionsp': {
222
            'Meta': {'object_name': 'LibertySessionSP'},
223
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
224
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
225
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
226
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
227
        },
228
        u'saml.spoptionsidppolicy': {
229
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
230
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
231
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
232
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
233
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
234
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
235
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
236
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
237
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
238
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
239
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
240
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
241
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
242
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
243
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
244
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
245
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
246
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
247
        }
248
    }
249

  
250
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0039_auto__add_samlattribute.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7
class Migration(SchemaMigration):
8

  
9
    def forwards(self, orm):
10
        # Adding model 'SAMLAttribute'
11
        db.create_table(u'saml_samlattribute', (
12
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
13
            ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
14
            ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
15
            ('name_format', self.gf('django.db.models.fields.CharField')(default='basic', max_length=64)),
16
            ('name', self.gf('django.db.models.fields.CharField')(max_length=64)),
17
            ('friendly_name', self.gf('django.db.models.fields.CharField')(max_length=64, blank=True)),
18
            ('attribute_name', self.gf('django.db.models.fields.CharField')(max_length=64, blank=True)),
19
        ))
20
        db.send_create_signal(u'saml', ['SAMLAttribute'])
21

  
22

  
23
    def backwards(self, orm):
24
        # Deleting model 'SAMLAttribute'
25
        db.delete_table(u'saml_samlattribute')
26

  
27

  
28
    models = {
29
        u'attribute_aggregator.attributeitem': {
30
            'Meta': {'object_name': 'AttributeItem'},
31
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
32
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
34
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
35
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
36
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
37
        },
38
        u'attribute_aggregator.attributelist': {
39
            'Meta': {'object_name': 'AttributeList'},
40
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
41
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
43
        },
44
        u'attribute_aggregator.attributesource': {
45
            'Meta': {'object_name': 'AttributeSource'},
46
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
48
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
49
        },
50
        user_model_label: {
51
            'Meta': {'object_name': user_model_label.split('.')[-1]},
52
        },
53
        u'contenttypes.contenttype': {
54
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
55
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
56
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
57
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
58
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
59
        },
60
        u'idp.attributepolicy': {
61
            'Meta': {'object_name': 'AttributePolicy'},
62
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
63
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
64
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
65
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
66
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
67
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
68
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
69
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
70
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
71
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
72
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
73
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
74
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
75
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
77
        },
78
        u'saml.authorizationattributemap': {
79
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
80
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
81
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
82
        },
83
        u'saml.authorizationattributemapping': {
84
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
85
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
86
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
87
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
88
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
90
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
91
        },
92
        u'saml.authorizationsppolicy': {
93
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
94
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
95
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
96
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
97
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
98
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
99
        },
100
        u'saml.idpoptionssppolicy': {
101
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
102
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
103
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
105
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
106
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
107
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
108
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
112
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
113
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
114
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
115
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
116
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
117
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
118
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
120
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
121
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
122
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
123
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
124
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
125
        },
126
        u'saml.keyvalue': {
127
            'Meta': {'object_name': 'KeyValue'},
128
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
129
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
130
        },
131
        u'saml.libertyartifact': {
132
            'Meta': {'object_name': 'LibertyArtifact'},
133
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
134
            'content': ('django.db.models.fields.TextField', [], {}),
135
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
136
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
137
        },
138
        u'saml.libertyassertion': {
139
            'Meta': {'object_name': 'LibertyAssertion'},
140
            'assertion': ('django.db.models.fields.TextField', [], {}),
141
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
142
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
143
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
144
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
145
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
146
        },
147
        u'saml.libertyfederation': {
148
            'Meta': {'object_name': 'LibertyFederation'},
149
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
150
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
151
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
152
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
153
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
154
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
155
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
156
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
157
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
158
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
159
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
160
        },
161
        u'saml.libertyidentityprovider': {
162
            'Meta': {'object_name': 'LibertyIdentityProvider'},
163
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
164
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
167
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
168
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
169
        },
170
        u'saml.libertymanagedump': {
171
            'Meta': {'object_name': 'LibertyManageDump'},
172
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
173
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
174
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
175
        },
176
        u'saml.libertyprovider': {
177
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
178
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
179
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
180
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
181
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
182
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
183
            'metadata': ('django.db.models.fields.TextField', [], {}),
184
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
185
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
186
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
187
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
188
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
189
        },
190
        u'saml.libertyproviderpolicy': {
191
            'Meta': {'object_name': 'LibertyProviderPolicy'},
192
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
193
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
194
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
195
        },
196
        u'saml.libertyserviceprovider': {
197
            'Meta': {'object_name': 'LibertyServiceProvider'},
198
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
199
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
200
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
201
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
202
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
203
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
204
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
205
        },
206
        u'saml.libertysession': {
207
            'Meta': {'object_name': 'LibertySession'},
208
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True', 'blank': 'True'}),
209
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
210
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
211
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True', 'blank': 'True'}),
212
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
213
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
214
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
215
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
216
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
217
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
218
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
219
        },
220
        u'saml.libertysessiondump': {
221
            'Meta': {'object_name': 'LibertySessionDump'},
222
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
223
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
224
            'kind': ('django.db.models.fields.IntegerField', [], {}),
225
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
226
        },
227
        u'saml.libertysessionsp': {
228
            'Meta': {'object_name': 'LibertySessionSP'},
229
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
230
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
231
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
232
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
233
        },
234
        u'saml.samlattribute': {
235
            'Meta': {'object_name': 'SAMLAttribute'},
236
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
237
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
238
            'friendly_name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
239
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
240
            'name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
241
            'name_format': ('django.db.models.fields.CharField', [], {'default': "'basic'", 'max_length': '64'}),
242
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
243
        },
244
        u'saml.spoptionsidppolicy': {
245
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
246
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
247
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
248
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
249
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
250
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
251
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
252
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
253
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
254
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
255
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
256
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
257
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
258
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
259
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
260
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
261
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
262
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
263
        }
264
    }
265

  
266
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0040_auto__add_unique_samlattribute_content_type_object_id_name_format_name.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7
class Migration(SchemaMigration):
8

  
9
    def forwards(self, orm):
10
        # Adding unique constraint on 'SAMLAttribute', fields ['content_type', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name']
11
        db.create_unique(u'saml_samlattribute', ['content_type_id', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name'])
12

  
13

  
14
    def backwards(self, orm):
15
        # Removing unique constraint on 'SAMLAttribute', fields ['content_type', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name']
16
        db.delete_unique(u'saml_samlattribute', ['content_type_id', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name'])
17

  
18

  
19
    models = {
20
        u'attribute_aggregator.attributeitem': {
21
            'Meta': {'object_name': 'AttributeItem'},
22
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
23
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
24
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
25
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
26
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
27
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
28
        },
29
        u'attribute_aggregator.attributelist': {
30
            'Meta': {'object_name': 'AttributeList'},
31
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
32
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
34
        },
35
        u'attribute_aggregator.attributesource': {
36
            'Meta': {'object_name': 'AttributeSource'},
37
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
39
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
40
        },
41
        user_model_label: {
42
            'Meta': {'object_name': user_model_label.split('.')[-1]},
43
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
44
        },
45
        u'contenttypes.contenttype': {
46
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
47
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
48
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
49
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
50
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
51
        },
52
        u'idp.attributepolicy': {
53
            'Meta': {'object_name': 'AttributePolicy'},
54
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
55
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
56
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
57
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
58
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
59
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
60
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
62
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
63
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
65
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
66
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
67
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
68
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
69
        },
70
        u'saml.authorizationattributemap': {
71
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
72
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
73
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
74
        },
75
        u'saml.authorizationattributemapping': {
76
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
77
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
78
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
79
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
80
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
81
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
82
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
83
        },
84
        u'saml.authorizationsppolicy': {
85
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
86
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
87
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
88
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
89
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
90
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
91
        },
92
        u'saml.idpoptionssppolicy': {
93
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
94
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
95
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
96
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
97
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
98
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
99
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
100
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
101
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
102
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
104
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
105
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
106
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
107
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
108
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
109
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
110
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
112
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
113
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
114
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
115
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
117
        },
118
        u'saml.keyvalue': {
119
            'Meta': {'object_name': 'KeyValue'},
120
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
121
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
122
        },
123
        u'saml.libertyartifact': {
124
            'Meta': {'object_name': 'LibertyArtifact'},
125
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
126
            'content': ('django.db.models.fields.TextField', [], {}),
127
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
128
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
129
        },
130
        u'saml.libertyassertion': {
131
            'Meta': {'object_name': 'LibertyAssertion'},
132
            'assertion': ('django.db.models.fields.TextField', [], {}),
133
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
134
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
135
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
136
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
137
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
138
        },
139
        u'saml.libertyfederation': {
140
            'Meta': {'object_name': 'LibertyFederation'},
141
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
142
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
143
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
144
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
145
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
146
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
147
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
148
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
149
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
150
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
151
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
152
        },
153
        u'saml.libertyidentityprovider': {
154
            'Meta': {'object_name': 'LibertyIdentityProvider'},
155
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
156
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
157
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
158
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
159
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
160
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
161
        },
162
        u'saml.libertymanagedump': {
163
            'Meta': {'object_name': 'LibertyManageDump'},
164
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
165
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
166
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
167
        },
168
        u'saml.libertyprovider': {
169
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
170
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
171
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
172
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
173
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
174
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
175
            'metadata': ('django.db.models.fields.TextField', [], {}),
176
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
177
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
178
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
179
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
180
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
181
        },
182
        u'saml.libertyproviderpolicy': {
183
            'Meta': {'object_name': 'LibertyProviderPolicy'},
184
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
185
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
186
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
187
        },
188
        u'saml.libertyserviceprovider': {
189
            'Meta': {'object_name': 'LibertyServiceProvider'},
190
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
191
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
192
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
193
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
194
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
195
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
196
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
197
        },
198
        u'saml.libertysession': {
199
            'Meta': {'object_name': 'LibertySession'},
200
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True', 'blank': 'True'}),
201
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
202
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
203
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True', 'blank': 'True'}),
204
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
205
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
206
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
207
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
208
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
209
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
210
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
211
        },
212
        u'saml.libertysessiondump': {
213
            'Meta': {'object_name': 'LibertySessionDump'},
214
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
215
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
216
            'kind': ('django.db.models.fields.IntegerField', [], {}),
217
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
218
        },
219
        u'saml.libertysessionsp': {
220
            'Meta': {'object_name': 'LibertySessionSP'},
221
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
222
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
223
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
224
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
225
        },
226
        u'saml.samlattribute': {
227
            'Meta': {'unique_together': "(('content_type', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name'),)", 'object_name': 'SAMLAttribute'},
228
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
229
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
230
            'friendly_name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
231
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
232
            'name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
233
            'name_format': ('django.db.models.fields.CharField', [], {'default': "'basic'", 'max_length': '64'}),
234
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
235
        },
236
        u'saml.spoptionsidppolicy': {
237
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
238
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
239
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
240
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
241
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
242
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
243
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
244
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
246
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
247
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
248
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
249
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
250
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
251
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
252
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
253
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
254
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
255
        }
256
    }
257

  
258
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0041_auto__add_field_samlattribute_enabled.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7
class Migration(SchemaMigration):
8

  
9
    def forwards(self, orm):
10
        # Adding field 'SAMLAttribute.enabled'
11
        db.add_column(u'saml_samlattribute', 'enabled',
12
                      self.gf('django.db.models.fields.BooleanField')(default=True),
13
                      keep_default=False)
14

  
15

  
16
    def backwards(self, orm):
17
        # Deleting field 'SAMLAttribute.enabled'
18
        db.delete_column(u'saml_samlattribute', 'enabled')
19

  
20

  
21
    models = {
22
        u'attribute_aggregator.attributeitem': {
23
            'Meta': {'object_name': 'AttributeItem'},
24
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
25
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
27
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
28
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
29
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
30
        },
31
        u'attribute_aggregator.attributelist': {
32
            'Meta': {'object_name': 'AttributeList'},
33
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
34
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
36
        },
37
        u'attribute_aggregator.attributesource': {
38
            'Meta': {'object_name': 'AttributeSource'},
39
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
41
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
42
        },
43
        user_model_label: {
44
            'Meta': {'object_name': user_model_label.split('.')[-1]},
45
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46
        },
47
        u'contenttypes.contenttype': {
48
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
49
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
50
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
52
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
53
        },
54
        u'idp.attributepolicy': {
55
            'Meta': {'object_name': 'AttributePolicy'},
56
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
57
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
58
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
59
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
60
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
62
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
63
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
64
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
66
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
67
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
68
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
69
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
71
        },
72
        u'saml.authorizationattributemap': {
73
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
74
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
75
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
76
        },
77
        u'saml.authorizationattributemapping': {
78
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
79
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
80
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
81
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
82
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
84
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
85
        },
86
        u'saml.authorizationsppolicy': {
87
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
88
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
89
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
90
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
91
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
92
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
93
        },
94
        u'saml.idpoptionssppolicy': {
95
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
96
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
97
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
98
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
99
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
100
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
101
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
102
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
106
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
107
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
108
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
109
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
110
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
111
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
112
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
113
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
114
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
115
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
119
        },
120
        u'saml.keyvalue': {
121
            'Meta': {'object_name': 'KeyValue'},
122
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
123
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
124
        },
125
        u'saml.libertyartifact': {
126
            'Meta': {'object_name': 'LibertyArtifact'},
127
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
128
            'content': ('django.db.models.fields.TextField', [], {}),
129
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
130
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
131
        },
132
        u'saml.libertyassertion': {
133
            'Meta': {'object_name': 'LibertyAssertion'},
134
            'assertion': ('django.db.models.fields.TextField', [], {}),
135
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
136
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
137
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
138
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
139
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
140
        },
141
        u'saml.libertyfederation': {
142
            'Meta': {'object_name': 'LibertyFederation'},
143
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
144
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
145
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
146
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
147
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
148
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
149
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
150
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
151
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
152
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
153
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
154
        },
155
        u'saml.libertyidentityprovider': {
156
            'Meta': {'object_name': 'LibertyIdentityProvider'},
157
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
158
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
159
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
160
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
161
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
162
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
163
        },
164
        u'saml.libertymanagedump': {
165
            'Meta': {'object_name': 'LibertyManageDump'},
166
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
167
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
168
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
169
        },
170
        u'saml.libertyprovider': {
171
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
172
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
173
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
174
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
175
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
176
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
177
            'metadata': ('django.db.models.fields.TextField', [], {}),
178
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
179
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
180
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
181
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
182
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
183
        },
184
        u'saml.libertyproviderpolicy': {
185
            'Meta': {'object_name': 'LibertyProviderPolicy'},
186
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
187
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
188
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
189
        },
190
        u'saml.libertyserviceprovider': {
191
            'Meta': {'object_name': 'LibertyServiceProvider'},
192
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
193
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
194
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
195
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
196
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
197
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
198
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
199
        },
200
        u'saml.libertysession': {
201
            'Meta': {'object_name': 'LibertySession'},
202
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True', 'blank': 'True'}),
203
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
204
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
205
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True', 'blank': 'True'}),
206
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
207
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
208
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
209
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
210
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
211
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
212
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
213
        },
214
        u'saml.libertysessiondump': {
215
            'Meta': {'object_name': 'LibertySessionDump'},
216
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
217
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
218
            'kind': ('django.db.models.fields.IntegerField', [], {}),
219
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
220
        },
221
        u'saml.libertysessionsp': {
222
            'Meta': {'object_name': 'LibertySessionSP'},
223
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
224
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
225
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
226
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
227
        },
228
        u'saml.samlattribute': {
229
            'Meta': {'unique_together': "(('content_type', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name'),)", 'object_name': 'SAMLAttribute'},
230
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
231
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
232
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
233
            'friendly_name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
234
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
235
            'name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
236
            'name_format': ('django.db.models.fields.CharField', [], {'default': "'basic'", 'max_length': '64'}),
237
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
238
        },
239
        u'saml.spoptionsidppolicy': {
240
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
241
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
242
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
243
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
244
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
246
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
247
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
248
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
249
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
250
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
251
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
252
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
253
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
254
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
255
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
256
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
257
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
258
        }
259
    }
260

  
261
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0042_auto__add_field_libertyserviceprovider_users_can_manage_federations.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Adding field 'LibertyServiceProvider.users_can_manage_federations'
12
        db.add_column(u'saml_libertyserviceprovider', 'users_can_manage_federations',
13
                      self.gf('django.db.models.fields.BooleanField')(default=True),
14
                      keep_default=False)
15

  
16

  
17
    def backwards(self, orm):
18
        # Deleting field 'LibertyServiceProvider.users_can_manage_federations'
19
        db.delete_column(u'saml_libertyserviceprovider', 'users_can_manage_federations')
20

  
21

  
22
    models = {
23
        u'attribute_aggregator.attributeitem': {
24
            'Meta': {'object_name': 'AttributeItem'},
25
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
26
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
28
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
29
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
30
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
31
        },
32
        u'attribute_aggregator.attributelist': {
33
            'Meta': {'object_name': 'AttributeList'},
34
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
35
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
37
        },
38
        u'attribute_aggregator.attributesource': {
39
            'Meta': {'object_name': 'AttributeSource'},
40
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
42
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
43
        },
44
        user_model_label: {
45
            'Meta': {'object_name': user_model_label.split('.')[-1]},
46
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47
        },
48
        u'contenttypes.contenttype': {
49
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
50
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
51
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
52
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
53
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
54
        },
55
        u'idp.attributepolicy': {
56
            'Meta': {'object_name': 'AttributePolicy'},
57
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
58
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
59
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
60
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
61
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
62
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
63
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
66
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
67
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
68
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
69
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
70
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
71
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
72
        },
73
        u'saml.authorizationattributemap': {
74
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
75
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
77
        },
78
        u'saml.authorizationattributemapping': {
79
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
80
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
81
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
82
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
83
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
84
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
85
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
86
        },
87
        u'saml.authorizationsppolicy': {
88
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
89
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
90
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
91
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
92
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
93
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
94
        },
95
        u'saml.idpoptionssppolicy': {
96
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
97
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
98
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
99
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
100
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
101
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
102
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
107
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
108
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
109
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
110
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
111
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
113
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
114
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
115
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
116
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
120
        },
121
        u'saml.keyvalue': {
122
            'Meta': {'object_name': 'KeyValue'},
123
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
124
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
125
        },
126
        u'saml.libertyartifact': {
127
            'Meta': {'object_name': 'LibertyArtifact'},
128
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
129
            'content': ('django.db.models.fields.TextField', [], {}),
130
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
131
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
132
        },
133
        u'saml.libertyassertion': {
134
            'Meta': {'object_name': 'LibertyAssertion'},
135
            'assertion': ('django.db.models.fields.TextField', [], {}),
136
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
137
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
138
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
139
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
140
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
141
        },
142
        u'saml.libertyfederation': {
143
            'Meta': {'object_name': 'LibertyFederation'},
144
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
145
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
146
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
147
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
148
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
149
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
150
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
151
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
152
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
153
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
154
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
155
        },
156
        u'saml.libertyidentityprovider': {
157
            'Meta': {'object_name': 'LibertyIdentityProvider'},
158
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
159
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
160
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
161
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
162
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
163
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
164
        },
165
        u'saml.libertymanagedump': {
166
            'Meta': {'object_name': 'LibertyManageDump'},
167
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
168
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
169
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
170
        },
171
        u'saml.libertyprovider': {
172
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
173
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
174
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
175
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
176
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
177
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
178
            'metadata': ('django.db.models.fields.TextField', [], {}),
179
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
180
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
181
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
182
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
183
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
184
        },
185
        u'saml.libertyproviderpolicy': {
186
            'Meta': {'object_name': 'LibertyProviderPolicy'},
187
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
188
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
189
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
190
        },
191
        u'saml.libertyserviceprovider': {
192
            'Meta': {'object_name': 'LibertyServiceProvider'},
193
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
194
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
195
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
196
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
197
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
198
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
199
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"}),
200
            'users_can_manage_federations': ('django.db.models.fields.BooleanField', [], {'default': 'True'})
201
        },
202
        u'saml.libertysession': {
203
            'Meta': {'object_name': 'LibertySession'},
204
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True', 'blank': 'True'}),
205
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
206
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
207
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True', 'blank': 'True'}),
208
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
209
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
210
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
211
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
212
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
213
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
214
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
215
        },
216
        u'saml.libertysessiondump': {
217
            'Meta': {'object_name': 'LibertySessionDump'},
218
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
219
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
220
            'kind': ('django.db.models.fields.IntegerField', [], {}),
221
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
222
        },
223
        u'saml.libertysessionsp': {
224
            'Meta': {'object_name': 'LibertySessionSP'},
225
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
226
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
227
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
228
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
229
        },
230
        u'saml.samlattribute': {
231
            'Meta': {'unique_together': "(('content_type', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name'),)", 'object_name': 'SAMLAttribute'},
232
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
233
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
234
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
235
            'friendly_name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
236
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
237
            'name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
238
            'name_format': ('django.db.models.fields.CharField', [], {'default': "'basic'", 'max_length': '64'}),
239
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
240
        },
241
        u'saml.spoptionsidppolicy': {
242
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
243
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
244
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
245
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
246
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
247
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
248
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
249
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
250
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
251
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
252
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
253
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
254
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
255
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
256
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
257
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
258
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
259
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
260
        }
261
    }
262

  
263
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0042_auto__chg_field_samlattribute_name.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11

  
12
        # Changing field 'SAMLAttribute.name'
13
        db.alter_column(u'saml_samlattribute', 'name', self.gf('django.db.models.fields.CharField')(max_length=128))
14

  
15
    def backwards(self, orm):
16

  
17
        # Changing field 'SAMLAttribute.name'
18
        db.alter_column(u'saml_samlattribute', 'name', self.gf('django.db.models.fields.CharField')(max_length=64))
19

  
20
    models = {
21
        u'attribute_aggregator.attributeitem': {
22
            'Meta': {'object_name': 'AttributeItem'},
23
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
24
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
26
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
27
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
28
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
29
        },
30
        u'attribute_aggregator.attributelist': {
31
            'Meta': {'object_name': 'AttributeList'},
32
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
33
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
35
        },
36
        u'attribute_aggregator.attributesource': {
37
            'Meta': {'object_name': 'AttributeSource'},
38
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
39
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
40
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
41
        },
42
        user_model_label: {
43
            'Meta': {'object_name': user_model_label.split('.')[-1]},
44
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45
        },
46
        u'contenttypes.contenttype': {
47
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
48
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
49
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
51
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
52
        },
53
        u'idp.attributepolicy': {
54
            'Meta': {'object_name': 'AttributePolicy'},
55
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
56
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
57
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
58
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
59
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
60
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
62
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
63
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
66
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
67
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
68
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
69
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
70
        },
71
        u'saml.authorizationattributemap': {
72
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
73
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
74
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
75
        },
76
        u'saml.authorizationattributemapping': {
77
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
78
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
79
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
80
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
81
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
83
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
84
        },
85
        u'saml.authorizationsppolicy': {
86
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
87
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
88
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
89
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
90
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
91
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
92
        },
93
        u'saml.idpoptionssppolicy': {
94
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
95
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
96
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
97
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
98
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
99
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
100
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
101
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
102
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
105
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
106
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
107
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
108
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
109
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
110
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
111
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
113
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
114
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
115
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
118
        },
119
        u'saml.keyvalue': {
120
            'Meta': {'object_name': 'KeyValue'},
121
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
122
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
123
        },
124
        u'saml.libertyartifact': {
125
            'Meta': {'object_name': 'LibertyArtifact'},
126
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
127
            'content': ('django.db.models.fields.TextField', [], {}),
128
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
129
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
130
        },
131
        u'saml.libertyassertion': {
132
            'Meta': {'object_name': 'LibertyAssertion'},
133
            'assertion': ('django.db.models.fields.TextField', [], {}),
134
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
135
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
136
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
137
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
138
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
139
        },
140
        u'saml.libertyfederation': {
141
            'Meta': {'object_name': 'LibertyFederation'},
142
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
143
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
144
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
145
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
146
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
147
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
148
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
149
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
150
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
151
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
152
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
153
        },
154
        u'saml.libertyidentityprovider': {
155
            'Meta': {'object_name': 'LibertyIdentityProvider'},
156
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
157
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
158
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
159
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
160
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
161
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
162
        },
163
        u'saml.libertymanagedump': {
164
            'Meta': {'object_name': 'LibertyManageDump'},
165
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
166
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
167
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
168
        },
169
        u'saml.libertyprovider': {
170
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
171
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
172
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
173
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
174
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
175
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
176
            'metadata': ('django.db.models.fields.TextField', [], {}),
177
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
178
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
179
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
180
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
181
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
182
        },
183
        u'saml.libertyproviderpolicy': {
184
            'Meta': {'object_name': 'LibertyProviderPolicy'},
185
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
186
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
187
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
188
        },
189
        u'saml.libertyserviceprovider': {
190
            'Meta': {'object_name': 'LibertyServiceProvider'},
191
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
192
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
193
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
194
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
195
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
196
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
197
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"})
198
        },
199
        u'saml.libertysession': {
200
            'Meta': {'object_name': 'LibertySession'},
201
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True', 'blank': 'True'}),
202
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
203
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
204
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True', 'blank': 'True'}),
205
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
206
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
207
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
208
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
209
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
210
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
211
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
212
        },
213
        u'saml.libertysessiondump': {
214
            'Meta': {'object_name': 'LibertySessionDump'},
215
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
216
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
217
            'kind': ('django.db.models.fields.IntegerField', [], {}),
218
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
219
        },
220
        u'saml.libertysessionsp': {
221
            'Meta': {'object_name': 'LibertySessionSP'},
222
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
223
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
224
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
225
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
226
        },
227
        u'saml.samlattribute': {
228
            'Meta': {'unique_together': "(('content_type', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name'),)", 'object_name': 'SAMLAttribute'},
229
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
230
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
231
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
232
            'friendly_name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
233
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
234
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
235
            'name_format': ('django.db.models.fields.CharField', [], {'default': "'basic'", 'max_length': '64'}),
236
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
237
        },
238
        u'saml.spoptionsidppolicy': {
239
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
240
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
241
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
242
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
243
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
244
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
245
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
246
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
247
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
248
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
249
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
250
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
251
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
252
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
253
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
254
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
255
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
256
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
257
        }
258
    }
259

  
260
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0044_auto__chg_field_samlattribute_name__add_field_libertyprovider_metadata.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11

  
12
        # Changing field 'SAMLAttribute.name'
13
        db.alter_column(u'saml_samlattribute', 'name', self.gf('django.db.models.fields.CharField')(max_length=128))
14
        # Adding field 'LibertyProvider.metadata_url'
15
        db.add_column(u'saml_libertyprovider', 'metadata_url',
16
                      self.gf('django.db.models.fields.URLField')(default='', max_length=256, blank=True),
17
                      keep_default=False)
18

  
19

  
20
    def backwards(self, orm):
21

  
22
        # Changing field 'SAMLAttribute.name'
23
        db.alter_column(u'saml_samlattribute', 'name', self.gf('django.db.models.fields.CharField')(max_length=64))
24
        # Deleting field 'LibertyProvider.metadata_url'
25
        db.delete_column(u'saml_libertyprovider', 'metadata_url')
26

  
27

  
28
    models = {
29
        u'attribute_aggregator.attributeitem': {
30
            'Meta': {'object_name': 'AttributeItem'},
31
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
32
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
34
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
35
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
36
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
37
        },
38
        u'attribute_aggregator.attributelist': {
39
            'Meta': {'object_name': 'AttributeList'},
40
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
41
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
43
        },
44
        u'attribute_aggregator.attributesource': {
45
            'Meta': {'object_name': 'AttributeSource'},
46
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
48
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
49
        },
50
        user_model_label: {
51
            'Meta': {'object_name': user_model_label.split('.')[-1]},
52
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53
        },
54
        u'contenttypes.contenttype': {
55
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
56
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
57
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
59
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
60
        },
61
        u'idp.attributepolicy': {
62
            'Meta': {'object_name': 'AttributePolicy'},
63
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
64
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
65
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
66
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
67
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
68
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
69
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
71
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
72
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
73
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
74
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
75
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
76
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
77
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
78
        },
79
        u'saml.authorizationattributemap': {
80
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
81
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
83
        },
84
        u'saml.authorizationattributemapping': {
85
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
86
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
87
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
88
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
89
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
90
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
91
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
92
        },
93
        u'saml.authorizationsppolicy': {
94
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
95
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
96
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
97
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
98
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
99
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
100
        },
101
        u'saml.idpoptionssppolicy': {
102
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
103
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
104
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
105
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
106
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
107
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
108
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
109
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
111
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
113
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
114
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
115
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
116
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
117
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
118
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
119
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
121
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
122
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
123
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
124
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
125
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
126
        },
127
        u'saml.keyvalue': {
128
            'Meta': {'object_name': 'KeyValue'},
129
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
130
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
131
        },
132
        u'saml.libertyartifact': {
133
            'Meta': {'object_name': 'LibertyArtifact'},
134
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
135
            'content': ('django.db.models.fields.TextField', [], {}),
136
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
137
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
138
        },
139
        u'saml.libertyassertion': {
140
            'Meta': {'object_name': 'LibertyAssertion'},
141
            'assertion': ('django.db.models.fields.TextField', [], {}),
142
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
143
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
144
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
145
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
146
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
147
        },
148
        u'saml.libertyfederation': {
149
            'Meta': {'object_name': 'LibertyFederation'},
150
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
151
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
152
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
153
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
154
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
155
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
156
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
157
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
158
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
159
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
160
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
161
        },
162
        u'saml.libertyidentityprovider': {
163
            'Meta': {'object_name': 'LibertyIdentityProvider'},
164
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
165
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
167
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
168
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
169
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
170
        },
171
        u'saml.libertymanagedump': {
172
            'Meta': {'object_name': 'LibertyManageDump'},
173
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
174
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
175
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
176
        },
177
        u'saml.libertyprovider': {
178
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
179
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
180
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
181
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
182
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
183
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
184
            'metadata': ('django.db.models.fields.TextField', [], {}),
185
            'metadata_url': ('django.db.models.fields.URLField', [], {'max_length': '256', 'blank': 'True'}),
186
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
187
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
188
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
189
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
190
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
191
        },
192
        u'saml.libertyproviderpolicy': {
193
            'Meta': {'object_name': 'LibertyProviderPolicy'},
194
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
195
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
196
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
197
        },
198
        u'saml.libertyserviceprovider': {
199
            'Meta': {'object_name': 'LibertyServiceProvider'},
200
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
201
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
202
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
203
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
204
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
205
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
206
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"}),
207
            'users_can_manage_federations': ('django.db.models.fields.BooleanField', [], {'default': 'True'})
208
        },
209
        u'saml.libertysession': {
210
            'Meta': {'object_name': 'LibertySession'},
211
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True', 'blank': 'True'}),
212
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
213
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
214
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True', 'blank': 'True'}),
215
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
216
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
217
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
218
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
219
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
220
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
221
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
222
        },
223
        u'saml.libertysessiondump': {
224
            'Meta': {'object_name': 'LibertySessionDump'},
225
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
226
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
227
            'kind': ('django.db.models.fields.IntegerField', [], {}),
228
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
229
        },
230
        u'saml.libertysessionsp': {
231
            'Meta': {'object_name': 'LibertySessionSP'},
232
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
233
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
234
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
235
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
236
        },
237
        u'saml.samlattribute': {
238
            'Meta': {'unique_together': "(('content_type', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name'),)", 'object_name': 'SAMLAttribute'},
239
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
240
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
241
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
242
            'friendly_name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
243
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
244
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
245
            'name_format': ('django.db.models.fields.CharField', [], {'default': "'basic'", 'max_length': '64'}),
246
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
247
        },
248
        u'saml.spoptionsidppolicy': {
249
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
250
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
251
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
252
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
253
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
254
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
255
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
256
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
257
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
258
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
259
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
260
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
261
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
262
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
263
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
264
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
265
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
266
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
267
        }
268
    }
269

  
270
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0045_copy_entity_id_to_metadata_url.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4
from django.db.models import F
5

  
6
from authentic2.compat import user_model_label
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        if db.dry_run:
12
            return
13
        # migrate old entity_id data to metadata_url with the idea that most of
14
        # them where metadata URLs
15
        orm.LibertyProvider.objects.update(metadata_url=F('entity_id'))
16

  
17
    def backwards(self, orm):
18
        pass
19

  
20
    models = {
21
        u'attribute_aggregator.attributeitem': {
22
            'Meta': {'object_name': 'AttributeItem'},
23
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
24
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
26
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
27
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
28
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
29
        },
30
        u'attribute_aggregator.attributelist': {
31
            'Meta': {'object_name': 'AttributeList'},
32
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
33
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
35
        },
36
        u'attribute_aggregator.attributesource': {
37
            'Meta': {'object_name': 'AttributeSource'},
38
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
39
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
40
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
41
        },
42
        user_model_label: {
43
            'Meta': {'object_name': user_model_label.split('.')[-1]},
44
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45
        },
46
        u'contenttypes.contenttype': {
47
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
48
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
49
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
51
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
52
        },
53
        u'idp.attributepolicy': {
54
            'Meta': {'object_name': 'AttributePolicy'},
55
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
56
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
57
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
58
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
59
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
60
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
61
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
62
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
63
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
64
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
65
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
66
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
67
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
68
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
69
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
70
        },
71
        u'saml.authorizationattributemap': {
72
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
73
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
74
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
75
        },
76
        u'saml.authorizationattributemapping': {
77
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
78
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
79
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
80
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
81
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
82
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
83
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
84
        },
85
        u'saml.authorizationsppolicy': {
86
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
87
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
88
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
89
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
90
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
91
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
92
        },
93
        u'saml.idpoptionssppolicy': {
94
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
95
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
96
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
97
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
98
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
99
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
100
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
101
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
102
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
104
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
105
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
106
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
107
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
108
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
109
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
110
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
111
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
113
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
114
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
115
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
118
        },
119
        u'saml.keyvalue': {
120
            'Meta': {'object_name': 'KeyValue'},
121
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
122
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
123
        },
124
        u'saml.libertyartifact': {
125
            'Meta': {'object_name': 'LibertyArtifact'},
126
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
127
            'content': ('django.db.models.fields.TextField', [], {}),
128
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
129
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
130
        },
131
        u'saml.libertyassertion': {
132
            'Meta': {'object_name': 'LibertyAssertion'},
133
            'assertion': ('django.db.models.fields.TextField', [], {}),
134
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
135
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
136
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
137
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
138
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
139
        },
140
        u'saml.libertyfederation': {
141
            'Meta': {'object_name': 'LibertyFederation'},
142
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
143
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
144
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
145
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
146
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
147
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
148
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
149
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
150
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
151
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
152
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
153
        },
154
        u'saml.libertyidentityprovider': {
155
            'Meta': {'object_name': 'LibertyIdentityProvider'},
156
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
157
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
158
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
159
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
160
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
161
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
162
        },
163
        u'saml.libertymanagedump': {
164
            'Meta': {'object_name': 'LibertyManageDump'},
165
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
166
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
167
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
168
        },
169
        u'saml.libertyprovider': {
170
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
171
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
172
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
173
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
174
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
175
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
176
            'metadata': ('django.db.models.fields.TextField', [], {}),
177
            'metadata_url': ('django.db.models.fields.URLField', [], {'max_length': '256', 'blank': 'True'}),
178
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
179
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
180
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
181
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
182
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
183
        },
184
        u'saml.libertyproviderpolicy': {
185
            'Meta': {'object_name': 'LibertyProviderPolicy'},
186
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
187
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
188
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
189
        },
190
        u'saml.libertyserviceprovider': {
191
            'Meta': {'object_name': 'LibertyServiceProvider'},
192
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
193
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
194
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
195
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
196
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
197
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
198
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"}),
199
            'users_can_manage_federations': ('django.db.models.fields.BooleanField', [], {'default': 'True'})
200
        },
201
        u'saml.libertysession': {
202
            'Meta': {'object_name': 'LibertySession'},
203
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True', 'blank': 'True'}),
204
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
205
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
206
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True', 'blank': 'True'}),
207
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
208
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
209
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
210
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
211
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
212
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
213
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
214
        },
215
        u'saml.libertysessiondump': {
216
            'Meta': {'object_name': 'LibertySessionDump'},
217
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
218
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
219
            'kind': ('django.db.models.fields.IntegerField', [], {}),
220
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
221
        },
222
        u'saml.libertysessionsp': {
223
            'Meta': {'object_name': 'LibertySessionSP'},
224
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
225
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
226
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
227
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
228
        },
229
        u'saml.samlattribute': {
230
            'Meta': {'unique_together': "(('content_type', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name'),)", 'object_name': 'SAMLAttribute'},
231
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
232
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
233
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
234
            'friendly_name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
235
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
236
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
237
            'name_format': ('django.db.models.fields.CharField', [], {'default': "'basic'", 'max_length': '64'}),
238
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
239
        },
240
        u'saml.spoptionsidppolicy': {
241
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
242
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
243
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
244
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
246
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
247
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
248
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
249
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
250
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
251
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
252
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
253
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
254
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
255
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
256
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
257
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
258
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
259
        }
260
    }
261

  
262
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0046_migrate_authn_request_signed_setting.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6
from authentic2.saml.common import get_sp_options_policy
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        if db.dry_run:
12
            return
13
        try:
14
            import lasso
15
        except ImportError:
16
            return
17
        for service_provider in orm.LibertyServiceProvider.objects.all():
18
            if service_provider.policy:
19
                value = service_provider.policy.authn_request_signature_check_hint != lasso.PROFILE_SIGNATURE_VERIFY_HINT_IGNORE
20
            else:
21
                value = True
22
            policy = get_sp_options_policy(service_provider.liberty_provider)
23
            if policy:
24
                policy.authn_request_signed = value
25
                policy.save()
26

  
27
    def backwards(self, orm):
28
        if db.dry_run:
29
            return
30
        try:
31
            import lasso
32
        except ImportError:
33
            return
34
        for service_provider in orm.LibertyServiceProvider.objects.all():
35

  
36
            if not service_provider.sp_options_policy or service_provider.sp_options_policy.authn_request_signed:
37
                service_provider.policy = orm.LibertyProviderPolicy(authn_request_signature_check_hint=lasso.PROFILE_SIGNATURE_VERIFY_HINT_MAYBE)
38
            else:
39
                service_provider.policy = orm.LibertyProviderPolicy(authn_request_signature_check_hint=lasso.PROFILE_SIGNATURE_VERIFY_HINT_MAYBE)
40
            service_provider.policy.save()
41

  
42
    models = {
43
        u'attribute_aggregator.attributeitem': {
44
            'Meta': {'object_name': 'AttributeItem'},
45
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
46
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('', 'SAMLv2 URI')", 'max_length': '100'}),
48
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
49
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
50
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
51
        },
52
        u'attribute_aggregator.attributelist': {
53
            'Meta': {'object_name': 'AttributeList'},
54
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
55
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
57
        },
58
        u'attribute_aggregator.attributesource': {
59
            'Meta': {'object_name': 'AttributeSource'},
60
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
61
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
62
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
63
        },
64
        user_model_label: {
65
            'Meta': {'object_name': user_model_label.split('.')[-1]},
66
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67
        },
68
        u'contenttypes.contenttype': {
69
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
70
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
71
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
73
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
74
        },
75
        u'idp.attributepolicy': {
76
            'Meta': {'object_name': 'AttributePolicy'},
77
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
78
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
79
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
80
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
81
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
82
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
83
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
84
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
86
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
87
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
88
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('', 'SAMLv2 URI')", 'max_length': '100'}),
89
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
90
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
91
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
92
        },
93
        u'saml.authorizationattributemap': {
94
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
95
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
96
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
97
        },
98
        u'saml.authorizationattributemapping': {
99
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
100
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
101
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
102
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
103
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
104
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
105
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
106
        },
107
        u'saml.authorizationsppolicy': {
108
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
109
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
110
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
111
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
112
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
113
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
114
        },
115
        u'saml.idpoptionssppolicy': {
116
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
117
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
118
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
120
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
121
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
122
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
123
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
124
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
125
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
126
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
127
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
128
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
129
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': "''", 'max_length': '200'}),
130
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': "''", 'max_length': '200'}),
131
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
132
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
133
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
134
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
135
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
136
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
137
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
138
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
139
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
140
        },
141
        u'saml.keyvalue': {
142
            'Meta': {'object_name': 'KeyValue'},
143
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
144
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
145
        },
146
        u'saml.libertyartifact': {
147
            'Meta': {'object_name': 'LibertyArtifact'},
148
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
149
            'content': ('django.db.models.fields.TextField', [], {}),
150
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
151
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
152
        },
153
        u'saml.libertyassertion': {
154
            'Meta': {'object_name': 'LibertyAssertion'},
155
            'assertion': ('django.db.models.fields.TextField', [], {}),
156
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
157
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
158
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
159
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
160
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
161
        },
162
        u'saml.libertyfederation': {
163
            'Meta': {'object_name': 'LibertyFederation'},
164
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
165
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
166
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
167
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
168
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
169
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
170
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
171
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
172
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
173
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
174
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
175
        },
176
        u'saml.libertyidentityprovider': {
177
            'Meta': {'object_name': 'LibertyIdentityProvider'},
178
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
179
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
180
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
181
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
182
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
183
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
184
        },
185
        u'saml.libertymanagedump': {
186
            'Meta': {'object_name': 'LibertyManageDump'},
187
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
188
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
189
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
190
        },
191
        u'saml.libertyprovider': {
192
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
193
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
194
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
195
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
196
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
197
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
198
            'metadata': ('django.db.models.fields.TextField', [], {}),
199
            'metadata_url': ('django.db.models.fields.URLField', [], {'max_length': '256', 'blank': 'True'}),
200
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
201
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
202
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
203
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
204
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
205
        },
206
        u'saml.libertyproviderpolicy': {
207
            'Meta': {'object_name': 'LibertyProviderPolicy'},
208
            'authn_request_signature_check_hint': ('django.db.models.fields.IntegerField', [], {'default': "''"}),
209
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
210
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'})
211
        },
212
        u'saml.libertyserviceprovider': {
213
            'Meta': {'object_name': 'LibertyServiceProvider'},
214
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
215
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
216
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
217
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
218
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
219
            'policy': ('django.db.models.fields.related.ForeignKey', [], {'default': '1', 'to': u"orm['saml.LibertyProviderPolicy']", 'null': 'True'}),
220
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"}),
221
            'users_can_manage_federations': ('django.db.models.fields.BooleanField', [], {'default': 'True'})
222
        },
223
        u'saml.libertysession': {
224
            'Meta': {'object_name': 'LibertySession'},
225
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True', 'blank': 'True'}),
226
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
227
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
228
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True', 'blank': 'True'}),
229
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
230
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
231
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
232
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
233
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
234
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
235
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
236
        },
237
        u'saml.libertysessiondump': {
238
            'Meta': {'object_name': 'LibertySessionDump'},
239
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
240
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
241
            'kind': ('django.db.models.fields.IntegerField', [], {}),
242
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
243
        },
244
        u'saml.libertysessionsp': {
245
            'Meta': {'object_name': 'LibertySessionSP'},
246
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
247
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
248
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
249
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
250
        },
251
        u'saml.samlattribute': {
252
            'Meta': {'unique_together': "(('content_type', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name'),)", 'object_name': 'SAMLAttribute'},
253
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
254
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
255
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
256
            'friendly_name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
257
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
258
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
259
            'name_format': ('django.db.models.fields.CharField', [], {'default': "'basic'", 'max_length': '64'}),
260
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
261
        },
262
        u'saml.spoptionsidppolicy': {
263
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
264
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
265
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
266
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
267
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
268
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
269
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
270
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
271
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
272
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
273
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
274
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': "''"}),
275
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
276
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
277
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
278
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
279
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
280
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
281
        }
282
    }
283

  
284
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0047_auto__del_libertyproviderpolicy__del_field_libertyserviceprovider_poli.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Deleting model 'LibertyProviderPolicy'
12
        db.delete_table(u'saml_libertyproviderpolicy')
13

  
14
        # Deleting field 'LibertyServiceProvider.policy'
15
        db.delete_column(u'saml_libertyserviceprovider', 'policy_id')
16

  
17

  
18
    def backwards(self, orm):
19
        # Adding model 'LibertyProviderPolicy'
20
        db.create_table(u'saml_libertyproviderpolicy', (
21
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
22
            ('authn_request_signature_check_hint', self.gf('django.db.models.fields.IntegerField')(default='')),
23
            ('name', self.gf('django.db.models.fields.CharField')(max_length=64, unique=True)),
24
        ))
25
        db.send_create_signal(u'saml', ['LibertyProviderPolicy'])
26

  
27
        # Adding field 'LibertyServiceProvider.policy'
28
        db.add_column(u'saml_libertyserviceprovider', 'policy',
29
                      self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['saml.LibertyProviderPolicy'], null=True),
30
                      keep_default=False)
31

  
32

  
33
    models = {
34
        u'attribute_aggregator.attributeitem': {
35
            'Meta': {'object_name': 'AttributeItem'},
36
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
37
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
39
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
40
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
41
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
42
        },
43
        u'attribute_aggregator.attributelist': {
44
            'Meta': {'object_name': 'AttributeList'},
45
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
46
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
47
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
48
        },
49
        u'attribute_aggregator.attributesource': {
50
            'Meta': {'object_name': 'AttributeSource'},
51
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
52
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
53
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
54
        },
55
        user_model_label: {
56
            'Meta': {'object_name': user_model_label.split('.')[-1]},
57
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58
        },
59
        u'contenttypes.contenttype': {
60
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
61
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
62
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
63
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
64
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
65
        },
66
        u'idp.attributepolicy': {
67
            'Meta': {'object_name': 'AttributePolicy'},
68
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
69
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
70
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
71
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
72
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
73
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
74
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
75
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
77
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
78
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
79
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
80
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
81
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
82
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
83
        },
84
        u'saml.authorizationattributemap': {
85
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
86
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
87
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
88
        },
89
        u'saml.authorizationattributemapping': {
90
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
91
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
92
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
93
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
94
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
95
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
96
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
97
        },
98
        u'saml.authorizationsppolicy': {
99
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
100
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
101
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
102
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
103
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
104
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
105
        },
106
        u'saml.idpoptionssppolicy': {
107
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
108
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
109
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
110
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
111
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
112
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
113
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
114
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
115
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
118
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
119
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
120
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
121
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
122
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
123
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
124
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
125
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
126
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
127
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
128
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
129
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
130
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
131
        },
132
        u'saml.keyvalue': {
133
            'Meta': {'object_name': 'KeyValue'},
134
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
135
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
136
        },
137
        u'saml.libertyartifact': {
138
            'Meta': {'object_name': 'LibertyArtifact'},
139
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
140
            'content': ('django.db.models.fields.TextField', [], {}),
141
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
142
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
143
        },
144
        u'saml.libertyassertion': {
145
            'Meta': {'object_name': 'LibertyAssertion'},
146
            'assertion': ('django.db.models.fields.TextField', [], {}),
147
            'assertion_id': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
148
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
149
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
150
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
151
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '128'})
152
        },
153
        u'saml.libertyfederation': {
154
            'Meta': {'object_name': 'LibertyFederation'},
155
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
156
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
157
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
158
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
159
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
160
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
161
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
162
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
163
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
164
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
166
        },
167
        u'saml.libertyidentityprovider': {
168
            'Meta': {'object_name': 'LibertyIdentityProvider'},
169
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
170
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
171
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
172
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
173
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
174
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
175
        },
176
        u'saml.libertymanagedump': {
177
            'Meta': {'object_name': 'LibertyManageDump'},
178
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
179
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
180
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
181
        },
182
        u'saml.libertyprovider': {
183
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
184
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
185
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
186
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
187
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
188
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
189
            'metadata': ('django.db.models.fields.TextField', [], {}),
190
            'metadata_url': ('django.db.models.fields.URLField', [], {'max_length': '256', 'blank': 'True'}),
191
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
192
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
193
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
194
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
195
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
196
        },
197
        u'saml.libertyserviceprovider': {
198
            'Meta': {'object_name': 'LibertyServiceProvider'},
199
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
200
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
201
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
202
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
203
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
204
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"}),
205
            'users_can_manage_federations': ('django.db.models.fields.BooleanField', [], {'default': 'True'})
206
        },
207
        u'saml.libertysession': {
208
            'Meta': {'object_name': 'LibertySession'},
209
            'assertion': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyAssertion']", 'null': 'True', 'blank': 'True'}),
210
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
211
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
212
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True', 'blank': 'True'}),
213
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
214
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
215
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
216
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
217
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
218
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
219
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
220
        },
221
        u'saml.libertysessiondump': {
222
            'Meta': {'object_name': 'LibertySessionDump'},
223
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
224
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
225
            'kind': ('django.db.models.fields.IntegerField', [], {}),
226
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
227
        },
228
        u'saml.libertysessionsp': {
229
            'Meta': {'object_name': 'LibertySessionSP'},
230
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
231
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
232
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
233
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
234
        },
235
        u'saml.samlattribute': {
236
            'Meta': {'unique_together': "(('content_type', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name'),)", 'object_name': 'SAMLAttribute'},
237
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
238
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
239
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
240
            'friendly_name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
241
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
242
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
243
            'name_format': ('django.db.models.fields.CharField', [], {'default': "'basic'", 'max_length': '64'}),
244
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
245
        },
246
        u'saml.spoptionsidppolicy': {
247
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
248
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
249
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
250
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
251
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
252
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
253
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
254
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
255
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
256
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
257
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
258
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
259
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
260
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
261
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
262
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
263
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
264
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
265
        }
266
    }
267

  
268
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0048_auto__del_libertyassertion__del_field_libertysession_assertion.py
1
# -*- coding: utf-8 -*-
2
from south.db import db
3
from south.v2 import SchemaMigration
4

  
5
from authentic2.compat import user_model_label
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11
        # Deleting model 'LibertyAssertion'
12
        db.delete_table(u'saml_libertyassertion')
13

  
14
        # Deleting field 'LibertySession.assertion'
15
        db.delete_column(u'saml_libertysession', 'assertion_id')
16

  
17

  
18
    def backwards(self, orm):
19
        # Adding model 'LibertyAssertion'
20
        db.create_table(u'saml_libertyassertion', (
21
            ('provider_id', self.gf('django.db.models.fields.CharField')(max_length=256)),
22
            ('creation', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
23
            ('assertion', self.gf('django.db.models.fields.TextField')()),
24
            ('session_index', self.gf('django.db.models.fields.CharField')(max_length=128)),
25
            ('assertion_id', self.gf('django.db.models.fields.CharField')(max_length=128)),
26
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
27
        ))
28
        db.send_create_signal(u'saml', ['LibertyAssertion'])
29

  
30
        # Adding field 'LibertySession.assertion'
31
        db.add_column(u'saml_libertysession', 'assertion',
32
                      self.gf('django.db.models.fields.related.ForeignKey')(to=orm['saml.LibertyAssertion'], null=True, blank=True),
33
                      keep_default=False)
34

  
35

  
36
    models = {
37
        u'attribute_aggregator.attributeitem': {
38
            'Meta': {'object_name': 'AttributeItem'},
39
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
40
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
42
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
43
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
44
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
45
        },
46
        u'attribute_aggregator.attributelist': {
47
            'Meta': {'object_name': 'AttributeList'},
48
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
49
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
51
        },
52
        u'attribute_aggregator.attributesource': {
53
            'Meta': {'object_name': 'AttributeSource'},
54
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
55
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
56
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
57
        },
58
        user_model_label: {
59
            'Meta': {'object_name': user_model_label.split('.')[-1]},
60
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
61
        },
62
        u'contenttypes.contenttype': {
63
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
64
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
65
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
67
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
68
        },
69
        u'idp.attributepolicy': {
70
            'Meta': {'object_name': 'AttributePolicy'},
71
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
72
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
73
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
74
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
75
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
76
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
77
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
78
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
80
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
81
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
82
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
83
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
84
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
85
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
86
        },
87
        u'saml.authorizationattributemap': {
88
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
89
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
90
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
91
        },
92
        u'saml.authorizationattributemapping': {
93
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
94
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
95
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
96
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
97
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
98
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
99
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
100
        },
101
        u'saml.authorizationsppolicy': {
102
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
103
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
104
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
105
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
106
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
107
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
108
        },
109
        u'saml.idpoptionssppolicy': {
110
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
111
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
112
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
113
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
114
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
115
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
116
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
117
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
119
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
120
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
121
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
122
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
123
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
124
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
125
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
126
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
127
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
128
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
129
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
130
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
131
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
132
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
133
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
134
        },
135
        u'saml.keyvalue': {
136
            'Meta': {'object_name': 'KeyValue'},
137
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
138
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
139
        },
140
        u'saml.libertyartifact': {
141
            'Meta': {'object_name': 'LibertyArtifact'},
142
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
143
            'content': ('django.db.models.fields.TextField', [], {}),
144
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
145
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
146
        },
147
        u'saml.libertyfederation': {
148
            'Meta': {'object_name': 'LibertyFederation'},
149
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
150
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
151
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
152
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
153
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
154
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
155
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
156
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
157
            'sp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyServiceProvider']", 'null': 'True', 'blank': 'True'}),
158
            'termination_notified': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
159
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['%s']" % user_model_label, 'null': 'True', 'on_delete': 'models.SET_NULL', 'blank': 'True'})
160
        },
161
        u'saml.libertyidentityprovider': {
162
            'Meta': {'object_name': 'LibertyIdentityProvider'},
163
            'authorization_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_policy'", 'null': 'True', 'to': u"orm['saml.AuthorizationSPPolicy']"}),
164
            'enable_following_authorization_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
165
            'enable_following_idp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
166
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
167
            'idp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'idp_options_policy'", 'null': 'True', 'to': u"orm['saml.IdPOptionsSPPolicy']"}),
168
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'identity_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"})
169
        },
170
        u'saml.libertymanagedump': {
171
            'Meta': {'object_name': 'LibertyManageDump'},
172
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
173
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
174
            'manage_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
175
        },
176
        u'saml.libertyprovider': {
177
            'Meta': {'ordering': "('name',)", 'object_name': 'LibertyProvider'},
178
            'ca_cert_chain': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
179
            'entity_id': ('django.db.models.fields.URLField', [], {'unique': 'True', 'max_length': '200'}),
180
            'entity_id_sha1': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
181
            'federation_source': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
182
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
183
            'metadata': ('django.db.models.fields.TextField', [], {}),
184
            'metadata_url': ('django.db.models.fields.URLField', [], {'max_length': '256', 'blank': 'True'}),
185
            'name': ('django.db.models.fields.CharField', [], {'max_length': '140', 'blank': 'True'}),
186
            'protocol_conformance': ('django.db.models.fields.IntegerField', [], {'max_length': '10'}),
187
            'public_key': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
188
            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '140'}),
189
            'ssl_certificate': ('django.db.models.fields.TextField', [], {'blank': 'True'})
190
        },
191
        u'saml.libertyserviceprovider': {
192
            'Meta': {'object_name': 'LibertyServiceProvider'},
193
            'attribute_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_policy'", 'null': 'True', 'to': u"orm['idp.AttributePolicy']"}),
194
            'enable_following_attribute_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
195
            'enable_following_sp_options_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
196
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
197
            'liberty_provider': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'service_provider'", 'unique': 'True', 'primary_key': 'True', 'to': u"orm['saml.LibertyProvider']"}),
198
            'sp_options_policy': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'sp_options_policy'", 'null': 'True', 'to': u"orm['saml.SPOptionsIdPPolicy']"}),
199
            'users_can_manage_federations': ('django.db.models.fields.BooleanField', [], {'default': 'True'})
200
        },
201
        u'saml.libertysession': {
202
            'Meta': {'object_name': 'LibertySession'},
203
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
204
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
205
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True', 'blank': 'True'}),
206
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
207
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
208
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True'}),
209
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
210
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
211
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
212
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
213
        },
214
        u'saml.libertysessiondump': {
215
            'Meta': {'object_name': 'LibertySessionDump'},
216
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
217
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
218
            'kind': ('django.db.models.fields.IntegerField', [], {}),
219
            'session_dump': ('django.db.models.fields.TextField', [], {'blank': 'True'})
220
        },
221
        u'saml.libertysessionsp': {
222
            'Meta': {'object_name': 'LibertySessionSP'},
223
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
224
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
225
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
226
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
227
        },
228
        u'saml.samlattribute': {
229
            'Meta': {'unique_together': "(('content_type', 'object_id', 'name_format', 'name', 'friendly_name', 'attribute_name'),)", 'object_name': 'SAMLAttribute'},
230
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
231
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
232
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
233
            'friendly_name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
234
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
235
            'name': ('django.db.models.fields.CharField', [], {'max_length': '128', 'blank': 'True'}),
236
            'name_format': ('django.db.models.fields.CharField', [], {'default': "'basic'", 'max_length': '64'}),
237
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
238
        },
239
        u'saml.spoptionsidppolicy': {
240
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
241
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
242
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
243
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
244
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
245
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
246
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
247
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
248
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
249
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
250
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
251
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
252
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
253
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
254
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
255
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
256
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
257
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
258
        }
259
    }
260

  
261
    complete_apps = ['saml']
src/authentic2/saml/south_migrations/0049_auto__add_field_keyvalue_created.py
1
# -*- coding: utf-8 -*-
2
from south.utils import datetime_utils as datetime
3
from south.db import db
4
from south.v2 import SchemaMigration
5
from django.db import models
6

  
7

  
8
class Migration(SchemaMigration):
9

  
10
    def forwards(self, orm):
11

  
12
        # Adding field 'KeyValue.created'
13
        db.add_column(u'saml_keyvalue', 'created',
14
                      self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, default=datetime.datetime(2015, 3, 13, 0, 0), blank=True),
15
                      keep_default=False)
16

  
17
    def backwards(self, orm):
18

  
19
        # Deleting field 'KeyValue.created'
20
        db.delete_column(u'saml_keyvalue', 'created')
21

  
22

  
23
    models = {
24
        u'attribute_aggregator.attributeitem': {
25
            'Meta': {'object_name': 'AttributeItem'},
26
            'attribute_name': ('django.db.models.fields.CharField', [], {'default': "('OpenLDAProotDSE', 'OpenLDAProotDSE')", 'max_length': '100'}),
27
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
28
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
29
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
30
            'required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
31
            'source': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['attribute_aggregator.AttributeSource']", 'null': 'True', 'blank': 'True'})
32
        },
33
        u'attribute_aggregator.attributelist': {
34
            'Meta': {'object_name': 'AttributeList'},
35
            'attributes': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'attributes of the list'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeItem']"}),
36
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
38
        },
39
        u'attribute_aggregator.attributesource': {
40
            'Meta': {'object_name': 'AttributeSource'},
41
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
43
            'namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'})
44
        },
45
        u'auth.group': {
46
            'Meta': {'object_name': 'Group'},
47
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
48
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
49
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
50
        },
51
        u'auth.permission': {
52
            'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
53
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
54
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
55
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
56
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
57
        },
58
        u'auth.user': {
59
            'Meta': {'object_name': 'User'},
60
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
61
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
62
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
63
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Group']"}),
64
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
65
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
66
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
67
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
68
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
69
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
70
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
71
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "u'user_set'", 'blank': 'True', 'to': u"orm['auth.Permission']"}),
72
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
73
        },
74
        u'contenttypes.contenttype': {
75
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
76
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
77
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
78
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
79
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
80
        },
81
        u'idp.attributepolicy': {
82
            'Meta': {'object_name': 'AttributePolicy'},
83
            'allow_attributes_selection': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
84
            'ask_consent_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
85
            'attribute_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with list'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
86
            'attribute_list_for_sso_from_pull_sources': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attributes from pull sources'", 'null': 'True', 'to': u"orm['attribute_aggregator.AttributeList']"}),
87
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
88
            'filter_source_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
89
            'forward_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
90
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
91
            'map_attributes_from_push_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
92
            'map_attributes_of_filtered_attributes': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
93
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
94
            'output_name_format': ('django.db.models.fields.CharField', [], {'default': "('urn:oasis:names:tc:SAML:2.0:attrname-format:uri', 'SAMLv2 URI')", 'max_length': '100'}),
95
            'output_namespace': ('django.db.models.fields.CharField', [], {'default': "('Default', 'Default')", 'max_length': '100'}),
96
            'send_error_and_no_attrs_if_missing_required_attrs': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
97
            'source_filter_for_sso_from_push_sources': ('django.db.models.fields.related.ManyToManyField', [], {'blank': 'True', 'related_name': "'filter attributes of push sources with sources'", 'null': 'True', 'symmetrical': 'False', 'to': u"orm['attribute_aggregator.AttributeSource']"})
98
        },
99
        u'saml.authorizationattributemap': {
100
            'Meta': {'object_name': 'AuthorizationAttributeMap'},
101
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
102
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '40'})
103
        },
104
        u'saml.authorizationattributemapping': {
105
            'Meta': {'object_name': 'AuthorizationAttributeMapping'},
106
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
107
            'attribute_value': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
108
            'attribute_value_format': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'}),
109
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
110
            'map': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.AuthorizationAttributeMap']"}),
111
            'source_attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '40', 'blank': 'True'})
112
        },
113
        u'saml.authorizationsppolicy': {
114
            'Meta': {'object_name': 'AuthorizationSPPolicy'},
115
            'attribute_map': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'authorization_attributes'", 'null': 'True', 'to': u"orm['saml.AuthorizationAttributeMap']"}),
116
            'default_denial_message': ('django.db.models.fields.CharField', [], {'default': "u'You are not authorized to access the service.'", 'max_length': '80'}),
117
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
118
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
119
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'})
120
        },
121
        u'saml.idpoptionssppolicy': {
122
            'Meta': {'object_name': 'IdPOptionsSPPolicy'},
123
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
124
            'allow_create': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
125
            'back_url': ('django.db.models.fields.CharField', [], {'default': "'/'", 'max_length': '200'}),
126
            'binding_for_sso_response': ('django.db.models.fields.CharField', [], {'default': "'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact'", 'max_length': '200'}),
127
            'enable_binding_for_sso_response': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
128
            'enable_http_method_for_defederation_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
129
            'enable_http_method_for_slo_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
130
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
131
            'force_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
132
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
133
            'handle_persistent': ('django.db.models.fields.CharField', [], {'default': "'AUTHSAML2_UNAUTH_PERSISTENT_ACCOUNT_LINKING_BY_AUTH'", 'max_length': '200'}),
134
            'handle_transient': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '200'}),
135
            'http_method_for_defederation_request': ('django.db.models.fields.IntegerField', [], {'default': '5', 'max_length': '200'}),
136
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4', 'max_length': '200'}),
137
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
138
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '200'}),
139
            'no_nameid_policy': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
140
            'persistent_identifier_attribute': ('django.db.models.fields.CharField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
141
            'requested_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '200'}),
142
            'transient_is_persistent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
143
            'want_authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
144
            'want_force_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
145
            'want_is_passive_authn_request': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
146
        },
147
        u'saml.keyvalue': {
148
            'Meta': {'object_name': 'KeyValue'},
149
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
150
            'key': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
151
            'value': ('authentic2.saml.fields.PickledObjectField', [], {})
152
        },
153
        u'saml.libertyartifact': {
154
            'Meta': {'object_name': 'LibertyArtifact'},
155
            'artifact': ('django.db.models.fields.CharField', [], {'max_length': '128', 'primary_key': 'True'}),
156
            'content': ('django.db.models.fields.TextField', [], {}),
157
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
158
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'})
159
        },
160
        u'saml.libertyfederation': {
161
            'Meta': {'object_name': 'LibertyFederation'},
162
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
163
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
164
            'idp': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyIdentityProvider']", 'null': 'True', 'blank': 'True'}),
165
            'last_modification': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
166
            'name_id_content': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
167
            'name_id_format': ('django.db.models.fields.CharField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
168
            'name_id_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
... Ce différentiel a été tronqué car il excède la taille maximale pouvant être affichée.