Projet

Général

Profil

0001-Remove-LibertyFederation-model-refs-5639.patch

Benjamin Dauvergne, 10 mars 2015 13:42

Télécharger (27,5 ko)

Voir les différences:

Subject: [PATCH 1/3] Remove LibertyFederation model (refs #5639)

The model is unused since commit df00c9d6c8.
 src/authentic2/saml/admin.py                       |   3 +-
 src/authentic2/saml/common.py                      |   2 +-
 src/authentic2/saml/managers.py                    |   8 -
 src/authentic2/saml/models.py                      |  22 --
 ...ssertion__del_field_libertysession_assertion.py | 265 +++++++++++++++++++++
 5 files changed, 267 insertions(+), 33 deletions(-)
 create mode 100644 src/authentic2/south_migrations/0048_auto__del_libertyassertion__del_field_libertysession_assertion.py
src/authentic2/saml/admin.py
17 17
from authentic2.saml.models import LibertyIdentityProvider, IdPOptionsSPPolicy
18 18
from authentic2.saml.models import SPOptionsIdPPolicy
19 19
from authentic2.saml.models import LibertySessionDump, LibertyFederation
20
from authentic2.saml.models import LibertyAssertion, LibertySessionSP, KeyValue
20
from authentic2.saml.models import LibertySessionSP, KeyValue
21 21
from authentic2.saml.models import LibertySession
22 22
from authentic2.saml.models import SAMLAttribute
23 23

  
......
283 283
    admin.site.register(LibertySessionDump)
284 284
    admin.site.register(LibertyFederation, LibertyFederationAdmin)
285 285
    admin.site.register(LibertySession)
286
    admin.site.register(LibertyAssertion)
287 286
    admin.site.register(LibertySessionSP)
288 287
    admin.site.register(KeyValue)
src/authentic2/saml/common.py
218 218
# Helper method to handle profiles endpoints
219 219
# In the future we should move away from monolithic object (LassoIdentity and
220 220
# LassoSession) holding all the datas, to manipulate them at row Level with
221
# LibertyFederation and LibertyAssertion objects.
221
# LibertyFederation objects.
222 222

  
223 223
START_IDENTITY_DUMP = '''<Identity xmlns="http://www.entrouvert.org/namespaces/lasso/0.0" Version="2">
224 224
'''
src/authentic2/saml/managers.py
31 31
SessionLinkedManager = managers.PassThroughManager \
32 32
        .for_queryset_class(SessionLinkedQuerySet)
33 33

  
34
class LibertyAssertionManager(models.Manager):
35
    def cleanup(self):
36
        # keep assertions 1 week
37
        expire = getattr(settings, 'SAML2_ASSERTION_EXPIRATION', 3600*24*7)
38
        before = now()-datetime.timedelta(seconds=expire)
39
        self.filter(creation__lt=before).delete()
40

  
41

  
42 34
class LibertyFederationManager(models.Manager):
43 35
    def cleanup(self):
44 36
        for federation in self.filter(user__isnull=True):
src/authentic2/saml/models.py
677 677
        'name_id_content': name_id.content,
678 678
        'name_id_format': name_id.format }
679 679

  
680
class LibertyAssertion(models.Model):
681
    assertion_id = models.CharField(max_length = 128)
682
    provider_id = models.CharField(max_length = 256)
683
    session_index = models.CharField(max_length = 128, )
684
    assertion = models.TextField()
685
    creation = models.DateTimeField(auto_now_add=True)
686

  
687
    def __init__(self, *args, **kwargs):
688
        saml2_assertion = kwargs.pop('saml2_assertion', None)
689
        if saml2_assertion:
690
            kwargs['assertion_id'] = saml2_assertion.id
691
            kwargs['session_index'] = \
692
                    saml2_assertion.authnStatement[0].sessionIndex
693
            kwargs['assertion'] = saml2_assertion.exportToXml()
694
        models.Model.__init__(self, *args, **kwargs)
695

  
696
    class Meta:
697
        verbose_name = _('SAML assertion')
698
        verbose_name_plural = _('SAML assertions')
699

  
700 680
# XXX: for retrocompatibility
701 681
federation_delete = managers.federation_delete
702 682

  
......
768 748
    provider_id = models.CharField(max_length = 256)
769 749
    federation = models.ForeignKey(LibertyFederation, blank=True,
770 750
            null = True)
771
    assertion = models.ForeignKey(LibertyAssertion, blank=True, null
772
            = True)
773 751
    name_id_qualifier = models.CharField(max_length = 256,
774 752
            verbose_name = _("Qualifier"), null = True)
775 753
    name_id_format = models.CharField(max_length = 100,
src/authentic2/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
        },
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.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['attribute_aggregator.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['attribute_aggregator.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
            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
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
            '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
            'creation': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
209
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
210
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']", 'null': 'True', 'blank': 'True'}),
211
            u'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': '256', 'null': 'True'}),
215
            'name_id_sp_name_qualifier': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
216
            'provider_id': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
217
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
218
        },
219
        u'saml.libertysessiondump': {
220
            'Meta': {'object_name': 'LibertySessionDump'},
221
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
222
            u'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
        u'saml.libertysessionsp': {
227
            'Meta': {'object_name': 'LibertySessionSP'},
228
            'django_session_key': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
229
            'federation': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['saml.LibertyFederation']"}),
230
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
231
            'session_index': ('django.db.models.fields.CharField', [], {'max_length': '80'})
232
        },
233
        u'saml.samlattribute': {
234
            'Meta': {'object_name': 'SAMLAttribute'},
235
            'attribute_name': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
236
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
237
            'friendly_name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
238
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
239
            'name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'blank': 'True'}),
240
            'name_format': ('django.db.models.fields.CharField', [], {'default': "'basic'", 'max_length': '64'}),
241
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
242
        },
243
        u'saml.spoptionsidppolicy': {
244
            'Meta': {'object_name': 'SPOptionsIdPPolicy'},
245
            'accept_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
246
            'accepted_name_id_format': ('authentic2.saml.fields.MultiSelectField', [], {'max_length': '1024', 'blank': 'True'}),
247
            'ask_user_consent': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
248
            'authn_request_signed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
249
            'default_name_id_format': ('django.db.models.fields.CharField', [], {'default': "'none'", 'max_length': '256'}),
250
            'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
251
            'encrypt_assertion': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
252
            'encrypt_nameid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
253
            'federation_mode': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
254
            'forward_slo': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
255
            'http_method_for_slo_request': ('django.db.models.fields.IntegerField', [], {'default': '4'}),
256
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
257
            'idp_initiated_sso': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
258
            'iframe_logout_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '300'}),
259
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
260
            'needs_iframe_logout': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
261
            'prefered_assertion_consumer_binding': ('django.db.models.fields.CharField', [], {'default': "'meta'", 'max_length': '4'})
262
        }
263
    }
264

  
265
    complete_apps = ['saml']
0
-