bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

OAuth2 Implemetation

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!

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

OAuth2 Implemetation

Hello,

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

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

OAuth2 Implemetation

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!

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

OAuth2 Implemetation

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

OAuth2 Implemetation

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

OAuth2 Implemetation

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.

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

OAuth2 Implemetation

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!

Nikita
Posts: 0
Joined: Fri Feb 28, 2014 4:02 pm

OAuth2 Implemetation

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.

bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

OAuth2 Implemetation

Just shared it....

Looking forward to your help. Thx

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

OAuth2 Implemetation

Working on it at the moment.

Return to “Issues”