Forum
Community Login
Infusionsoft Community
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Authenticate User API call (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Authenticate User API call
#5377
j_ten_man (User)
Junior Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Authenticate User API call 6 Months, 3 Weeks ago Karma: 0  
Can someone explain to me the point of the Data.authenticateUser API call? Do I need to call it to make other API calls or open additional functionality?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5391
miked (User)
Infusionite
Posts: 197
graphgraph
User Offline Click here to see the profile of this user
Re:Authenticate User API call 6 Months, 3 Weeks ago Karma: 12  
It is there for 3rd party integrations (such as the Outlook Plugin) to use. They use it in conjunction with another method that generates a temporary API Key for them to use to make the Plugin work. They cannot get a temporary Key to your app's API without valid username / password credentials.

You don't need to call it if you already have the API Key.

Hope this clears things up a bit.
 
Report to moderator   Logged Logged  
 
"Marketing" Team Lead
Software Engineer II
  The administrator has disabled public write access.
#5797
GFox (User)
CMAC
Posts: 56
graphgraph
User Offline Click here to see the profile of this user
Re:Authenticate User API call 5 Months, 3 Weeks ago Karma: 7  
Good thing it isn't needed because it doesn't seem to work. I tried it for kicks (for possible future use) - returns a failed login error every time.
 
Report to moderator   Logged Logged  
 
Greg Fox, Infusionsoft CMAC and API Developer
Chief Software Architect
DMA Technology gfox@dmatechnology.com
  The administrator has disabled public write access.
#5825
miked (User)
Infusionite
Posts: 197
graphgraph
User Offline Click here to see the profile of this user
Re:Authenticate User API call 5 Months, 3 Weeks ago Karma: 12  
The method works. The Outlook Plugin relies heavily upon it and I've personally tested it with success.

Be sure to MD5 Hash the password or it will return a failed login every time. You can't just pass it straight across.
 
Report to moderator   Logged Logged  
 
"Marketing" Team Lead
Software Engineer II
  The administrator has disabled public write access.
#6485
john.bowers (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:Authenticate User API call 4 Months, 1 Week ago Karma: 0  
Make sure you send the md5 has in lower case. The method doesn't convert the input to lowercase before doing a string compare (at least the XML-RPC doesn't).
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#7563
sfmy (User)
Junior Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Authenticate User API call 1 Month, 4 Weeks ago Karma: 0  
HI,

I'm bumping up the thread to see if anyone could benefit the same problem i went through.

I also couldn't get through the authenticateUser method even after md5ing n lower case.

Here is a long code example :

$pass = "npassword";
$pass2 = md5($pass);
$pass3 = strtolower($pass3);
$uid = $myApp->authenticateUser("sfmy",$pass3);

The authentication always fail.

What could be wrong here?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#7573
techportal (User)
CMAC
Posts: 214
graphgraph
User Offline Click here to see the profile of this user
Re:Authenticate User API call 1 Month, 4 Weeks ago Karma: 6  
At first glance, it would seem to me that:

Code: :

 $pass3 strtolower($pass3);



should really be:

Code: :

 $pass3 strtolower($pass2);



Best,
Bob
 
Report to moderator   Logged Logged  
 
Bob Keen
https://www.InfusionWP.com - TurboCharge InfusionSoft with WordPress Membership Sites!

http://www.infusionsoftkunaki.com - Full Kunaki/Infusionsoft Gateway Solution

http://infusionsoft1clickupsell.com/ - Don't miss a launch and don't lose a single sale
  The administrator has disabled public write access.
#7577
sfmy (User)
Junior Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Authenticate User API call 1 Month, 4 Weeks ago Karma: 0  
Ops, sorry bout that, but its just a typo.

It really won't work. Could u verify on this?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#7613
sfmy (User)
Junior Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Authenticate User API call 1 Month, 3 Weeks ago Karma: 0  
Somebody got a word on this?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#7619
nonickch (User)
Senior Boarder
Posts: 33
graphgraph
User Offline Click here to see the profile of this user
Re:Authenticate User API call 1 Month, 3 Weeks ago Karma: 1  
um, haven't tried this, but given the code presented and the pass2/3 correction:

Shouldn't strtolower be before md5?
strtolower(md5('pAssword')) is totally different than md5(strtolower('pAssword'))

Anyway, I'd give it a try, but I really don't want to lock my accout out for 30 mins
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop