Replies: 1 comment 2 replies
-
import requests
res = requests.post("https://api.example.com", json={"user": request.user.username})
res.raise_for_status()
return res.json().get("has_access", False) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking to create a more advanced policy than those listed in the documentation.
In an ideal world, I would be able to:
This would be fairly straight forward to implement in a normal Python application, but when inside a GoAuthentik instance, I'm fearing it may not be as easy as it sounds.
My questions are:
Thank you in advance.
Rob
Beta Was this translation helpful? Give feedback.
All reactions