如何实现对第三方门户的单点登录 [英] How to implement single sign on to third party portal

查看:413
本文介绍了如何实现对第三方门户的单点登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi ,
i want to implement single sign on(SAML) concept in my asp.net project.

i have created a simple asp.net web application, from asp.net application button click,  i want to call another third party site without login again to that third party portal.

i have below  the details of that third party portal(which is ArgGis Web Builder portal).
 ApplicationId, tokenId, ClientId.

i tried to use the token and tried to redirect from asp.net but it's prompting me to login again there and after providing details it's redirecting successfully but i want to login there without prompting login.

it's basically user wants to login in asp.net application but user can user can visit another portal without login there(Token Based Authentication).

please let me know if i need to create any service from asp.net site , if then how do create service  or is it possible to use active directory with AD login.

Thanks

What I have tried:

i have just tried to call third party site using below code

<pre><a href="https://www.arcgis.com/sharing/rest/oauth2/authorize?client_id=iJpTdInAPMaH3EL8&response_type=token&expiration=20150&redirect_uri=http://desktop-6enj4k5:3344/webappbuilder/?id=5">KL Map</a>





试图传递给toeknId但不知道如何传递userid,密码



tried to pass toeknId but don't know how to pass userid, password

推荐答案

您无法通过服务器端代码将客户端登录到第三方网站,因为这些依赖于饼干。当您通过服务器代码登录时,cookie将附加到您在服务器代码中返回的响应中。当客户端然后联系网站时,它使用自己的cookie存储,因此无法告知网站已登录。如果您想使用单一登录,则所有参与站点必须实现相同的SSO提供程序。
You can't log the client into a third party website via server-side code as these things rely on cookies. When you log in via your server code the cookie is attached to the response you get back in your server code. When the client then contacts the website it uses its own cookie store so it can't tell the site it is logged in. If you want to use a single sign on then all participating sites must implement the same SSO provider.


这篇关于如何实现对第三方门户的单点登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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