Skip to content

Commit 8f14162

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 36bcbf2 commit 8f14162

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/app/idp/idp/apps.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
from django.apps import AppConfig
21
from corsheaders.signals import check_request_enabled
2+
from django.apps import AppConfig
3+
34

45
def cors_allow_origin(sender, request, **kwargs):
56
return request.path == "/o/userinfo/" or request.path == "/o/userinfo"
67

8+
79
class IDPAppConfig(AppConfig):
810
name = "idp"
911
default = True
1012

1113
def ready(self):
12-
check_request_enabled.connect(cors_allow_origin)
14+
check_request_enabled.connect(cors_allow_origin)

tests/app/idp/idp/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
"SCOPES": {
189189
"openid": "OpenID Connect scope",
190190
},
191-
'ALLOWED_SCHEMES': ['https', 'http'],
191+
"ALLOWED_SCHEMES": ["https", "http"],
192192
}
193193
# needs to be set to allow cors requests from the test app, along with ALLOWED_SCHEMES=["http"]
194194
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"

0 commit comments

Comments
 (0)