Skip to content
Snippets Groups Projects
Verified Commit 5ac7256f authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Allow allowed_scopes field to be blank

parent 3aa86dee
Branches 616-docs-document-dashboard-and-dashboard-widgets
No related tags found
1 merge request!759Resolve "[OAuth] Allow limiting scopes per application"
Pipeline #39110 failed
......@@ -14,6 +14,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='oauthapplication',
name='allowed_scopes',
field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=32), null=True, size=None, verbose_name='Allowed scopes that clients can request'),
field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=32), blank=True, null=True, size=None, verbose_name='Allowed scopes that clients can request'),
),
]
......@@ -1118,6 +1118,7 @@ class OAuthApplication(AbstractApplication):
models.CharField(max_length=32),
verbose_name=_("Allowed scopes that clients can request"),
null=True,
blank=True,
)
def allows_grant_type(self, *grant_types: set[str]) -> bool:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment