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

Notification

Icon
Error

Passing In Username & Password
chrisdoan
#1 Posted : Monday, 28 December 2009 3:55:27 PM(UTC)
Rank: Advanced Member

Joined: 21/12/2009(UTC)
Posts: 82
Location: San Diego

I'm embedding GSP into my existing ASP.NET web site using the Iframe method, is there a way to pass in the username and password to GSP?
Roger Martin
#2 Posted : Tuesday, 29 December 2009 4:35:59 AM(UTC)
Roger Martin

Rank: Administration

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

Off the top of my head I am not sure how you can do that. Since you have two separate applications, there really isn't a built-in way to share authentication info.

You could modify the code to look for a username and pwd on the URL, but that violates best practices around handling passwords. Another idea is to create a SSL-encrypted web service method that takes in the user name and pwd and issues an authentication cookie, but I'm not sure what you do with the cookie (maybe forcing GSP to use use cookie-less mode, which passes cookies on the URL?)

I'll continue to ponder this and post again if I think of anything new. I bet there is a creative solution for this.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
lhakesley
#3 Posted : Thursday, 13 May 2010 9:20:04 AM(UTC)
Rank: Member

Joined: 1/04/2010(UTC)
Posts: 18

Hi Roger,

I am having the same issue, and was wondering if anything ever came to you about how to cleverly make it work? :)

Thanks,

Lisa Hakesley
Roger Martin
#4 Posted : Friday, 14 May 2010 12:23:53 AM(UTC)
Roger Martin

Rank: Administration

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

Sorry, the ideas are posted are still the best ones I can think of. :-)
Roger Martin
Creator and Lead Developer of Gallery Server Pro
lhakesley
#5 Posted : Friday, 14 May 2010 4:39:36 AM(UTC)
Rank: Member

Joined: 1/04/2010(UTC)
Posts: 18

Hi Roger,

I added a separate .aspx page to GSP that accepts an encrypted parameter with the user info, and perform the login there. Then I redirect up to the main GSP page. Works great, and will be easy to back out when we finally jettison Community Server and integrate GSP properly.

Thanks again!

Lisa

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.