Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(oidc-auth): restrict cookie paths #709

Merged

Conversation

ameinhardt
Copy link
Contributor

I'd like to restrict the cookie path, e.g. to '/api' only. For that, this pull request introduced an envvar OIDC_COOKIE_PATH that defaults back to '/'.
Also, it restricts the path of the callback cookies to the pathname of OIDC_REDIRECT_URI

Copy link

changeset-bot bot commented Aug 24, 2024

🦋 Changeset detected

Latest commit: 8fc0a6a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hono/oidc-auth Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@yusukebe
Copy link
Member

Hi @ameinhardt

Can you add tests for this?

Copy link
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe
Copy link
Member

Hi @ameinhardt

Thank you for adding the tests. I've updated it to remove the unnecessary code. Looks good! I'll merge this now.

@yusukebe yusukebe merged commit cd99b40 into honojs:main Aug 25, 2024
1 check passed
@github-actions github-actions bot mentioned this pull request Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants