Skip to content

Commit

Permalink
documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
grzanka committed Oct 17, 2023
1 parent 2eae46e commit 596f667
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/authentication.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Authentication

Yaptide platform can authenticate users using two methods:

* using own database of users. In that case submission of simulation is limited only to a local pool of workers.
* using Keycloak server. Such server is provided for example in PLGrid infrastructure. This solution offers a possibility to submit simulations to an HPC cluster.


Configuration of keycloak is based on following environmental variables:

* `KEYCLOAK_BASE_URL` - URL of the keycloak server, for example `'https://sso.pre.plgrid.pl'`
* `KEYCLOAK_REALM` - name of the realm, for example `PLGrid`
* `KEYCLOAK_CLIENT_ID` - name of the client, for example `yaptide`

These variables needs to be provided to the docker compose files via the `.env` file, both for backend and the frontend parts.
The backend propagates this variable to the `yaptide_flask` container, to be able to verify keycloak tokens.
The frontend needs to know the URL of the keycloak server, so it can redirect the user to the login page.
To properly setup these variables in case of ansible deployment, please use `plgrid_vars.yml` as an example.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ nav:
- Overview: index.md

Check warning on line 19 in mkdocs.yml

View workflow job for this annotation

GitHub Actions / linter (3.9)

yaml[indentation]

Wrong indentation: expected 4 but found 2

Check warning on line 19 in mkdocs.yml

View workflow job for this annotation

GitHub Actions / linter (3.10)

yaml[indentation]

Wrong indentation: expected 4 but found 2

Check warning on line 19 in mkdocs.yml

View workflow job for this annotation

GitHub Actions / linter (3.11)

yaml[indentation]

Wrong indentation: expected 4 but found 2
- Maintenance: maintenance.md
- Simulators: simulators.md
- Authentication: authentication.md
- Cloud deploy: ansible.md

plugins:
Expand Down

0 comments on commit 596f667

Please sign in to comment.