Skip to content

Commit 7cc9ab6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b083d76 commit 7cc9ab6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

oauth2_provider/models.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
from .scopes import get_scopes_backend
2121
from .settings import oauth2_settings
2222
from .utils import jwk_from_pem
23-
from .validators import RedirectURIValidator, WildcardSet, URIValidator
23+
from .validators import RedirectURIValidator, URIValidator, WildcardSet
24+
2425

2526
logger = logging.getLogger(__name__)
2627

@@ -135,6 +136,7 @@ class AbstractApplication(models.Model):
135136
blank=True,
136137
help_text=_("Allowed origins list to enable CORS, space separated"),
137138
)
139+
138140
class Meta:
139141
abstract = True
140142

@@ -807,7 +809,9 @@ def is_origin_allowed(origin, allowed_origins):
807809
parsed_origin = urlparse(origin)
808810
for allowed_origin in allowed_origins:
809811
parsed_allowed_origin = urlparse(allowed_origin)
810-
if (parsed_allowed_origin.scheme == parsed_origin.scheme
811-
and parsed_allowed_origin.netloc == parsed_origin.netloc):
812+
if (
813+
parsed_allowed_origin.scheme == parsed_origin.scheme
814+
and parsed_allowed_origin.netloc == parsed_origin.netloc
815+
):
812816
return True
813817
return False

0 commit comments

Comments
 (0)