将调用应用程序URL传递给另一个STS调用的STS [英] Pass calling application URL to STS called by another STS
问题描述
我开发了一个使用STS进行身份验证的应用程序。基于用户在STS的登录页面上输入的信息,STS可以决定将用户重定向到第二STS。有没有办法让第二个STS知道哪个是原始应用程序URL?我只能找到如何检索第一个STS的URL ...
我需要这个,所以我可以从数据库中检索应用程序的特定角色。
I've developed an application which uses an STS to authenticate. Based on what the information the user enters on the login page of the STS, the STS can decide to redirect the user to a second STS. Is there any way the second STS can know which was the original application URL? I can only find how to retrieve the URL for the first STS...
I need this so I can retrieve specific roles for the application from a database.
谢谢
推荐答案
典型的方法是STS1重定向到STS2。然后STS2为STS1发出一个令牌 - 并重定向回来。
The typical approach would be that STS1 redirects to STS2. Then STS2 issues a token for STS1 - and redirects back.
STS1然后重新发出该令牌(或转换它)并重定向回应用程序。
STS1 then re-issues that token (or transforms it) and redirects back to the application.
这篇关于将调用应用程序URL传递给另一个STS调用的STS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!