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

Merge branch '687-max-length-for-allowed_scopes-is-much-too-low' into 'master'

Resolve "Max length for allowed_scopes is much too low"

Closes #687

See merge request AlekSIS/official/AlekSIS-Core!1010
parents 0d39d5f5 8ddf17a4
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ Fixed ...@@ -29,6 +29,7 @@ Fixed
* [OAuth2] Resources which are protected with client credentials * [OAuth2] Resources which are protected with client credentials
allowed access if no scopes were allowed. allowed access if no scopes were allowed.
* The site logo could overlap with the menu for logos with an unexpected aspect ratio. * The site logo could overlap with the menu for logos with an unexpected aspect ratio.
* Some OAuth2 views stopped working with long scope names.
Changed 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): ...@@ -1310,7 +1310,7 @@ class OAuthApplication(AbstractApplication):
# Optional list of alloewd scopes # Optional list of alloewd scopes
allowed_scopes = ArrayField( allowed_scopes = ArrayField(
models.CharField(max_length=32), models.CharField(max_length=255),
verbose_name=_("Allowed scopes that clients can request"), verbose_name=_("Allowed scopes that clients can request"),
null=True, null=True,
blank=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