Skip to content
Snippets Groups Projects
Commit a2c5e961 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

No https for the create_oidc_client commands

parent e2db3611
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
AURA Steering: Program Scheduler AURA Steering: Program Scheduler
================================ ================================
AURA Steering is the scheduling module, where the actual program schedule of AURA Steering is the scheduling module, where the actual program schedule of the
the whole station is stored as well as all infos regarding single shows and whole station is stored as well as all infos regarding single shows and
emissions. emissions.
It also acts as an OpenID Connect provider for `dashboard` and `tank`. It also acts as an OpenID Connect provider for `dashboard` and `tank`.
...@@ -29,23 +29,26 @@ And load the fixtures:: ...@@ -29,23 +29,26 @@ And load the fixtures::
$ docker compose run django ./manage.py loaddata fixtures/*/*.json $ docker compose run django ./manage.py loaddata fixtures/*/*.json
Or, if you prefer, you can just create a super user after setting up the database:: Or, if you prefer, you can just create a super user after setting up the
database::
$ docker compose run django python manage.py createsuperuser $ docker compose run django python manage.py createsuperuser
Then, you can create a RSA Key and the clients for `dashboard` and `tank`:: Then, you can create a RSA Key and the clients for `dashboard` and `tank`::
$ docker compose run django ./manage.py creatersakey $ docker compose run django ./manage.py creatersakey
$ 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 dashboard public -r "id_token token" -u http://localhost:8080/oidc_callback.html -u http://localhost:8080/oidc_callback_silentRenew.html -p http://localhost:8080/
$ docker compose run django ./manage.py create_oidc_client tank confidential -r "code" -u https://localhost:8040/auth/oidc/callback $ docker compose run django ./manage.py create_oidc_client tank confidential -r "code" -u http://localhost:8040/auth/oidc/callback
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). If you prefer to use the admin interface for this, refer to the [OpenID Client
Configuration](https://gitlab.servus.at/aura/meta/-/blob/master/docs/administration/oidc-client-config.md#registering-oidc-clients-via-the-admin-interface).
Finally, you can start the services:: Finally, you can start the services::
$ docker compose up $ docker compose up
You can then login into the admin interface at http://localhost:8000/admin or use the API at http://localhost:8000/api/v1/ You can then login into the admin interface at http://localhost:8000/admin or
use the API at http://localhost:8000/api/v1/
Testing Testing
------- -------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment