Skip to main content
Enable RBAC with JWT token authentication using RS256 asymmetric keys. Your auth server signs tokens with the private key. AgentOS verifies them with the matching public key.
1

Create a Python file

basic_rbac_asymmetric.py
2

Set up your virtual environment

3

Install dependencies

4

Export your OpenAI API key

5

Setup PostgreSQL Database

6

Run the AgentOS

The server starts and prints a signed admin token to the console.
7

Test RBAC