Projet

Général

Profil

0001-auth_oidc-extend-mapping-claim-max-length-37871.patch

Paul Marillonnet, 31 mars 2020 14:00

Télécharger (2,09 ko)

Voir les différences:

Subject: [PATCH 1/5] auth_oidc: extend mapping claim max length (#37871)

 .../migrations/0007_auto_20200317_1732.py     | 20 +++++++++++++++++++
 src/authentic2_auth_oidc/models.py            |  4 ++--
 2 files changed, 22 insertions(+), 2 deletions(-)
 create mode 100644 src/authentic2_auth_oidc/migrations/0007_auto_20200317_1732.py
src/authentic2_auth_oidc/migrations/0007_auto_20200317_1732.py
1
# -*- coding: utf-8 -*-
2
# Generated by Django 1.11.18 on 2020-03-17 16:32
3
from __future__ import unicode_literals
4

  
5
from django.db import migrations, models
6

  
7

  
8
class Migration(migrations.Migration):
9

  
10
    dependencies = [
11
        ('authentic2_auth_oidc', '0006_oidcprovider_claims_parameter_supported'),
12
    ]
13

  
14
    operations = [
15
        migrations.AlterField(
16
            model_name='oidcclaimmapping',
17
            name='claim',
18
            field=models.CharField(max_length=128, verbose_name='claim'),
19
        ),
20
    ]
src/authentic2_auth_oidc/models.py
1 1
# authentic2 - versatile identity manager
2
# Copyright (C) 2010-2019 Entr'ouvert
2
# Copyright (C) 2010-2020 Entr'ouvert
3 3
#
4 4
# This program is free software: you can redistribute it and/or modify it
5 5
# under the terms of the GNU Affero General Public License as published
......
194 194
        verbose_name=_('provider'),
195 195
        related_name='claim_mappings')
196 196
    claim = models.CharField(
197
        max_length=64,
197
        max_length=128,
198 198
        verbose_name=_('claim'))
199 199
    attribute = models.CharField(
200 200
        max_length=64,
201
-