Page 2 of 3

Oauth2 redirect_uri

Posted: Thu Feb 20, 2014 9:10 am
by Kateryna Grynko

Hi Aric,

And is page SF_Start opened then?


Oauth2 redirect_uri

Posted: Thu Feb 20, 2014 4:33 pm
by AricCaley

yes.


Oauth2 redirect_uri

Posted: Fri Feb 21, 2014 6:48 am
by Kateryna Grynko

Hi Aric,

How can I get to this page If I set it as startScreen it runs properly.


Oauth2 redirect_uri

Posted: Fri Feb 21, 2014 5:22 pm
by AricCaley

In my app, it goes to SF_Start as the start page, and then it redirects (in my case, to dropbox's api), and then when it tries to redirect back to my app the event listener does not catch the redirect so instead it redirects back to the appery login page.

I can share my app with you so you can see?


Oauth2 redirect_uri

Posted: Mon Feb 24, 2014 10:06 am
by Maryna Brodina

Hello!
1) Instead preencodeURI(redirect_url)/pre use preencodeURIComponent(redirect_url)/pre2) Invoke doLogin on Device ready event instead Load
3) parseUrlVars function is not defined


Oauth2 redirect_uri

Posted: Mon Feb 24, 2014 9:03 pm
by AricCaley

Thanks, looks like its working now.


Oauth2 redirect_uri

Posted: Fri Mar 07, 2014 11:47 pm
by bahar.wadia

Sorry, I am new to OAuth2.

Are you saying, that I can use the Salesforece OAuth2 plugin to OAuth2 into any service that supports/requires OAuth2?

If yes, that would be awesome. More importantly, would it not make sense for Appery to provide it own OAuth2 module?


Oauth2 redirect_uri

Posted: Sat Mar 08, 2014 9:58 pm
by bahar.wadia

I have been following this thread along with others with similar discussion. I am sorry, but your suggestions above do not work.

To make things simple. I started with a blank project. Loaded OAuth2 for Salesfores. Changed some basic parameters (this is trivial) and am attempting to cleanly flow the user through an OAuth2 process.

Here is the problem. Unfortunately OAuth2 requires login/approval on the provider side, which requires some browser capability. Logically the use of InAppBorwser makes sense, but it dose not work as expected. For starters,

1) the addEventListener does not work.

2) redirect uri/urls go to the Appery website and ask for login.

3) if anything goes wrong in the process, it is impossible to go back to the app.

I can go on, but you get my point.

Can you please help?

Thanks is advance.


Oauth2 redirect_uri

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

I have been following this thread along with others with similar discussion. I am sorry, but your suggestions above do not work.

To make things simple. I started with a blank project. Loaded OAuth2 for Salesforce. Changed some basic parameters (this is trivial) and am attempting to cleanly flow the user through an OAuth2 process.

Here is the problem. Unfortunately OAuth2 requires login/approval on the provider side, which requires some browser capability. Logically the use of InAppBorwser makes sense, but it dose not work as expected. For starters,

1) the addEventListener does not work.

2) redirect uri/urls go to the Appery website and ask for login.

I can go on, but you get my point.

Can you please help?

Thanks is advance.


Oauth2 redirect_uri

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

We are sorry for delays. We passed this issue to our developers.
We'll update when we get more information.