Louis
Louis
TtRPC
Created by vapor on 1/3/2024 in #❓-help
Advanced Permissioning In Middleware
If you're worried about performance, you could store the permission set in a cache, either in memory or redis. This would be quicker than hitting a db with every verify flag in context.
5 replies
TtRPC
Created by vapor on 1/3/2024 in #❓-help
Advanced Permissioning In Middleware
Also you'll have access to the url/route, use regex with a capture group to capture Facility B, foo, bar, blah etc. to use in your permission logic.
5 replies
TtRPC
Created by vapor on 1/3/2024 in #❓-help
Advanced Permissioning In Middleware
Just an idea, store some kind of flag in context, you can then filter out most of the calls that don't need to verify the users permissions.
5 replies