-
Notifications
You must be signed in to change notification settings - Fork 1.7k
#1876 Replace JwtSecurityTokenHandler
with JsonWebTokenHandler
in the Authentication docs according to breaking changes in .NET 8 Auth
#2238
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
Conversation
Thanks for opening PR! |
JwtSecurityToken
to JsonWebToken
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As previously stated in the linked issue: #1876 (comment), acceptance testing is mandatory. Please add acceptance tests and, optionally, unit.
docs/features/authentication.rst
Outdated
JsonWebTokenHandler.DefaultInboundClaimTypeMap.Add("scp", "scope"); | ||
|
||
`Issue 446 <https://github.com/ThreeMammals/Ocelot/issues/446>`_ contains some code and examples that might help with Okta integration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I believe line 187, referencing issue [Question] OIDC Auth and 401 #446 can be removed due to its outdated nature, correct? Should we always remap claims for Okta?
- What about utilizing
Clear()
method as in the MS Learn documentation?
Hi! What's the progress here? |
@jvanderlei Joaop, please note the document looks good now. |
@jvanderlei Are you online? |
JwtSecurityToken
to JsonWebToken
JwtSecurityToken
with JsonWebToken
in the Authentication docs according to breaking changes in .NET 8 Auth
JwtSecurityToken
with JsonWebToken
in the Authentication docs according to breaking changes in .NET 8 AuthJwtSecurityTokenHandler
with JsonWebTokenHandler
in the Authentication docs according to breaking changes in .NET 8 Auth
JsonWebTokenHandler.DefaultInboundClaimTypeMap.Remove("scp"); | ||
JsonWebTokenHandler.DefaultInboundClaimTypeMap.Add("scp", "scope"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Key changes!
TODO
|
Fixes #1876
Proposed Changes