File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- from django .apps import AppConfig
2
1
from corsheaders .signals import check_request_enabled
2
+ from django .apps import AppConfig
3
+
3
4
4
5
def cors_allow_origin (sender , request , ** kwargs ):
5
6
return request .path == "/o/userinfo/" or request .path == "/o/userinfo"
6
7
8
+
7
9
class IDPAppConfig (AppConfig ):
8
10
name = "idp"
9
11
default = True
10
12
11
13
def ready (self ):
12
- check_request_enabled .connect (cors_allow_origin )
14
+ check_request_enabled .connect (cors_allow_origin )
Original file line number Diff line number Diff line change 188
188
"SCOPES" : {
189
189
"openid" : "OpenID Connect scope" ,
190
190
},
191
- ' ALLOWED_SCHEMES' : [' https' , ' http' ],
191
+ " ALLOWED_SCHEMES" : [" https" , " http" ],
192
192
}
193
193
# needs to be set to allow cors requests from the test app, along with ALLOWED_SCHEMES=["http"]
194
194
os .environ ["OAUTHLIB_INSECURE_TRANSPORT" ] = "1"
You can’t perform that action at this time.
0 commit comments