Skip to content

Commit 943b871

Browse files
committed
add allowed_scopes field
1 parent 6740a48 commit 943b871

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

oauth2_provider/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ class AbstractApplication(models.Model):
6666
default=generate_client_secret, db_index=True)
6767
name = models.CharField(max_length=255, blank=True)
6868
skip_authorization = models.BooleanField(default=False)
69+
# only used if oauth2_settings.APP_SPECIFIC_SCOPES is True
70+
allowed_scopes = models.TextField(help_text="List of allowed scopes for this application, space separated")
6971

7072
class Meta:
7173
abstract = True

0 commit comments

Comments
 (0)