[libRETS-users] UserAgent Authentication

161 views
Skip to first unread message

Steve Snyder

unread,
Jun 21, 2012, 2:27:53 PM6/21/12
to 'libret...@crt.realtors.org'
I would like to know if I am using the right VB.NET code (copied below) to log into a RETS server using UserAgent Authentication. 
 
I am successfully using libRETS VB.NET with other servers, but this is my first experience adding this additional login component.
 
Currently, I am receive a message that I am "not logged in" with the error pointing to the last line of code (Dim response as ....).

Dim session As New librets.RetsSession("http://rets172lax.raprets.com:6103/Fortmyers/fmyr/login.aspx")
session.SetUserAgentAuthType(librets.UserAgentAuthType.USER_AGENT_AUTH_RETS_1_7)
session.SetUserAgentPassword("xxxxxxxxxxx")
session.Login("xxxxxxx", "xxxxxxx")
Dim response As librets.LoginResponse = session.GetLoginResponse()
 
Steve Snyder

Hunter Kirk

unread,
Jun 21, 2012, 5:55:18 PM6/21/12
to For discussion and help for and by the users of the libRETS C++ library

Everything looks legit to me, I have to use this type of authentication with Marketlinx but their flavor requires the Interealty auth type.

 

Hunter Kirk

Bruce Wolven

unread,
Jun 21, 2012, 6:50:15 PM6/21/12
to For discussion and help for and by the users of the libRETS C++library
 
Steve,
 
I don't see where you are actually setting the UserAgent name that goes with the password in your example:
 
session.SetUserAgent("RetsClient/1.0");
session.SetUserAgentPassword("xxxxxxxxxxx")
 
Both are necessary for the authentication and the client and password are assigned/registered with the MLS.
 
I would assume that most RETS Servers would not want to connect with the default librets UserAgent string because the purpose is to be used as a second level authentication a client application.
 
Bruce


_______________________________________________
libRETS-users mailing list
libRET...@crt.realtors.org
http://mail.crt.realtors.org/mailman/listinfo/librets-users

Steve Snyder

unread,
Jun 21, 2012, 6:04:13 PM6/21/12
to hk...@lindsey.com, For discussion and help for and by the users of the libRETS C++library
FYI ... Rapattoni just got back to me and it is working now.  They said I did not need the SetAgentUserPassword but did need the SetAgentUser and also recommended I set the RetsVersion to 1.7.2
 
Steve
 


From: librets-us...@crt.realtors.org [mailto:librets-us...@crt.realtors.org] On Behalf Of Hunter Kirk
Sent: Thursday, June 21, 2012 5:55 PM

To: 'For discussion and help for and by the users of the libRETS C++library'
Subject: Re: [libRETS-users] UserAgent Authentication
Reply all
Reply to author
Forward
0 new messages