From c9b9e9f678ca9544bc52aa2c94196cf362ff140e Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 29 Nov 2016 11:30:24 -0200 Subject: [PATCH] Section about realm-public-key --- topics/oidc/nodejs-adapter.adoc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/topics/oidc/nodejs-adapter.adoc b/topics/oidc/nodejs-adapter.adoc index 2bac68cf02..2d84e848d4 100644 --- a/topics/oidc/nodejs-adapter.adoc +++ b/topics/oidc/nodejs-adapter.adoc @@ -12,6 +12,12 @@ To use the Node.js adapter, first you must create a client for your application Once the client is created click on the `Installation` tab select `{{book.project.name}} OIDC JSON` for `Format Option` then click on `Download`. The downloaded `keycloak.json` file should be at the root folder of your project. +==== Known issue + +Node.js adapter requires `realm-public-key` attribute and does not retrieve it automatically from {{book.project.name}}. Otherwise, your Node.js app won't start. + +In order to prevent any issues, go to your `Realm Settings` and `Keys`, copy the `Public Key` to your keycloak.json file adding `realm-public-key` attribute like the snippet below: + [source,json] ---- { @@ -26,8 +32,6 @@ Once the client is created click on the `Installation` tab select `{{book.projec } ---- -Please notice that `realm-public-key` attribute is mandatory. Otherwise, your Node.js app won't start. - ==== Installation Assuming you've already installed https://nodejs.org[Node.js], create a folder for your application: