Obtaining User Information From Asp.Net

Discuss the integration of Joomla! with other products. ie SMF, phpbb etc etc

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
kcchief
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Fri Jan 05, 2007 4:28 pm

Obtaining User Information From Asp.Net

Post by kcchief » Fri Jan 05, 2007 4:33 pm

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.

kcchief
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Fri Jan 05, 2007 4:28 pm

Re: Obtaining User Information From Asp.Net

Post by kcchief » Wed Jan 10, 2007 6:58 pm

I did figure out how to do this if anyone else would like to know....

prophetkgb
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Oct 29, 2007 5:18 pm

Re: Obtaining User Information From Asp.Net

Post by prophetkgb » Wed Oct 31, 2007 9:10 pm

i would love to know my website is http://www.specialforcesguild.com

motokochan
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Tue Aug 14, 2007 5:14 pm

Re: Obtaining User Information From Asp.Net

Post by motokochan » Wed Oct 31, 2007 10:42 pm

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.
Motoko-chan
Marketing Agent / Assistant Project Manager
Simple Machines

kcchief
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Fri Jan 05, 2007 4:28 pm

Re: Obtaining User Information From Asp.Net

Post by kcchief » Fri Nov 02, 2007 9:58 pm

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.

kcchief
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Fri Jan 05, 2007 4:28 pm

Re: Obtaining User Information From Asp.Net

Post by kcchief » Fri Nov 02, 2007 10:14 pm

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()

User avatar
indrajitch
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Wed Dec 03, 2008 9:25 am

Re: Obtaining User Information From Asp.Net

Post by indrajitch » Fri Mar 27, 2009 6:06 am

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?

TheShinichi
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Nov 19, 2009 7:02 am

Re: Obtaining User Information From Asp.Net

Post by TheShinichi » Thu Nov 19, 2009 7:07 am

You can check this link below, it very simple !

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

TheShinichi
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Nov 19, 2009 7:02 am

Re: Obtaining User Information From Asp.Net

Post by TheShinichi » Fri Mar 05, 2010 1:56 pm

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 !

User avatar
kurchania
Joomla! Hero
Joomla! Hero
Posts: 2070
Joined: Mon Sep 21, 2009 6:56 am
Location: indore,india
Contact:

Re: Obtaining User Information From Asp.Net

Post by kurchania » Sat Oct 23, 2010 5:38 pm

Hi,
why don't you call some web service?than you can access your data from anywhere
abhijeet kurchania
The future depends on what you do today


Locked

Return to “Integration & Bridges - 1.0.x”