Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikskog authored Sep 5, 2024
1 parent 5b38a07 commit 66770ca
Showing 1 changed file with 0 additions and 22 deletions.
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

0 comments on commit 66770ca

Please sign in to comment.