Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: PH Webserver & socket server auth Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
MrGibbage
Super User
Super User
Avatar

Joined: October 23 2006
Location: United States
Online Status: Offline
Posts: 513
Posted: May 01 2012 at 08:16 | IP Logged Quote MrGibbage

I am doing some testing with an android java client connecting to the PH webserver and I am seeing some
strange things. One, I cannot get the server to return any codes other than 200/OK (cookie authentication).
Even when I pass in the wrong UN/PW, I still get a 200/OK. I would have expected a 400 or 401 code. Right
now, the only way I know to test if a UN/PW pair is correct is to try and run a formula such as
ph_getversion() and check the response for "redirect". I think it would be very nice if there was a built in
"formula" that work on all PH systems to return whether or not the credentials were valid. Of course, it
couldn't be a formula be cause it would require valid credentials to run in the first place, so maybe a
standard url that can be used for authentication checking? Even with the test formula I am using,
ph_getversion(), I don't know what the valid response should be (2.1.4 for now), but I do know what it
SHOULDN'T be.
I haven't started http regular authentication testing yet, nor the socket server authentication, but I would
also hope for similar features there.

__________________
Skip
Back to Top View MrGibbage's Profile Search for other posts by MrGibbage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum