Demo server was deployed to heroku: https://aioauth-fastapi.herokuapp.com/api/openapi/
It can be tested on https://openidconnect.net/ and https://oidcdebugger.com/ playgrounds.
Authorization Endpoint: https://aioauth-fastapi.herokuapp.com/oauth2/authorize
Token endpoint: https://aioauth-fastapi.herokuapp.com/oauth2/token
Client id: be861a8a-7817-4a9e-93d3-9976bf099893
Client secret: 71569cc8-89ea-48c1-adb3-10f831020840
Scopes: read write
To start working with the playground, you need to create a new user and log in. access_token
will be saved in cookies. access_token
lifetime is 15 minutes.
Install requirements:
pip install -e ."[dev]"
Apply migrations
alembic upgrade head
Create client for demo
INSERT INTO client (
id,
client_id,
client_secret,
grant_types,
response_types,
redirect_uris,
scope
) VALUES (
'3b23a838-b92d-409f-b49b-a1d9cb675c29', -- id
'be861a8a-7817-4a9e-93d3-9976bf099893', -- client_id
'71569cc8-89ea-48c1-adb3-10f831020840', -- client_secret
'{"authorization_code", "password", "client_credentials", "refresh_token"}', -- grant_types
'{"token", "code", "none", "id_token"}', -- response_types
'{"https://oidcdebugger.com/debug", "https://openidconnect.net/callback"}', -- redirect_uris
'read write' -- scope
);
Create .env file:
PSQL_DSN=postgresql+asyncpg://user@localhost/database
DEBUG=True
JWT_PRIVATE_KEY=''
JWT_PUBLIC_KEY=''
Run server
python -m aioauth_fastapi