Skip to content
Snippets Groups Projects
Verified Commit cd58350b authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Set max length for allowed_scopes to 255

parent 3ebb61fe
No related branches found
No related tags found
1 merge request!1010Resolve "Max length for allowed_scopes is much too low"
Pipeline #65518 passed with warnings
......@@ -26,6 +26,7 @@ Fixed
* Due to a merge error, the once removed account menu in the sidenav appeared again.
* Scheduled notifications were shown on dashboard before time.
* Remove broken notifications menu item in favor of item next to account menu.
* Some views working with OAuth2 scopes didn't work.
Changed
~~~~~~~
......
# Generated by Django 3.2.13 on 2022-04-19 16:50
import django.contrib.postgres.fields
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('core', '0039_personal_ical_url'),
]
operations = [
migrations.AlterField(
model_name='oauthapplication',
name='allowed_scopes',
field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=255), blank=True, null=True, size=None, verbose_name='Allowed scopes that clients can request'),
),
]
......@@ -1310,7 +1310,7 @@ class OAuthApplication(AbstractApplication):
# Optional list of alloewd scopes
allowed_scopes = ArrayField(
models.CharField(max_length=32),
models.CharField(max_length=255),
verbose_name=_("Allowed scopes that clients can request"),
null=True,
blank=True,
......
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