© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•12mo ago•
15 replies
Salight

✅ Onion Architecture Authorization doesn't work

I got a presentation layer and api project i make the default scheme JwtBearer in api but when i try to access a authorized controller in presentation layer i got 404 because of the scheme i gotta make manually like this
[Authorize(AuthenticationSchemes =JwtBearerDefaults.AuthenticationScheme)]
[Authorize(AuthenticationSchemes =JwtBearerDefaults.AuthenticationScheme)]

I don't want to make every authorize attribute like this so how can i solve this problem
image.png
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

Authorization doesn't work as it should ASP.NET C#
C#CC# / help
2y ago
❔ Filter doesn't work
C#CC# / help
3y ago
✅ Enum comparison doesn't work.
C#CC# / help
17mo ago
why this doesn't work
C#CC# / help
2y ago