diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 37ce94292fc02e9530fb1ea996d246a415cd6eee..36d892be1cffe1d0c48904ae21dc1c1daf7580ef 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -29,6 +29,7 @@ Fixed
 * [OAuth2] Resources which are protected with client credentials 
   allowed access if no scopes were allowed.
 * 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
 ~~~~~~~
diff --git a/aleksis/core/migrations/0040_oauth_allowed_scopes_max_length_255.py b/aleksis/core/migrations/0040_oauth_allowed_scopes_max_length_255.py
new file mode 100644
index 0000000000000000000000000000000000000000..c978c3afc0c2faa7004e78466ec6022db44740bd
--- /dev/null
+++ b/aleksis/core/migrations/0040_oauth_allowed_scopes_max_length_255.py
@@ -0,0 +1,20 @@
+# 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'),
+        ),
+    ]
diff --git a/aleksis/core/models.py b/aleksis/core/models.py
index 963c60c99ef8e8b1a9b0ca7ebc31c7c8f298a2f5..462c3a2f8bde981a55745cb06b04f4ad54f10da3 100644
--- a/aleksis/core/models.py
+++ b/aleksis/core/models.py
@@ -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,