且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用哈希参数将URL重定向到ASP.net MVC操作

更新时间:2023-02-24 22:50:26

您将需要修改对IdentityServer的身份验证请求,以使用response_mode=form_postresponse_mode=query.

You will need to modify your authentication request to IdentityServer to use response_mode=form_post or response_mode=query.

片段未发送到服务器,如以下定义: https://blog.httpwatch.com/2011/03/01/6-things-you-should-know-about-fragment-urls/. 当您希望前端JavaScript捕获令牌时,将使用片段响应模式.

Fragments are not sent to the server, as defined in: https://blog.httpwatch.com/2011/03/01/6-things-you-should-know-about-fragment-urls/. Fragment response mode is used when you want your front-end JavaScript to grab the tokens.