Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using OpenID on a PhoneGap platform

I am currently developing an application using PhoneGap. My application used OpenID to authenticate a user. After successfully authenticate a user, it should be return back to my application. I have used location.href to redirect the page to a local address (something like file:///var/applications/.../index.html for iOS app). However, it seems that PhoneGap cannot redirect a local page from remote site. Only a white screen was displayed. Is there any way for me to return back to my application after authentication?

Thanks

like image 739
Terris Avatar asked Nov 25 '25 21:11

Terris


1 Answers

I think you can use the childbrowser plugin for that.
Also you may be able to ajax call the openid login stuff using a webpage on your own server?

like image 142
Erik Avatar answered Nov 28 '25 10:11

Erik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!