Guus Vorsterman
Posts: 0
Joined: Thu Jun 18, 2015 10:05 am

Testing Twitter login in browser

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

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

Testing Twitter login in browser

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?

Guus Vorsterman
Posts: 0
Joined: Thu Jun 18, 2015 10:05 am

Testing Twitter login in browser

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

Guus Vorsterman
Posts: 0
Joined: Thu Jun 18, 2015 10:05 am

Testing Twitter login in browser

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.

Return to “Issues”