Skip to content

Commit

Permalink
fix: cors on .well-know redirect in test app
Browse files Browse the repository at this point in the history
  • Loading branch information
dopry committed Nov 10, 2023
1 parent 9b860e2 commit 5681e2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion tests/app/idp/idp/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@


def cors_allow_origin(sender, request, **kwargs):
return request.path == "/o/userinfo/" or request.path == "/o/userinfo"
return (
request.path == "/o/userinfo/"
or request.path == "/o/userinfo"
or request.path == "/o/.well-known/openid-configuration"
or request.path == "/o/.well-known/openid-configuration/"
)


class IDPAppConfig(AppConfig):
Expand Down
2 changes: 1 addition & 1 deletion tests/app/rp/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const metadata = {};

{#if browser}
<OidcContext
issuer="http://127.0.0.1:8000/o"
issuer="http://localhost:8000/o"
client_id="2EIxgjlyy5VgCp2fjhEpKLyRtSMMPK0hZ0gBpNdm"
redirect_uri="http://localhost:5173"
post_logout_redirect_uri="http://localhost:5173"
Expand Down

0 comments on commit 5681e2e

Please sign in to comment.