Login failed in uni...
 
Notifications
Clear all

Login failed in unity editor after same login used on iphone device

6 Posts
2 Users
0 Reactions
658 Views
(@megaman)
Posts: 34
Trusted Member
Topic starter
 

Situation: App works fine can login and use combu just fine in standalone and unity editor, then i use  iphone ... doing  tests, login logout login again... etc   the problem is when if i try to login via unity editor after ios got "login failed: Unauthorized request". Combu admin says that user is online... If i try to login via iphone again its works!  Looks like problem appears after ios login... Appreciate any advise.

 
Posted : 28/08/2015 6:38 am
(@megaman)
Posts: 34
Trusted Member
Topic starter
 

If i set SignatureTimestamp to 0 manually via phpAdmin it resets and can login again, once use iphone login it make authorization from unity editor error again....

 
Posted : 28/08/2015 3:53 pm
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

It's probably SignatureTimestamp that invalidates your request, it's sent in every request and is updated in the table (though it's System.DateTime.Ticks so it depends on the system platform you login with, for example a difference in date/time between two platforms may cause your issue).

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 28/08/2015 4:50 pm
(@megaman)
Posts: 34
Trusted Member
Topic starter
 

Skared Creations said
It's probably SignatureTimestamp that invalidates your request, it's sent in every request and is updated in the table (though it's System.DateTime.Ticks so it depends on the system platform you login with, for example a difference in date/time between two platforms may cause your issue).

 So my question how importan that SignatureTimestamp security validation? and what if and how can i disable it for my mobile project. If it possible at all? its not a bproblem in this case, just want to make my debug/test time make easyier

 
Posted : 28/08/2015 4:55 pm
(@skaredcreations)
Posts: 806
Prominent Member Admin
 

For debug only you could disable the security check at line 63 of /lib/api.php just set the define SECURITY_ENABLED to FALSE.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 28/08/2015 5:04 pm
(@megaman)
Posts: 34
Trusted Member
Topic starter
 

Skared Creations said
For debug only you could disable the security check at line 63 of /lib/api.php just set the define SECURITY_ENABLED to FALSE.

Thank you very much.

 
Posted : 28/08/2015 5:12 pm
Share: