https://cerbos.dev logo
#help
Title
# help
j

Jesum Yip

03/22/2022, 3:18 AM
by the way, is there a page that documents the cerbos python client library?
i would like to see how i can pass JWTs to cerbos using the Python client.
also, in https://github.com/cerbos/demo-python/blob/master/requirements.txt, i see there is no python module called "cerbos" being installed?
d

Dennis (Cerbos)

03/22/2022, 3:26 AM
Sorry, Iโ€™m not a python developer. Hope someone will comment on this later today.
j

Jesum Yip

03/22/2022, 3:28 AM
I guess it's @Charith (Cerbos). I can't find the cerbos python module in PyPI. So I'm wondering where is it located in public repositories?
d

Dennis (Cerbos)

03/22/2022, 3:30 AM
I think it is work in progress
j

Jesum Yip

03/22/2022, 3:31 AM
So if I want to use Python to talk to cerbos, I can't?
I mean I have to do it manually by calling the REST API and composing the raw JSON?
d

Dennis (Cerbos)

03/22/2022, 3:32 AM
Yes, definitely
j

Jesum Yip

03/22/2022, 3:33 AM
Awwwww, that's a shame. In the published python demo i see there is a pre-packaged python module that talks to cerbos and abstracts allt the work required to compose the raw JSON etc. https://www.loom.com/share/0425d8a075804d528185ad2ba30817b3
at around 2:47, the presenter says "We import cerbos library"
nevermind, i found it. ๐Ÿ™‚
๐Ÿ‘ 1
d

Dennis (Cerbos)

03/22/2022, 3:40 AM
I can be wrong, but I donโ€™t see it handles JWT though.
j

Jesum Yip

03/22/2022, 3:41 AM
yeah it doesn't
i'll have to extend it
d

Dennis (Cerbos)

03/22/2022, 3:41 AM
The request has to include:
Copy code
"auxData": { 
    "jwt": {
        "token": "xxx.yyy.zzz", 
        "keySetId": "ks1" 
    }
  }
๐Ÿ‘ 1
6 Views