Skip to main content
Configure AgentOS to verify a WorkOS JWKS, read scopes from the permissions claim, and enforce the token audience. Without WorkOS credentials this file runs the required construction smoke using an equivalent local JWKS.
workos_byot.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Run the example

Save the code above as workos_byot.py, then run:
Full source: cookbook/05_agent_os/07_security/workos_byot.py