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

Use two different cookies for different consumer services #241

Open
OriaLogic opened this issue Nov 16, 2021 · 0 comments
Open

Use two different cookies for different consumer services #241

OriaLogic opened this issue Nov 16, 2021 · 0 comments
Labels
support Questions, discussions, and general support

Comments

@OriaLogic
Copy link

Support plan

  • is this issue currently blocking your project? (yes/no): yes
  • is this issue affecting a production system? (yes/no): yes

Context

  • node version: 16.13
  • module version: 10.0.0
  • environment (e.g. node, browser, native): not relevant
  • used with (e.g. hapi application, another framework, standalone, ...): hapi application
  • any other relevant information:

How can we help?

Hi,

I have an application with a backoffice and multiple client facing websites.
The users of the websites log in using a cookie with hapi-auth-cookie module.
The admins of the backoffice also connect to the hapi server using a cookie.

From what I could see, there is no way to register two different strategies with the hapi-auth-cookie module and have two different cookies used.
Why isn't it possible to register using two different cookies ? One for the admins and one for the normal users ?

I have seen this related issue but I don't want to have different scopes really, I would like to have different cookies.
My API provides data for different services, and as such the cookies should simply be different and not related.

Regards,
Lucas

@OriaLogic OriaLogic added the support Questions, discussions, and general support label Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Questions, discussions, and general support
Projects
None yet
Development

No branches or pull requests

1 participant