keycloak-scim/js/apps/keycloak-server
dependabot[bot] 571395db93
Bump @octokit/rest from 20.1.1 to 21.0.0 (#30639)
Bumps [@octokit/rest](https://github.com/octokit/rest.js) from 20.1.1 to 21.0.0.
- [Release notes](https://github.com/octokit/rest.js/releases)
- [Commits](https://github.com/octokit/rest.js/compare/v20.1.1...v21.0.0)

---
updated-dependencies:
- dependency-name: "@octokit/rest"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-21 09:18:36 +02:00
..
scripts Run the Vite dev server through the Keycloak server (#27311) 2024-06-12 11:55:14 +02:00
.gitignore Move all JavaScript projects into single PNPM workspace (#24537) 2024-04-02 16:14:58 +02:00
package.json Bump @octokit/rest from 20.1.1 to 21.0.0 (#30639) 2024-06-21 09:18:36 +02:00
README.md Run the Vite dev server through the Keycloak server (#27311) 2024-06-12 11:55:14 +02:00

Keycloak Server

This app allows you to run a local development version of the Keycloak server.

Running the Keycloak server

First, ensure that all dependencies are installed locally using PNPM by running:

pnpm install

After the dependencies are installed we can start the Keycloak server by running the following command:

pnpm start

If you want to run the server against a local development Vite server, you'll have to pass the --admin-dev or --account-dev flag:

pnpm start --admin-dev
pnpm start --account-dev

The above commands will download the Nightly version of the Keycloak server and run it locally on port 8080. If a previously downloaded version was found in the server/ directory then that one will be used instead. If you want to download the latest Nightly version you can remove the server directory before running the command to start the server:

pnpm delete-server

Or if you just want to clear the data so you can start fresh without downloading the server again:

pnpm delete-data

If you want to run with a local Quarkus distribution of Keycloak for development purposes, you can do so by running this command instead:

pnpm start --local

All other arguments will be passed through to the underlying Keycloak server.

In order for the development version of the Admin UI to work you will have to import a custom client to the Keycloak server. This is only required during development as the development server for the Admin UI runs on a different port. This client will be imported automatically under the name security-admin-console-v2 when the Keycloak server starts.

This client only allows redirects from/to "localhost:8080" so be sure either modify the client json in ./scripts or only attempt to authenticate and redirect from that address