An example is lacking about the configuration of a jsonwebtoken service and parameters therein, e.g. about key formatting: PEM, PPK, newline removal, "----- BEGIN SSH KEY -----" header removal or not, etc. This is not necessarily trivial, for example using fastify the defaults need to be overridden:
with keys encoded in the .env file in a oneliner form: MY_PUBLICKEY=$'-----BEGIN PUBLIC KEY-----\nMIIBI...
I keep getting A request for a new identity token was made using the identityTokenExpired event but no valid token was returned by a subscriber. error, without any further information. My token seems to correctly encode, it decodes back as:
With an error message like above I cannot debug further.
I do not see why in the web chat security example event.identityToken = 'YOUR NEW JWT' is used, while a method instance.updateIdentityToken(newtoken); exists.
After consciously following the directions in https://cloud.ibm.com/docs/assistant?topic=assistant-web-chat-security#web-chat-security-task , I still cannot seem to make things work.
An example is lacking about the configuration of a jsonwebtoken service and parameters therein, e.g. about key formatting: PEM, PPK, newline removal, "----- BEGIN SSH KEY -----" header removal or not, etc. This is not necessarily trivial, for example using fastify the defaults need to be overridden:
with keys encoded in the .env file in a oneliner form:
MY_PUBLICKEY=$'-----BEGIN PUBLIC KEY-----\nMIIBI...
I keep getting
A request for a new identity token was made using the identityTokenExpired event but no valid token was returned by a subscriber.
error, without any further information. My token seems to correctly encode, it decodes back as:With an error message like above I cannot debug further.
I do not see why in the web chat security example
event.identityToken = 'YOUR NEW JWT'
is used, while a methodinstance.updateIdentityToken(newtoken);
exists.All help clearing this out is appreciated!