Navigating between 2 Webform applications (Asp.Net) Securley


We have 2 applications and would like a user to switch to one them securely, so the user will login (with username and password) to one Site A and then click on a link to navigate to the Site B. If I checked that the user is coming from Site A (referring site and page) would this be enough to ensure this is safe or should I make more checks?

Any recommendations would be helpful.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Chinmay PatelChief Technology NinjaCommented:
Hi Sanjshah,

The approach you are trying to use is not safe at all. Anyone can spoof that approach and basically create a havoc on your Site B.
What you need is a technique called SSO - Single Sign On - which can be implemented in multiple ways. IF you can provide more details about your requirements and how your apps are set-up (ASP.Net WebForms? MVC? ASP.Net Core? Apps reside on the same server? Same domain? etc.) I can suggest which route to take.

sanjshah12Author Commented:
Many thanks Chinmay for replying.

I am using Asp.Net Webforms VB. Yes I can place both applications on the same server and possibly on the domain if required.

Any help is appreciated.

Would a web service be a better approach?

Chinmay PatelChief Technology NinjaCommented:
Web Service????  I am not sure I understand the context here.

If you can provide me details on the requirements then I can tell you if a Web Service is required. If you have two distinct apps providing two different features then keeping them separate is the right thing to do - unless your business requirements dictate otherwise.
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

sanjshah12Author Commented:
Thanks Chinmay,

These need to be 2 different webforms applications just because they have different requirements and features.

I would like to redirect a user (already logged in to SiteA) to SiteB, from where they will complete a form etc. I really do not want them to login again. It would be nice if I could forward information such as email address, name from SIteA to SiteB but not essential.

Thanks for your help
Chinmay PatelChief Technology NinjaCommented:
Then configure SSO, and though these links are old, for WebForms they are still valid. Please do a PoC to check if they meet your requirements.

These two are good points to start. First, check

I believe the first MSDN link is sufficient in terms of theoretical guidance that exactly tells you what you need to setup SSO, the second one takes a more practical approach with examples.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sanjshah12Author Commented:
Thanks Chinmay,

Just to confirm the only I need to create a machinekey ?

Chinmay PatelChief Technology NinjaCommented:
Yes. Please do a PoC.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.