Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Jun 30, 2020

Conversation

donker
Copy link
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
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
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