- Follow the steps to getting Keycloak running locally with Docker here while accounting for the exceptions below:
-
Be sure to keep the docker image running on port 8080. Killing the docker image will result in all configurations lost.
-
When creating the user
- set the username to
myuser
- set the password to
testuser
and turntemporary
tooff
.
- set the username to
-
When creating the client
- set the client id to
myclient
- turn
Client authentication
toon
- set the Root URL / Admin URL on the client to
http://localhost:8080
- set valid redirect URIs to
*
- set Web Origins to
*
Save
and go toCredentials
of the Client and copy theClient secret
- Paste the
Client secret
in the.env
file in the project
- set the client id to
-
Inside the project directory, run
yarn
. -
Spin up the dev server by running
yarn dev
-
In another terminal, run
yarn cy:open
and execute theapi-request.cy.js
test. -
The frontend will receive the string lengths of each cookie the API received and shows them on the page.
-
Notice the cookies received by the API and returned back to the test page are all doubled. The bottom line
all:
should display a value below600
.