Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Fixed get user auth priority - first check cookie and then header for… #618

Open
wants to merge 1 commit into
base: 4.0.0
Choose a base branch
from

Conversation

alexpx
Copy link

@alexpx alexpx commented Jun 15, 2017

Migration from Stormpath to Okta:

When checking authenticationRequired route the resolvedAccessToken should take the access token from cookie first.

This scenario is happen when the request contains the cookies together with Auth Bearer and then the auth failed

@robertjd
Copy link
Member

Hi Alex, can you tell me the use case for sending both the cookie and the header? Since this technically isn't part of the migration work I'm inclined to not change this current behavior, especially since we don't have a test for this case, thus I'm not sure who is depending on this current behavior. A workaround would be to put your own middleware in front of this, and remove the token that you don't want to use.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants