Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 972 Bytes

01.connecting_to_the_api.md

File metadata and controls

26 lines (16 loc) · 972 Bytes

Connecting to the API

Local development

The Docker Compose file provides Dex as Identity Provider.

Start Dex with the following command:

docker-compose up -d dex

The data of Dex is persisted on a named volume. The following user is created:

Request an access token through the following URL: http://localhost:5556/auth?response_type=id_token&scope=openid+email+profile&client_id=signals&redirect_uri=http://localhost:3001/manage/incidents&nonce=random-nonce

After login is completed, copy access_token from the URL you are redirected to. You can use this token to make calls to the API.

Make sure you assign superuser permissions to the default user with:

docker-compose run --rm api python manage.py createsuperuser --username signals.admin@example.com --email signals.admin@example.com