如何将多个域合并到一个网站? [英] How to merge multiple domains into a single website?

查看:150
本文介绍了如何将多个域合并到一个网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ASP.NET(C#)中实现了一个Web应用程序,对于在HTML中的其他服务器中实现的此Web应用程序登录网页,我如何合并这两个应用程序。首先登录html页面将来到这里他将在登录成功后检查我的服务器系统上的用户凭证它重定向到我的web应用程序,这里我的应用程序在不同的地方和不同的服务器我怎么能这样做。

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.

推荐答案

不确定我理解你的问题。但您可能正在寻找一种Web服务,您将公开该服务以从其他网站获取用户凭据。然后,您将对用户进行身份验证并将成功/失败返回给调用者。成功后,其他网站将不得不重定向到您的网站。



您可以浏览有关网络服务的更多信息在哪里 [ ^ ]。
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[^].


使用response.Redirect可以将请求传递给第二个网站。然后继续该应用程序。
Using response.Redirect you can pass the request to the second website. And then continue with that application.


您的内容存在于不同的服务器上,这意味着您必须使用某些连接或API从另一台服务器上的任一服务器获取数据在此应用程序上下文。



这是您定义API的一个类库,让来自其他环境或应用程序的开发人员可以使用您的产品。让我们假设Server1允许用户登录,他们提供了一个Login服务,你需要创建一个API,它会为每个用户(客户端)公开不同的属性,例如,





  • IsLoggedIn
  • UserId
  • MemberOfGroup
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


这篇关于如何将多个域合并到一个网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆