Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Fixed bug where the Subject was not being set on the ValidatedRequest and would not end up in the TokenIssuedSuccessEvent using Code flow #3059

Conversation

LamarLugli
Copy link

What issue does this PR address?
When the TokenIssuedSuccessEvent is raised on a successful code authorization, the SubjectId field is blank because the Subject property was not being set in the ValidatedRequest class. It gets set on the other authorization flows, but the line to set it here was missing.

Does this PR introduce a breaking change?

No

Please check if the PR fulfills these requirements

  • The commit follows our guidelines
  • [No existing tests exist to check anything related to this flow] Unit Tests for the changes have been added (for bug fixes / features)

Other information:

… in the Code flow. As a result, we didn't have visibility in the event handlers as to which subject the event was for.
@leastprivilege leastprivilege added this to the 2.4 milestone Mar 3, 2019
@leastprivilege leastprivilege modified the milestones: 2.4, 2.4.1 Apr 4, 2019
@brockallen brockallen modified the milestones: 2.4.1, 2.5 Apr 11, 2019
brockallen added a commit that referenced this pull request Apr 30, 2019
@brockallen
Copy link
Member

Given the merge conflicts, we added this manually. Thanks.

@brockallen brockallen closed this Apr 30, 2019
@lock
Copy link

lock bot commented Jan 10, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants