Damien Snoeck

Results 21 comments of Damien Snoeck

Hello @tharindukw96, `extend` option has been added in version 12

Hello @sroutier, Thank you very much for the detailed response. Unfortunately, I needed a breadcrumb with more details. So, if I find the time to do it, I will submit...

What about doing the keycloak.init() before bootstraping Angular, as shown here: https://symbiotics.co.za/integrating-keycloak-with-an-angular-4-web-application-part-5/ ? You could add the realm in an environment variable. Doing that way would also let you bootstrap...

I found an other approach to support multi-tenant. I'm adding the tenant in the url www.my-application.com/tenant-name Then, extract it using a regex. The regex is defined in my environment variable,...

@IAmEilminx thanks for your comment. In the meantime, I have extracted my code it into an Angular Library to be reused in several webapps. Unfortunately, doing that I was not...

@kasibkismath I see one option: The options to be passed to the login method of keycloak-angular service (see: https://github.com/mauriciovigolo/keycloak-angular/blob/master/projects/keycloak-angular/src/lib/core/services/keycloak.service.ts#L256) contains a redirectUri. You could use that to define a URL...

@kasibkismath, please re-read carfully my answer. I was suggesting to always redirect to the same url after login, like /route-user. The component under this url could fetch the user attribute...

@IAmEilminx, what do you mean by session here: > Is your approach working if you need to connect with another realm within a same session ? Do you mean an...

@kasibkismath, excuse me. It is me that didn't read carefully your answer ! Thanks for sharing your solution !

Hi @LekhaPai, `init()`method return a `Promise`, so no token. But you can use the `getToken()` if you need the token. See source code: https://github.com/mauriciovigolo/keycloak-angular/blob/master/projects/keycloak-angular/src/lib/core/services/keycloak.service.ts#L494 Please provide more informations about what...