Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

How do i use GSP authentication on the rest of my website
Syramannen
#1 Posted : Thursday, 3 March 2011 12:42:31 PM(UTC)
Rank: Member

Joined: 3/03/2011(UTC)
Posts: 5
Man
Location: Sweden

Hi everyone!

I'm a new user to the forum and i'll start with telling Roger that you've done a GREAT job creating the application !!!

So now to my question...

I have installed the compiled version of GSP v2.4.5 and i don't have any problems what so ever with the applikcation.
I would like to use the authentication method that GSP uses to login at another page on my website.
This because it seems that GSP uses a well developed authenticaion system.
I will use that authentication to grant users to some editing on a special page that doesn't have anything to do with GSP but is on the same website.

I have downloaded the sourcecode and i have searched (with no luck) for what happens when a user has entered his username and password and presses the Login button.
So i'd like to know what method (or something) is called when you press the Login button and also when a user presses the logout link.

I hope you all understand what i'm want to do here.

Thanks in advanced for any answers.

(Sorry for any misspelling since i'm from sweden)


Roger Martin
#2 Posted : Thursday, 3 March 2011 4:34:49 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

GSP uses the asp:Login control, so it handles the authentication automatically when the user clicks the login button. If you want to see how it is configured, search the source code for "asp:Login". You should find two instances of it.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Guest
#3 Posted : Saturday, 5 March 2011 1:00:41 AM(UTC)
Rank: Guest


Message was deleted by a Moderator.
marcd
#4 Posted : Sunday, 6 March 2011 2:18:55 AM(UTC)
marcd

Rank: Advanced Member

Joined: 13/02/2009(UTC)
Posts: 53
Location: Zurich, Switzerland

As I remmeber GSP uses the standard ASP.Net Membership. By default GSP brings its own providers that store membership, roles, etc. in the SQLite database. To share this membership information (user, roles, profiles, etc.) for other parts of your website configure them to the very same "applicationName" and provider (SQLite). You can also change the setting of the GSP membership, roles and profiles to another provider and applicationName. For example point them to a MSSQL database you are using for the rest of your website. Sharing these membership informations between apps highliy depends on "applicationName" configured on the providers. If you don't set them EXACTLY (casing) the same it will result in two applicaiton in the applications database what result in two separat data-structure so users, roles etc. will not be shared even if they are stored in the same database and datatables. In the past I found the information from ScottGu very usefull:

http://weblogs.asp.net/s...ecurity-Resources-.aspx

Hope this helps.

Cheers, Marc
Rss Feed  Atom Feed
Users browsing this topic
Guest
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.