Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline functionality for PWAs #227

Open
xCryzed opened this issue Mar 3, 2020 · 8 comments
Open

Offline functionality for PWAs #227

xCryzed opened this issue Mar 3, 2020 · 8 comments
Labels
enhancement This issue/PR is an enhancement or new feature.

Comments

@xCryzed
Copy link

xCryzed commented Mar 3, 2020

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?

@stephane-dereppe
Copy link

@xCryzed
Copy link
Author

xCryzed commented Mar 4, 2020

Unfortunately offline tokens don't solve our problem. We still get redirected. We need a way to deactivate the keycloak when we're offline.

@stephane-dereppe
Copy link

Then I'll create a new issue for that because I need it.

@Wlada
Copy link

Wlada commented Mar 12, 2020

@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

@jonkoops jonkoops added Priority: High enhancement This issue/PR is an enhancement or new feature. labels Mar 17, 2020
@jonkoops jonkoops self-assigned this Mar 17, 2020
@jonkoops
Copy link
Collaborator

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.

@dome4
Copy link

dome4 commented Mar 28, 2020

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 :)

@fstouten
Copy link

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?

@stephane-dereppe
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue/PR is an enhancement or new feature.
Projects
None yet
Development

No branches or pull requests

6 participants