AspNetCore 8 Web API using JwtBearer stops returning user context if you upgrade to System.ServiceModel.Federation 8.1.x
- Dominant language
- C#
- Stars
- 1.8k
- Forks
- 576
- Avg merge
- 6d 9h
- Merged PRs (30d)
- 2
Description
**Describe the bug**
AspNetCore 8 Web API using Microsoft.AspNetCore.Authentication.JwtBearer stops returning user context if you upgrade to System.ServiceModel.Federation 8.1.x
**To Reproduce**
Steps to reproduce the behavior:
1. Create a AspNetCore 8 WebAPI project and configure it to use JwtBearer Authentication with the appropriate requirements and handlers.
2. Create a connected WCF Service (import in System.ServiceModel.Federation)
3. Upgrade System.ServiceModel.Federation to version 8.1.x
4. Put a breakpoint in the authentication handler.
5. The context.User object will be null.
6. Downgrade to 8.0.0
7. context.User object works as expected.
**Expected behavior**
The context.User object should continue to work if you also use System.ServiceModel.Federation
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Additional context**
Contributor guide
Assessment
This issue has not been assessed yet.