mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 09:49:23 +02:00
67 lines
2.8 KiB
Python
67 lines
2.8 KiB
Python
# Generated by Django 3.2.4 on 2021-07-03 18:10
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('users', '0020_application_token'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='application',
|
|
name='algorithm',
|
|
field=models.CharField(blank=True, choices=[('', 'No OIDC support'), ('RS256', 'RSA with SHA-2 256'), ('HS256', 'HMAC with SHA-2 256')], default='', max_length=5),
|
|
),
|
|
migrations.AddField(
|
|
model_name='grant',
|
|
name='claims',
|
|
field=models.TextField(blank=True),
|
|
),
|
|
migrations.AddField(
|
|
model_name='grant',
|
|
name='nonce',
|
|
field=models.CharField(blank=True, default='', max_length=255),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='application',
|
|
name='authorization_grant_type',
|
|
field=models.CharField(choices=[('authorization-code', 'Authorization code'), ('implicit', 'Implicit'), ('password', 'Resource owner password-based'), ('client-credentials', 'Client credentials'), ('openid-hybrid', 'OpenID connect hybrid')], max_length=32),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='grant',
|
|
name='redirect_uri',
|
|
field=models.TextField(),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='user',
|
|
name='first_name',
|
|
field=models.CharField(blank=True, max_length=150, verbose_name='first name'),
|
|
),
|
|
migrations.CreateModel(
|
|
name='IdToken',
|
|
fields=[
|
|
('id', models.BigAutoField(primary_key=True, serialize=False)),
|
|
('jti', models.UUIDField(default=uuid.uuid4, editable=False, unique=True, verbose_name='JWT Token ID')),
|
|
('expires', models.DateTimeField()),
|
|
('scope', models.TextField(blank=True)),
|
|
('created', models.DateTimeField(auto_now_add=True)),
|
|
('updated', models.DateTimeField(auto_now=True)),
|
|
('application', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.OAUTH2_PROVIDER_APPLICATION_MODEL)),
|
|
('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='users_idtoken', to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
),
|
|
migrations.AddField(
|
|
model_name='accesstoken',
|
|
name='id_token',
|
|
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='access_token', to=settings.OAUTH2_PROVIDER_ID_TOKEN_MODEL),
|
|
),
|
|
]
|