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): optional cookie name #789

Merged

Conversation

maemaemae3
Copy link
Contributor

Summary

I want to add a environment variable OIDC_COOKIE_NAME that allows the cookie name used to be customized, which will enhance security, avoid namespace conflicts, etc.

Changes

  • Added a configuration option OIDC_COOKIE_NAME
  • Merged validation logic for all environment variables in getOidcAuthEnv()

Testing

  • Tested custom cookie names. (default name test is done in other tests).
  • Verified no impact on authentication flow.

Copy link

changeset-bot bot commented Oct 22, 2024

🦋 Changeset detected

Latest commit: d2b641d

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

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 @maemaemae3! Looks good. I'll merge this and release a new version. Thank you for your contribution.

@yusukebe yusukebe merged commit 68eec9e into honojs:main Oct 25, 2024
1 check passed
@github-actions github-actions bot mentioned this pull request Oct 25, 2024
@maemaemae3 maemaemae3 deleted the feature/oidc-auth-specify-cookie-name branch October 25, 2024 09:10
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