简体   繁体   English

在 session 或身份服务器 openid 连接中的令牌超时之后重定向

[英]Redirect after session or token timeout in identity server openid connect

I have asp.net core and identity server as openid connect server.我有 asp.net 核心和身份服务器作为 openid 连接服务器。 I want to redirect to a different page rather than the authority url when the token/session is expired due to inactivity.当令牌/会话由于不活动而过期时,我想重定向到不同的页面而不是权限 url。 Is there an easy way to do this using configuration or any other way this can be achieved?有没有一种简单的方法可以使用配置或任何其他方式来实现这一点?

The magic of redirect is done by the challenge which is set to use oidc scheme.重定向的魔力是由设置为使用oidc方案的挑战完成的。 Its set by adding DefaultChallengeScheme = "oidc" on startup .它通过在startup时添加DefaultChallengeScheme = "oidc"来设置。 To be able to do it in a custom way you need to add a custom challenge which is not as easy as setting some configs.为了能够以自定义方式执行此操作,您需要添加一个自定义挑战,这不像设置一些配置那么容易。 Read more here 在这里阅读更多

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Identity Server 4中为OpenID Connect注册IIdentityServerInteractionService - Register IIdentityServerInteractionService in Identity Server 4 for OpenID Connect ASP.NET Core和OpenID Connect重定向到外部身份提供商 - ASP.NET Core & OpenID Connect Redirect to External Identity Provider CORB OpenID Connect /连接/授权端点(Identity Server 4) - CORB OpenID Connect /connect/authorize endpoint (Identity Server 4) 从令牌服务器(身份服务器 4)进行身份验证后,重定向到客户端的相同 URL - Redirect to same URL at client side after authentication from token server (identity server 4) 在OpenId Connect(AAD)之后对用户进行身份验证,但无法找到访问令牌 - User is authenticated after OpenId Connect (AAD) but Unable to find access token 服务器端 blazor 中的会话超时重定向 - Session Timeout redirect in Server side blazor 身份服务器:在 Angular 中登录和注销后重定向? - Identity Server: Redirect after login and logout in Angular? 成功登录后身份服务器不重定向 - Identity server does not redirect after sucessfull login 如何使用OpenID Connect在API中获取标识 - How to get identity in API using OpenID Connect 为什么 acr_values 没有传递到 Identity Server 4 上的 POST /connect/token? - Why is acr_values not passed to POST /connect/token on Identity Server 4?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM