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

Fix typos

parent a64f45d2
No related branches found
No related tags found
1 merge request!759Resolve "[OAuth] Allow limiting scopes per application"
......@@ -10,7 +10,7 @@ from allauth.socialaccount.adapter import DefaultSocialAccountAdapter
from oauth2_provider.models import AbstractApplication
from oauth2_provider.oauth2_validators import OAuth2Validator
from oauth2_provider.scopes import BaseScopes
from oauth2_provider.views.mixin import (
from oauth2_provider.views.mixins import (
ClientProtectedResourceMixin as _ClientProtectedResourceMixin,
)
from oauthlib.common import Request as OauthlibRequest
......@@ -112,7 +112,7 @@ class AppScopes(BaseScopes):
scopes += app.get_available_scopes()
# Filter by allowed scopes of requesting application
if application and application.allowed_scopes:
scopes = list(filter(lambda scope: scope in application.alloewd_scopes, scopes))
scopes = list(filter(lambda scope: scope in application.allowed_scopes, scopes))
return scopes
def get_default_scopes(
......@@ -127,7 +127,7 @@ class AppScopes(BaseScopes):
scopes += app.get_default_scopes()
# Filter by allowed scopes of requesting application
if application and application.allowed_scopes:
scopes = list(filter(lambda scope: scope in application.alloewd_scopes, scopes))
scopes = list(filter(lambda scope: scope in application.allowed_scopes, scopes))
return scopes
......
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