Skip to content

Commit 5681e2e

Browse files
committed
fix: cors on .well-know redirect in test app
1 parent 9b860e2 commit 5681e2e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/app/idp/idp/apps.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33

44

55
def cors_allow_origin(sender, request, **kwargs):
6-
return request.path == "/o/userinfo/" or request.path == "/o/userinfo"
6+
return (
7+
request.path == "/o/userinfo/"
8+
or request.path == "/o/userinfo"
9+
or request.path == "/o/.well-known/openid-configuration"
10+
or request.path == "/o/.well-known/openid-configuration/"
11+
)
712

813

914
class IDPAppConfig(AppConfig):

tests/app/rp/src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const metadata = {};
2020

2121
{#if browser}
2222
<OidcContext
23-
issuer="http://127.0.0.1:8000/o"
23+
issuer="http://localhost:8000/o"
2424
client_id="2EIxgjlyy5VgCp2fjhEpKLyRtSMMPK0hZ0gBpNdm"
2525
redirect_uri="http://localhost:5173"
2626
post_logout_redirect_uri="http://localhost:5173"

0 commit comments

Comments
 (0)