keycloak-angular
keycloak-angular copied to clipboard
Offline functionality for PWAs
Bug Report or Feature Request (mark with an x
)
- [ ] bug report -> please search for issues before submitting
- [x ] feature request
Desired functionality.
It would be nice to use keycloak-angular also offline for our PWA. We have the problem that we got redirected instantly when we're losing connection and refresh the page. Is there a good solution yet?
Do you mean such features?
https://www.keycloak.org/docs/latest/server_admin/index.html#_offline-access
Unfortunately offline tokens don't solve our problem. We still get redirected. We need a way to deactivate the keycloak when we're offline.
Then I'll create a new issue for that because I need it.
@xCryzed can it work with Silent SSO? With silent SSO you won't have redirects.
Do you have any idea about how to implement offline feature with offline_token?
Thanks
Silent SSO will still prevent any redirects, but might still break in some other fashion if no network is available. @xCryzed if you can please try out Silent SSO and share your experiences.
I'm struggling with the same problem at the moment and didn't find a solution so far. But I found a Vue.js project that also uses keycloak-js with offline support: https://github.com/dukecon/dukecon_pwa/blob/0a2b0c08feed8e383b29f88eca65b55113d5c74a/src/DukeconKeycloak.js Maybe that is helpful for somebody and we manage to find an angular solution :)
hi all,
Did someone find a solution as how to make keycloak-angular work with PWA? Did the post of dome4 using the keycloak adapter directly help?
Did someone find a solution as how to make keycloak-angular work with PWA? Did the post of dome4 using the keycloak adapter directly help?
Not as I know. From previous post. I understand that offline tokens don't do the job. I wonder how native app handle that? You don't have to login again and again on those apps...