Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

fix an incorrect cache operation on authorization code flow #161

Merged
merged 1 commit into from
Jun 26, 2018

Conversation

yugangw-msft
Copy link
Contributor

@yugangw-msft yugangw-msft commented Jun 23, 2018

//CC: @rayluo
My Change #138 was not right by searching the cache before sending out the request because at that time we don't know the userID, so the entry returned from cache might be issued to other users.
So I am reverting it and replace with the right fix, which is one line change like we did on device code
The unit test introduce by #138 is still kept as it verifies the right scenario, that the token from the wire response will be saved in cache.

@henrik-me henrik-me requested review from rayluo and abhidnya13 June 25, 2018 05:14
Copy link
Collaborator

@rayluo rayluo left a comment

Choose a reason for hiding this comment

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

Thanks @yugangw-msft for catching this issue. @abhidnya13 and I have reviewed this change together and understand the rationale of this change.

Copy link
Contributor

@abhidnya13 abhidnya13 left a comment

Choose a reason for hiding this comment

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

After conversation with @rayluo about the cache logic, I understand what the change is. LGTM

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.

3 participants