473,385 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Login Once to Access Two Sites

Using 1.1...
I want to enable users to authenticate to one site, then be transferred to a
2nd site without having to also log in there. In other words, authenticating
to site1 automatically authenticates users in site2. FWIW: These two sites
are at different domain names, but they are on the same server and I have
complete administrative control over both.

Can this be done? If so, I'd appreciate some high-level direction.

Thanks!
Nov 23 '05 #1
1 1050
If they were on the same server, then it's be no problem as it's easy enought
o share the Forms Auth cookie across the two as long as <machineKey> is sync'd
across the two apps. But since this is cross domain, then you're going to
have to build some sort of auth handshake between the two sites (sort of
what passport does). It's not hard, but also it's not trivial.

The high level design would be something like the user hits site 1 and auths.
When you want them to then access site 2 (diff domain) then site 1 would
have to build some sort of link with a querty string for site 2. The query
string would have to contain the username that was used to auth at site 1.
It would also have to be encrypted with a key that site 2 would be able to
decrypt. The user hits the link to hit site 2. Site 2 decrypts the query
string and now knows who the user is.

At least this is the high level idea.... I don't have anymore details than
this though. And there are probabaly more secure and/or spohisticated approaches
to this. Perhaps posting in the security newsgroup you'd get people with
ideas and/or links for samples on this.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Using 1.1...
I want to enable users to authenticate to one site, then be
transferred to a
2nd site without having to also log in there. In other words,
authenticating
to site1 automatically authenticates users in site2. FWIW: These two
sites
are at different domain names, but they are on the same server and I
have
complete administrative control over both.
Can this be done? If so, I'd appreciate some high-level direction.

Thanks!

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bennett Haselton | last post by:
I'm looking for a PHP tutorial that specializes in how to build sites that are based around user logins. i.e. the user logs in on the front page, and are taken to a main login page where fields on...
1
by: anonymous | last post by:
Hi all, I've been searching the way to achieve the following task. But no luck so far. I have a web site(main site), which requires authentication. This authentication is set at Windows...
1
by: Pronojit Roy | last post by:
Hi Xperts, I have multiple Web Sites in different Live Servers. I want to login any of the sites, and then I will access all the other sites without giving any more login information (i.e I want...
2
by: Roy | last post by:
Hey all, My boss has recently asked me to take an ASP legacy site in which a user logs in to view data, etc... and make it interoperable with a newer ASP.NET site in which a user logs in to view...
7
by: Alan Silver | last post by:
Hello, Sorry this is a bit wordy, but it's a pretty simple question... I have a web site, http://domain/ which is a public site, part of which (http://domain/a/) is protected by forms...
0
by: Martin | last post by:
I have 2 web sites on different domians bioth using Forms authentication , I have set the <Machine Key settings in the web config of both apps to use the same encryption keys etc. This should...
14
by: knal | last post by:
Hi there, I'm looking for a secure login script for a sort-of-community site... (PHP, MySQL, sessions, or maybe something else ... ) I know there are a lot of scripts out there, but none of them...
6
by: =?Utf-8?B?UGFyYWcgR2Fpa3dhZA==?= | last post by:
Hi All, We have a requirement where we have to develop a custom Login Page which will accept user's NT credentials ( Username , password, domain name). This then needs to be passed to a website...
1
by: Tim | last post by:
Folks, I have 3 loosely linked problems which I am would appreciate feedback on. 1). T-Sql and Active directory roles. We want to be able to control access to data within a table based on a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.