Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #739

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,6 @@ To connect to another instance of Onlineweb4 than the production environment, yo
export OW4_ADDRESS='http://<ip-address>:<port>'
```

To enable login/authentication through our backend, you'll need a client ID locally. You can add a client in the OW4 Django admin site. Under the app "OpenID Connect Provider", add a new client to "Clients" with the following parameters:

- **Name**: doesn't matter
- **Client Type**: Public
- **Response types**: id_token token (Implicit Flow)
- **Redirect URIs**: http://localhost:8080/authentication/callback
- **JWT Algorithm**: RS256 (default)

After you save the client, it will have generated a client ID, which you will use in the following environment variables:

```bash
export OW4_SSO_CLIENT_ID='<your-client-id>'
```

Finally, you'll want to generate an RSA key for authentication. The following command in [**OW4**](https://github.com/dotkom/onlineweb4) will handle that:

```bash
docker-compose run --rm django python manage.py creatersakey
```

You should now be able to log in to OWF using OW4!

## Linting

Builds will fail if our requirements for code style is not met. To ensure that you adhere to our code guidelines, we recommend you run linting tools locally before pushing your code. Running `npm run lint` and `npm run lint-less` will run our lints. Look to package.json for more specific commands.
Expand Down
Loading