Page 1 of 2

OAuth2 Implemetation

Posted: Sat Mar 08, 2014 4:56 am
by bahar.wadia

Does anyone have an elegant implementation example for OAuth2?

I am implementing OAuth2 for Dwolla using the bits and pieces I have found in this forum. The implementation works, somewhat, but is very fragile.

For example:

1) the InAppBrowser is a "oneway" street, if anything goes wrong, there is no way to go back.

2) the redirect uri works in the Test browser, but does not work on the actual device. It goes to Appery.io and asks for a login.

Please help!


OAuth2 Implemetation

Posted: Sat Mar 08, 2014 8:08 am
by Illya Stepanov

Hello,

About redirecting - have you tried this solution: https://getsatisfaction.com/apperyio/...


OAuth2 Implemetation

Posted: Sat Mar 08, 2014 8:50 pm
by bahar.wadia

I just tried it. It makes logical sense to me. However, I am having two problems.

1) In the test browser, InAppBrowser opens a new window, but the eventListner never fires.

and

2) trying this on a iPhone does not open an InAppBrowser, at all.

Help!


OAuth2 Implemetation

Posted: Mon Mar 10, 2014 2:31 am
by bahar.wadia

This question has not been answered. I am not sure why you would mark it as answered.


OAuth2 Implemetation

Posted: Mon Mar 10, 2014 2:40 am
by Illya Stepanov

We are working on it. We'll update when we will have more information.


OAuth2 Implemetation

Posted: Tue Mar 11, 2014 7:00 am
by Maryna Brodina

Hello!
"In the test browser, InAppBrowser opens a new window, but the eventListner never fires" - yes, there is no InAppBrowser in browser. In browser new tab is opened and you are redirected to a site. This is how it works. In app there is no need in redirect, that's why redirect is tracked in InAppBrowser window. When redirect is executed, control is given back to app and InAppBrowser is closed.
"trying this on a iPhone does not open an InAppBrowser, at all" - looks like you've done something wrong, please check. Also note that InAppBrowser can be open after device ready event only.


OAuth2 Implemetation

Posted: Tue Mar 11, 2014 2:24 pm
by bahar.wadia

Thanks for your reply. The InAppBrowser works now, but the eventListener does not fire.

I am testing all this on the actual device.

I can share the project if you'd like.

Help!


OAuth2 Implemetation

Posted: Tue Mar 11, 2014 5:57 pm
by Nikita

Hello,

Please share your project with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a, specify app name and steps of reproducing the problem.


OAuth2 Implemetation

Posted: Wed Mar 12, 2014 3:10 am
by bahar.wadia

Just shared it....

Looking forward to your help. Thx


OAuth2 Implemetation

Posted: Thu Mar 13, 2014 6:29 am
by Maryna Brodina

Working on it at the moment.