I cloned and ran the sample. After some experiments, I found that in basic_policy.csv, GET works but Get not work.
I searched and found this issue Case Insensitive Policy Enforcement, and it means casbin is case sensitive. so i assue this sample has a minor typo.
I searched the entire library code, didn't find any hardcoded action string of GET or POST, etc. Could you please explain a little why in policy.csv the action syntax must be all upper case? Is it related to some http specification? Is it implement dependent(is the behaviour related to operation system/browser versions)?
I cloned and ran the sample. After some experiments, I found that in basic_policy.csv,
GET
works butGet
not work.GET
orPOST
, etc. Could you please explain a little why inpolicy.csv
the action syntax must be all upper case? Is it related to some http specification? Is it implement dependent(is the behaviour related to operation system/browser versions)?