Skip to main content
Enable RBAC with JWT token authentication using HS256 and a shared secret. The same secret signs tokens and verifies them.
1

Create a Python file

basic_rbac.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 will start and print test JWT tokens to the console.
7

Test RBAC