© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago
acookook

JWT implementation with .net 7.0 with Carter

I am trying to get some basic authorization to work also using the Carter nuget package. I simply cannot get the jwt authorization working. I'd also like to read data from the jwt, to use the data in my minimal API endpoints.
All the relevant files I posted on gist, any suggestions or improvements are welcome.
https://gist.github.com/shanji97/19022c72218e07e692667c1042223903
Gist
Swagger issue.
Swagger issue. GitHub Gist: instantly share code, notes, and snippets.
Swagger issue.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Implement JWT to my WebAPI .NET 7.0 project - First time
C#CC# / help
3y ago
❔ .net 7, net 7.0.3 compatibility issues? in docker
C#CC# / help
3y ago
ASP .NET 7 - Testing a JWT Token Generator
C#CC# / help
3y ago
Net 5 -> Net 7
C#CC# / help
3y ago