Page 1 of 1

Testing Twitter login in browser

Posted: Thu Mar 10, 2016 7:24 am
by Guus Vorsterman

I have followed the tutorial on https://devcenter.appery.io/tutorials...

I want to test this in the browser. I can login usingTwitter.
Twitter redirects back to loginPage.html and a row in the Users collection is created with my Twitter id in the auth column.

So can I assume the login and authorization is correct (?)

However the loginPage is shown again and there is no navigation to the startScreen page.

In the console log I checked the status and:

code
console.log("status=" + Apperyio.User.getStatus()); // ==> shows 'status=unauthorized'
/code

Am I missing something?

cheers,
Guus


Testing Twitter login in browser

Posted: Sun Mar 13, 2016 2:48 pm
by Illya Stepanov

Hi Guus,

We will check this tutorial additionally, thank you for letting us know. Could you also please clarify do you testing your app without mobile frame in the browser?


Testing Twitter login in browser

Posted: Sun Mar 13, 2016 5:12 pm
by Guus Vorsterman

Hi,
Testing without mobile frame.
Mobile frame gives error:

code
Load denied by X-Frame-Options: https:&#47;&#47;api&#46;twitter&#46;com/oauth/authenticate?oauth_token=xxx does not permit cross-origin framing&#46; <unknown>
Error: Permission denied to access property "nodeType"
/code

If you need I have shared the app. appid = be506884-7948-4272-bf78-2416f3426064

I'm going to delete it tomorrow as I want to try out the Angular/Ionic framework.

regards
Guus


Testing Twitter login in browser

Posted: Mon Mar 14, 2016 12:51 pm
by Guus Vorsterman

Hi,

I created a test using the Ionic login template app which has a Twitter login example that is working.
Works on iPhone using the Apperio IO tester as well.

In this example I see the login status changing from 'inProgress' to 'authorized'

So you can ignore this issue.