Newer
Older
Installation should be done via the helm using the helmchart contained in `./helmchart`.
Make sure to edit the values in `./helmchart/single-sign-on/values.yaml` according to your needs
For Details on how to configure the chart. Refer to `./helmchart/single-sign-on/README.md`
To use OpenID Connect or oAuth you need to set up an oAuth Client for every application that
needs to authenticate it's users. You can leverage the Hydra Admin API to create oAuth clients.
As a starting point, you can have a look at the script provided in `test/`.
To use SSO configure your oAuth client (for example netxtcloud) and create a new oAuth client object.
Refer to `https://sso.oas.example.net/.well-known/openid-configuration` as a reference on how to configure your openID Connect or oAuth client
# Testing
In order to run tests locally, you can start the environment via `docker-compose`.
To make the test setup work on your machine, install docker and docker-compose and edit
the `docker-compose.yml` file. Make sure all of the URLS listed in the environment of the hydra
service are accessible by your agent (usually your browser) and the application that will act
as an oAuth / OpenID Connect client (for example nextcloud).
Notice that you need to create users and applications before being able to login.
You can use the scripts located in `user-panel/utils` to create users for testing.
If you don't have a test application yourself, you can use the small OpeinID Connect
test application located at `test/login_logout/`
Also refer to `.gitlab-ci.yaml` to get an idea on how to run all of the tests that are
contained in this repository.