Skip to content

Fix to membership module due to cast error when using JWT auth#3881

Merged
valadas merged 3 commits intodnnsoftware:release/9.6.2from
donker:fixjwt
Jun 30, 2020
Merged

Fix to membership module due to cast error when using JWT auth#3881
valadas merged 3 commits intodnnsoftware:release/9.6.2from
donker:fixjwt

Conversation

@donker
Copy link
Copy Markdown
Contributor

@donker donker commented Jun 30, 2020

JWT auth sets the thread identity to a "GenericIdentity". The membership module, when checking for having to log off a user, assumes the thread identity is a FormsIdentity. When the exception gets thrown the user is logged out. Hence all JWT traffic is broken. This checks for the type before casting it.

Copy link
Copy Markdown
Contributor

@mitchelsellers mitchelsellers left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

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

Looks good to me

@valadas valadas merged commit 60666c4 into dnnsoftware:release/9.6.2 Jun 30, 2020
@donker donker deleted the fixjwt branch July 10, 2020 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants