【发布时间】:2016-05-15 10:20:24
【问题描述】:
我将 Owin OpenId Connect 中间件与 Thinktecture Identity Server 4 一起使用。
我正在通过本教程构建身份验证:https://www.scottbrady91.com/Identity-Server/Identity-Server-3-Standalone-Implementation-Part-3
我的应用正在通过混合流对 Identity Server 进行身份验证,一切正常。 与示例的不同之处在于,一旦我从 Identity Server 和所有令牌获得响应,我就不想实际登录到正在使用该中间件的应用程序。相反,我想将这些参数传递给其他应用程序并在那里登录用户。此中间件应用程序应仅充当 Identity Server 和实际应用程序(客户端)之间的中间人。
我想知道整个管道中的哪个通知最适合放置重定向以及如何实际放置
Startup.cs:
app.UseOpenIdConnectAuthentication(
new OpenIdConnectAuthenticationOptions
{
/* Some parameters */
Notifications =
new OpenIdConnectAuthenticationNotifications
{
MessageReceived = async n =>
{
//
},
AuthorizationCodeReceived = async n =>
{
//
},
SecurityTokenValidated = async n =>
{
//
},
RedirectToIdentityProvider = async n =>
{
//
}
}
});
【问题讨论】:
标签: asp.net owin openid-connect identityserver3