Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am implemented one web application in ASP.NET(C#), for this web Application login Webpage implemented in some other Server in HTML, how can i merge both applications. first Login html page will come here he will check user credential on my server system after login is successful it redirect to my web application,here my application is in different place and different server how can i do it.
Posted

Not sure I understand your question well. But you are probably looking for a web service which you will expose to get user credentials from another website. You will then authenticate the user and return a success/failure to the caller. On success, the other website will have to redirect to your website.

You can explore more about web services here[^].
 
Share this answer
 
Using response.Redirect you can pass the request to the second website. And then continue with that application.
 
Share this answer
 
Your content is present on different server, so which means you will have to use some connection or an API to get the data from either server on the other server in this application context.

This is where, you define an API, a Class library to let developers from other environment or application make use of your product. Lets assume the Server1 lets the users to Login, a Login service is provided by them, you need to create an API, which would expose different properties for each user (client) such as,


  • IsLoggedIn
  • UserId
  • MemberOfGroup


.. and other authentication related methods and properties. Which would be then used by the Server2 where the application resides to get the details. This method is used by many other websites, think of Mozilla's Persona[^], or login services using Facebook, Twitter, Google+ accounts. They're all same and are known as Social Login[^].

A turn around is, to import that login page to your own server, and call it each time the user comes to your website.

You should know, that a server can host websites with different domains on the same machine, so it will be easy to call the (login) resource on the application itself.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900