Projet

Général

Profil

0001-auth_oidc-provide-clearer-STRATEGY_CREATE-explanatio.patch

Paul Marillonnet, 28 avril 2022 11:15

Télécharger (2,42 ko)

Voir les différences:

Subject: [PATCH] auth_oidc: provide clearer STRATEGY_CREATE explanation
 (#64624)

 .../migrations/0004_auto_20171017_1522.py                | 7 ++++++-
 src/authentic2_auth_oidc/models.py                       | 9 ++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)
src/authentic2_auth_oidc/migrations/0004_auto_20171017_1522.py
15 15
                max_length=32,
16 16
                verbose_name='strategy',
17 17
                choices=[
18
                    ('create', 'create if standard account matching failed'),
18
                    (
19
                        'create',
20
                        'create if standard account matching on email address failed (creation requires '
21
                        'global or provider\'s ou-wise email uniqueness depending on Authentic email '
22
                        'uniqueness configuration)',
23
                    ),
19 24
                    ('find-uuid', 'use sub to find existing user through UUID'),
20 25
                    ('find-username', 'use sub to find existing user through username'),
21 26
                    ('none', 'none'),
src/authentic2_auth_oidc/models.py
45 45
    STRATEGY_NONE = 'none'
46 46

  
47 47
    STRATEGIES = [
48
        (STRATEGY_CREATE, _('create if standard account matching failed')),
48
        (
49
            STRATEGY_CREATE,
50
            _(
51
                'create if standard account matching on email address failed (creation requires '
52
                'global or provider\'s ou-wise email uniqueness depending on Authentic email '
53
                'uniqueness configuration)'
54
            ),
55
        ),
49 56
        (STRATEGY_FIND_UUID, _('use sub to find existing user through UUID')),
50 57
        (STRATEGY_FIND_USERNAME, _('use sub to find existing user through username')),
51 58
        (STRATEGY_NONE, _('none')),
52
-