Open ghost opened 2 years ago
After some digging - angular-oauth2-oidc provides a way to open keycloak's login page into a popup - docs.
The steps should be:
silentRefreshRedirectUri
property(if added to assets should be something like http://localhost:4200/assets/silent-refresh.html)initLoginFlowInPopup
method from angular-oauth2-oidcAdditional notes:
initLoginFlowInPopup
method opens a popup, that is not part of angular framework.initLoginFlowInPopup
can receive a settings object, with which a heigh, width and window ref can be set.initLoginFlowInPopup
returns a promise. Finally on the promise can be used to catch closing of the window via the X button.Small example POC
Multiple stories have popped up, that require a popup - #146 , #18 , #40 . A research how to achieve that is a requirement: