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

Need help in implementing the package for web and mobile using cordova #44

Open
bharathidatla opened this issue Jun 24, 2024 · 1 comment

Comments

@bharathidatla
Copy link

We are using oidc-client-js latest version; it is working well in the web for signin and signout, but coming to Cordova Mobile, signinpopup is working as expected, but signout is not working after signing out; it is redirecting to the post-logout uri of the web in the app instead of the app. We tried to install the oidc-client-ts, but it has other challenges, like file downloading and photo capture. When we were using the oidc-client-ts, those were not working, so we want to try your package that supports both web and mobile Cordova. Can you please suggest the steps for migrating it and how it works for bothWe used signoutredirectcallback. If I am using signoutpopup, it is not working.

@Badisi
Copy link
Owner

Badisi commented Jun 26, 2024

Hello @bharathidatla,

It's true that this library still lacks a lot of documentation.. sorry about that.
Have you looked at #30 which might contain some useful info ?

Also, you shouldn't be using popup mode for mobile.
But don't worry, if you use this library, it will enforce all the best practices (so on desktop you will have either redirect or popup, and on mobile it will be browser-tab).

Regarding file download and photo capture I'm sorry but I don't see how it relates to oidc-client-ts.
Because those have nothing in common..

One last thing, it might be time to migrate to Capacitor, cordova has been deprecated for years now 😉.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants