go-authcrunch icon indicating copy to clipboard operation
go-authcrunch copied to clipboard

question: custom jwt field to acl

Open New2Niu opened this issue 2 years ago • 0 comments

A clear and concise description of what you want to accomplish.

how can i custom field in jwt and to acl match.eg. device_id

paylod:
{
  "exp": 2676517701,
  "iss": "",
  "sub":"aaa",
  "device_id":""
}
 acl rule {
   match device_id  device_id1 device_id2
   allow log info
 }

New2Niu avatar Feb 16 '23 03:02 New2Niu