Allow dynamic cookie path #1585
piktur
started this conversation in
Ideas & Feature Requests
Replies: 1 comment
-
Found a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What problem does this feature solve?
In applications employing multiple authentication strategies it should be possible to isolate cookie attributes to a path unique to each strategy.
Given two login pages
/admin/login
and/customer/login
When I login as admin in one tab
and login as customer in another tab
then return to admin tab and refresh
then token verification fails because the strategy was overridden when we logged in as customer.
What does the proposed changes look like?
This would cease to be a problem if it were possible to configure the cookie path per strategy or simply allow the developer to provide a function to
options.cookie.options.path
as in the following example.Beta Was this translation helpful? Give feedback.
All reactions