How to configure keycloak in valtimo-frontend-libraries

Hi,
I’m trying to configure the enviroment in valtimo-frontend-libraries without success.
This is my piece of keycloak-config.prod.ts:
const keycloakConfigDev: KeycloakConfig = {
url: ‘http://localhost:8081/auth/’,
realm: ‘valtimo’,
clientId: ‘valtimo-console’,
};
This is my configuration in auth0-config.prod.ts
export const valtimoAuth0Options: ValtimoAuth0Options = {
clientId: ‘valtimo-console’,
domain: ‘http://localhost:8081’,
redirectUri: ‘http://localhost/keycloak/callback’,
responseType: ‘token id_token’,
scope: ‘openid profile’,
};

When I try to login in valtimo-fronted, the browser redirect at wrong page like this:

http://localhost:8081/authorize?client_id=valtimo-console&response_type=token%20id_token&redirect_uri=http%3A%2F%2Flocalhost%2Fkeycloak%2Fcallback&scope=openid%20profile&state=f6aYzLUiBdBIuARALBaMDCXSl9_rUb07&nonce=bN.-~_OAabCGtVC9~h9ypz_rzlaYrnq8&auth0Client=eyJuYW1lIjoiYXV0aDAuanMiLCJ2ZXJzaW9uIjoiOS4xOS4wIn0%3D

It’s a wrong URL and I get HTTP error 404 from keycloak

Can you help me?
Regards
Antonio

Hi Antonio,

Thank you for your message. We will look into this and get back at you as soon as possible.

Regards,
Ryan

Hy Ryan
I have solved it.
In my environment.prod.ts I have changed the following property:
authentication: authenticationKeycloak
Thanks
Antonio

Hi Antonio,

Great to hear that you could solve the issue yourself and also, thank you for letting us know what the exact issue was.

Have a great day!
Ryan

1 like