0006-auth_saml-remove-JSON-fields-from-model-67025.patch
src/authentic2_auth_saml/migrations/0006_auto_20220728_1817.py | ||
---|---|---|
1 |
# Generated by Django 2.2.26 on 2022-07-28 16:17 |
|
2 | ||
3 |
from django.db import migrations |
|
4 | ||
5 | ||
6 |
class Migration(migrations.Migration): |
|
7 | ||
8 |
dependencies = [ |
|
9 |
('authentic2_auth_saml', '0005_auto_20220727_1704'), |
|
10 |
] |
|
11 | ||
12 |
operations = [ |
|
13 |
migrations.RemoveField( |
|
14 |
model_name='samlauthenticator', |
|
15 |
name='a2_attribute_mapping', |
|
16 |
), |
|
17 |
migrations.RemoveField( |
|
18 |
model_name='samlauthenticator', |
|
19 |
name='lookup_by_attributes', |
|
20 |
), |
|
21 |
] |
src/authentic2_auth_saml/models.py | ||
---|---|---|
125 | 125 |
login_hints = models.CharField( |
126 | 126 |
_('Login hints'), max_length=512, help_text=_('Comma separated list.'), blank=True |
127 | 127 |
) |
128 |
lookup_by_attributes = JSONField( |
|
129 |
_('Lookup by attributes'), |
|
130 |
default=list, |
|
131 |
help_text=_( |
|
132 |
'Allow looking for user with some SAML attributes if the received NameID is ' |
|
133 |
'still unknown. It must be a list of dictionnaries with two mandatory keys ' |
|
134 |
'`user_field` and `saml_attribute`. The optionnal key `ignore-case` should be a ' |
|
135 |
'boolean indicating if the match is case-insensitive (default is to respect the ' |
|
136 |
'case).' |
|
137 |
), |
|
138 |
blank=True, |
|
139 |
) |
|
140 |
a2_attribute_mapping = JSONField( |
|
141 |
_('Attribute mapping'), |
|
142 |
default=list, |
|
143 |
help_text=_( |
|
144 |
'Copy incoming SAML attributes to user attributes, for example ' |
|
145 |
'for example [{"attribute": "email", "saml_attribute": "mail", "mandatory": false}].' |
|
146 |
), |
|
147 |
blank=True, |
|
148 |
) |
|
149 | 128 |
attribute_mapping = JSONField( |
150 | 129 |
_('Attribute mapping (deprecated)'), |
151 | 130 |
default=dict, |
152 |
- |