You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to run custom authorization code only for specific routes? #1626
I have written a custom authorization routine hooked up in Ocelot PreAuthorizationMiddleware.
How can I run this just for specific routes?
Is there any concept like adding a custom property to a route? Something like UseAdvancedAuthorization=true and somehow access this in the PreAuthorizationMiddleware to decide if it will handle the authorization or just let the default AuthorizationMiddleware do its job.
changed the title [-]Question: How to run custom authorization code only for specific routes?[/-][+]How to run custom authorization code only for specific routes?[/+]on Oct 17, 2023
Activity
ahmedanwar100 commentedon Jan 3, 2023
@fauresco, have you read this doc https://ocelot.readthedocs.io/en/latest/features/authentication.html. May be it can help
[-]Question: How to run custom authorization code only for specific routes?[/-][+]How to run custom authorization code only for specific routes?[/+]