Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mike Gabriel
AlekSIS-Core
Commits
cd58350b
Verified
Commit
cd58350b
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Set max length for allowed_scopes to 255
parent
3ebb61fe
Branches
687-max-length-for-allowed_scopes-is-much-too-low
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.rst
+1
-0
1 addition, 0 deletions
CHANGELOG.rst
aleksis/core/migrations/0040_oauth_allowed_scopes_max_length_255.py
+20
-0
20 additions, 0 deletions
...re/migrations/0040_oauth_allowed_scopes_max_length_255.py
aleksis/core/models.py
+1
-1
1 addition, 1 deletion
aleksis/core/models.py
with
22 additions
and
1 deletion
CHANGELOG.rst
+
1
−
0
View file @
cd58350b
...
...
@@ -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
~~~~~~~
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/migrations/0040_oauth_allowed_scopes_max_length_255.py
0 → 100644
+
20
−
0
View file @
cd58350b
# 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
'
),
),
]
This diff is collapsed.
Click to expand it.
aleksis/core/models.py
+
1
−
1
View file @
cd58350b
...
...
@@ -1310,7 +1310,7 @@ class OAuthApplication(AbstractApplication):
# Optional list of alloewd scopes
allowed_scopes
=
ArrayField
(
models
.
CharField
(
max_length
=
3
2
),
models
.
CharField
(
max_length
=
2
55
),
verbose_name
=
_
(
"
Allowed scopes that clients can request
"
),
null
=
True
,
blank
=
True
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment