In order to create an admin user (which you will need to login to the webinterface after the next step) run::
$ docker compose run django ./manage.py migrate
(python)$ python manage.py createsuperuser
And load the fixtures::
Running a web server
$ docker compose run django ./manage.py loaddata fixtures/*/*.json
--------------------
In development you should run::
Or, if you prefer, you can just create a super user after setting up the database::
(python)$ python manage.py runserver
$ docker compose run django python manage.py createsuperuser
Then, you can create a RSA Key and the clients for `dashboard` and `tank`::
After this you can open http://127.0.0.1:8000/admin in your browser and log in
$ docker compose run django ./manage.py creatersakey
with the credentials you have chosen in the ``createsuperuser`` command.
$ docker compose run django ./manage.py create_oidc_client dashboard public -r "id_token token" -u https://localhost:8080/oidc_callback.html -u https://localhost:8080/oidc_callback_silentRenew.html -p https://localhost:8080/
$ docker compose run django ./manage.py create_oidc_client tank confidential -r "code" -u https://localhost:8040/auth/oidc/callback
If you are using some placeholder credentials, make sure to change your password
If you prefer to use the admin interface for this, refer to the [OpenID ClientConfiguration](https://gitlab.servus.at/aura/meta/-/blob/master/docs/administration/oidc-client-config.md#registering-oidc-clients-via-the-admin-interface).
by visiting http://127.0.0.1:8000/admin/auth/user/1/password/
Configuring OpenID Connect clients
Finally, you can start the services::
----------------------------------
To make AuRa usable, you have to set up OpenID Connect (OIDC) clients for the
$ docker compose up
*dashboard* and *tank*, so they can make authenticated requests on behalf of
the user against the *steering* API.
To do so, you can either visit the Django admin interface and create an RSA key
You can then login into the admin interface at http://localhost:8000/admin or use the API at http://localhost:8000/api/v1/
as well as two clients, or do so programmatically by running::