Page 1 of 1

Obtaining User Information From Asp.Net

Posted: Fri Jan 05, 2007 4:33 pm
by kcchief
I have a client that is using the Joomla 1.0.11 stable for their CMS system.  They are having me write them a new portion of their website in asp.net.  They want me to capture the user informaion from Joomla with in the asp.net application.  I have no clue on how joomla works and am trying to find someone who knows how to do this.  I need to be able to query the information from joomla with in the asp.net website.

Thank you for any help.

Re: Obtaining User Information From Asp.Net

Posted: Wed Jan 10, 2007 6:58 pm
by kcchief
I did figure out how to do this if anyone else would like to know....

Re: Obtaining User Information From Asp.Net

Posted: Wed Oct 31, 2007 9:10 pm
by prophetkgb
i would love to know my website is http://www.specialforcesguild.com

Re: Obtaining User Information From Asp.Net

Posted: Wed Oct 31, 2007 10:42 pm
by motokochan
ASP.net and PHP (what Joomla! runs) don't share data very well, so your best bet would be to see what you can pass via cookies and write code to get what other info you need out of the database.

Of course, if there is no actual technical need for ASP.net, it would work best to keep the language consistent across the site.

Re: Obtaining User Information From Asp.Net

Posted: Fri Nov 02, 2007 9:58 pm
by kcchief
Hello,

It was very easy, I used mysql with in asp.net and it connected just fine to joomla.  I was able to verify them logging in against the joomla database.  You will also have to look up asp.net on the encryption they use on their passwords.  But the encrytion type they use is built right in to asp.net.  If you need more help with it let me know.  I was able to connect to joomla and read, update and even write into joomla right from my backend code in asp.net.

Re: Obtaining User Information From Asp.Net

Posted: Fri Nov 02, 2007 10:14 pm
by kcchief
Here is the code on how to do it.
Remember that joomla uses a MD5 encryption on the password.  So you will have to go out on the internet and search on MD5 aps.net and there is sites out there with the code you can use.  You will need to run their password thru the aps.net MD5 function and then compare it to the password you get from joomla.....

Dim conn As MySQLConnection = New MySQLConnection(New MySQLConnectionString("Put IP Address Here For Joomla", "database name", "userid", "password").AsString)

conn.Open()

Dim cmd As MySQLCommand = New MySQLCommand("select name from jos_users", conn)

Dim reader As MySQLDataReader = cmd.ExecuteReaderEx()

While (reader.Read())

Response.Write("Low Level - Host:" + reader.GetString(0) + " , User:" + reader.GetString(1))

End While

reader.Close()

cmd.Dispose()

Re: Obtaining User Information From Asp.Net

Posted: Fri Mar 27, 2009 6:06 am
by indrajitch
hi Chief,

Can you tell me how to authenticate a Joomla user through ASP.net ?
We are able to connect to the MySQL database through ASP.net but cant figure out how do we pick and identify the sessions of individual users. We want to authenticate the loged in Joomla users so that they can directly log into other applications running on ASP.net.

any idea?

Re: Obtaining User Information From Asp.Net

Posted: Thu Nov 19, 2009 7:07 am
by TheShinichi
You can check this link below, it very simple !

http://blog.microsync.net/web-developme ... lications/

Re: Obtaining User Information From Asp.Net

Posted: Fri Mar 05, 2010 1:56 pm
by TheShinichi
Hi,

Sorry about this post but I can not find "Edit" button on post above !

My blog change a little, here is new link: http://blog.microsync.net/asp-net/authe ... lications/

Thanks !

Re: Obtaining User Information From Asp.Net

Posted: Sat Oct 23, 2010 5:38 pm
by kurchania
Hi,
why don't you call some web service?than you can access your data from anywhere