Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
[AllowAnonymous] not working when request was handled by YARP - C#
C
C#
•
2y ago
Johann
[AllowAnonymous] not working when request was handled by YARP
Hi
!
I have an issue with the application of authorization policies in an app using YARP
- maybe somebody here has some clue what I
'm doing wrong here
:
https://github.com/microsoft/reverse-proxy/discussions/2554
tl
;dr
: Using an authorization policy on a YARP route clashes with the
[AllowAnonymous]
[AllowAnonymous]
attribute on a controller defined in the same project
.
GitHub
`[AllowAnonymous]` ignored after request was handled by YARP · micr...
Scenario
: I have an ASP
.NET Core Project that uses Yarp as an ingress for serveral backends and a JavaScript
/SPA Frontend
. Authentication is handled via a on
-premise ADFS instance
/OIDC
. As the ADFS
.
.
.
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Bearer token is not used by Swagger for endpoints with [authorize], but used for [AllowAnonymous]
C
C# / help
2y ago
YARP vs Basic HTTP Redirect
C
C# / help
2y ago
CancelKeyPress not being handled/interrupted correctly
C
C# / help
3y ago