Keycloak Angular Example (Integration with an Angular SPA)

preview_player
Показать описание
Demonstrate on how to secure an angular single page application with Keycloak. OpenID Connect protocol is used for this. keycloak-angular package is used to implement the solution.

Authorization Code with PKCE flow is recommended for this kind of integrations.

npm packages:

Рекомендации по теме
Комментарии
Автор

hello do this login but i have problem to logout --> this error We are sorry...
Invalid parameter: redirect_uri . what can i do?

GeorgiosRouvas
Автор

i hope you can make it for react.i having lots of trouble to set it up.Will appreciate it if you can make a video on it.

nasxmo
Автор

HELP !!! when i run this project i see this message:
[DEP0111] DeprecationWarning: Access to is
deprecated. (Use `node --trace-deprecation ...` to show where the warning was created)

EmaxSays
Автор

Why did you enable implicit Flow enabled and you used standard in angular?

sasasisi
Автор

How to avoid the redirection into keycloak login page and just do a login on the background?

BharathBattula
Автор

I have the following error in chrome (something similar on Firefox as well):
"Not allowed to launch 'localhost:(...)' because a user gesture is required."

Preventing the "redirect" to keycloak login page from my angular app, any idea on how to fix it? Did someone else encounter the same issue?

Pyroptere
Автор

HI there! I'm getting the infinite loop problem after login, I've tried multiple solutions. Do you know something about this error and how to solve it?

GPMrks
Автор

Thanks for the video. How to handle session expiry. Once session is expired, I need to redirect to login page.

harsank
Автор

I cloned your repo and added a component with routing. I noticed when you navigate between pages/components, even when logged in, you always get quickly redirected to Keycloak (which you can check in network tab) and back to the Angular app. Is this normal behaviour or did I configure something wrong? I thought it would persist the login info for as long as the token is valid, but it seems to re-authenticate on every route switch

RoboticRx
Автор

How to exclude some routes from authentication?

rajeshwaripalanisamy
Автор

hello i liked the video sop much can u tell me if it is possible t integrate angular with a confidential client cause i've been trying the last week to achieve it and its not passible can pleas answer me or do a video about it if it is possible

yassinebadr