BugNET

Open source issue tracking & project management
Welcome to BugNET Register | Login |

BugNET Forums

 
  Forum  Development  General develop...  Auto-login
Previous Previous
 
Next Next
New Post 9/22/2008 3:23 PM
User is offline pmartinez
5 posts
No Ranking


Auto-login 

Anyone have a good suggestion on how to implement a pass-through login for BugNet? I have an ASP.Net application that I want to integrate BugNet with, but I can't require my users to have to re-authenticate when switching sites. I looked at the forms-based authentication that this thing uses, but I can't quite figure out how to insert my own logic there. What I want to do is to host BugNet in an IFrame in my site, and pass the authentication credentials via a GUID on the URL generated on the fly, call back server-server to retrieve the actual username/password, and use that info to automatically sign the user in.

Like this:

My Site->IFrame->http://bugnet.mydomain.com?GUID=DJKHGF32HDJ4

BugNET->pass 'DJKHGF32HDJ4' to a web service on another server-> returns User Name/Password

BugNet->Auto-login with User Name/Password

I know how to do everything up to the point where I get the username/password - what do I do with it then???

 
New Post 9/23/2008 5:51 AM
User is offline smoss
114 posts
www.orbitsolutions.co.za
5th Level Poster


Re: Auto-login 

Here is something you can try. I am assuming here that your base website is running .NET 2.0 with ASPMembership stuff

So what you can do is change your BUGNET web.config file to get it to point at the other site's authentication database.

The LocalSqlServer connection string is what you need to change.

 
New Post 9/23/2008 7:44 AM
User is offline pmartinez
5 posts
No Ranking


Re: Auto-login 

Unfortunately, the base site is using a proprietary authentication mechanism. I am planning on syncing the BugNET password with the base site in the background, but I want to make sure I can do auto-login first.

 
New Post 9/23/2008 8:53 AM
User is offline smoss
114 posts
www.orbitsolutions.co.za
5th Level Poster


Re: Auto-login 

You might be able to populate the login form text boxes and submit programmatically.

This link will help: http://media.wiley.com/product_data/excerpt/89/04717859/0471785989.pdf

On page 698 they have a javascript example (in the section called Script your login) which explains how to use javascript to populate the fields and login.

And with javascript you can script across frames.

 
New Post 9/23/2008 11:39 AM
User is offline pmartinez
5 posts
No Ranking


Re: Auto-login 

Hmmm...interesting idea. I'll give it a shot.

If anyone thinks of a way to do it server-side, though, please speak up!

 
Previous Previous
 
Next Next
  Forum  Development  General develop...  Auto-login

Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.