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
How does one define distinct routes at the same level of the hierarchy with different authentication/authorization requirements? For example, how would one define the following:
/api/v1/ping : completely open, non-authenticated
/api/v1/user_info : requires authentication, but not authorization
/api/v1/stats : requires authentication and authorization as administrator
Sorry if I'm being dumb, but I spent quite a bit of time last night trying various things to achieve this and came up short. Here's about the closest I could get:
Hello,
How does one define distinct routes at the same level of the hierarchy with different authentication/authorization requirements? For example, how would one define the following:
/api/v1/ping
: completely open, non-authenticated/api/v1/user_info
: requires authentication, but not authorization/api/v1/stats
: requires authentication and authorization as administratorSorry if I'm being dumb, but I spent quite a bit of time last night trying various things to achieve this and came up short. Here's about the closest I could get:
This already felt hacky to me, and I could see no way to extend it further to accommodate authorized routes as well. Is there a way to achieve this?
The text was updated successfully, but these errors were encountered: