久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <tfoot id='MC5Gc'></tfoot>
    2. <legend id='MC5Gc'><style id='MC5Gc'><dir id='MC5Gc'><q id='MC5Gc'></q></dir></style></legend>
      <i id='MC5Gc'><tr id='MC5Gc'><dt id='MC5Gc'><q id='MC5Gc'><span id='MC5Gc'><b id='MC5Gc'><form id='MC5Gc'><ins id='MC5Gc'></ins><ul id='MC5Gc'></ul><sub id='MC5Gc'></sub></form><legend id='MC5Gc'></legend><bdo id='MC5Gc'><pre id='MC5Gc'><center id='MC5Gc'></center></pre></bdo></b><th id='MC5Gc'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MC5Gc'><tfoot id='MC5Gc'></tfoot><dl id='MC5Gc'><fieldset id='MC5Gc'></fieldset></dl></div>
      • <bdo id='MC5Gc'></bdo><ul id='MC5Gc'></ul>

      <small id='MC5Gc'></small><noframes id='MC5Gc'>

        使用 AspNet.Security.OpenIdConnect.Server (ASP.NET vNext) 注

        Logging Out With AspNet.Security.OpenIdConnect.Server (ASP.NET vNext)(使用 AspNet.Security.OpenIdConnect.Server (ASP.NET vNext) 注銷)
        <i id='7RmFp'><tr id='7RmFp'><dt id='7RmFp'><q id='7RmFp'><span id='7RmFp'><b id='7RmFp'><form id='7RmFp'><ins id='7RmFp'></ins><ul id='7RmFp'></ul><sub id='7RmFp'></sub></form><legend id='7RmFp'></legend><bdo id='7RmFp'><pre id='7RmFp'><center id='7RmFp'></center></pre></bdo></b><th id='7RmFp'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='7RmFp'><tfoot id='7RmFp'></tfoot><dl id='7RmFp'><fieldset id='7RmFp'></fieldset></dl></div>
      1. <legend id='7RmFp'><style id='7RmFp'><dir id='7RmFp'><q id='7RmFp'></q></dir></style></legend>

          <tbody id='7RmFp'></tbody>
        • <bdo id='7RmFp'></bdo><ul id='7RmFp'></ul>

            1. <tfoot id='7RmFp'></tfoot>

              <small id='7RmFp'></small><noframes id='7RmFp'>

                • 本文介紹了使用 AspNet.Security.OpenIdConnect.Server (ASP.NET vNext) 注銷的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在使用 Visual Studio 2015 Enterprise 和 ASP.NET vNext Beta8 來發布和使用 JWT 令牌,如 這里.

                  I am using Visual Studio 2015 Enterprise and ASP.NET vNext Beta8 to issue and consume JWT tokens as described here.

                  在我們的實現中,我們在發行令牌時將一些客戶端詳細信息存儲在 Redis 中,并且我們希望在用戶注銷時刷新此信息.

                  In our implementation we're storing some client details in Redis at token issuing time and we would like the flush this information when the user logs out.

                  我的問題是使用 OIDC 注銷的最佳做法是什么?

                  My question is what is the best practices for logging out with OIDC?

                  雖然我可以為此使用自己的控制器,但我不禁注意到 Open ID Connect (OIDC) 似乎已經準備好處理這種情況.例如,OIDC 有一個 OnLogoutEndpoint 處理程序和 LogoutEndpointPath 設置.但是,當我調用 OIDC 注銷 URI 時,該處理程序似乎接受我拋出的任何隨機 x-www-form-urlencoded 表單,并且似乎并沒有以任何特定方式要求存在令牌.

                  While I could roll my own contoller for this purpose I couldn't help but notice Open ID Connect (OIDC) seems somewhat primed to handle this case. For example OIDC has an OnLogoutEndpoint handler and LogoutEndpointPath settings. But when I call the OIDC logout URI that handler appears to accept any random x-www-form-urlencoded form I throw at it and doesn't in any particular way seem to be demanding the presence of a token.

                  非常感謝任何有關正確 OIDC 注銷做法的建議.

                  Any advice on proper OIDC logout practices would be very much appreciated.

                  推薦答案

                  AspNet.Security.OpenIdConnect.Server 中,用于注銷端點的邏輯留作練習.

                  In AspNet.Security.OpenIdConnect.Server, the logic used for the logout endpoint is left as an exercise.

                  在這個 示例,它是使用 MVC 6 控制器實現的,您當然可以在其中自由添加自定義邏輯以從 Redis 服務器中刪除緩存的詳細信息.

                  In this sample, it is implemented using an MVC 6 controller, where you're - of course - free to add custom logic to remove cached details from your Redis server.

                  [HttpPost("~/connect/logout")]
                  [ValidateAntiForgeryToken]
                  public async Task<IActionResult> Logout() {
                      // When invoked, the logout endpoint might receive an unauthenticated request if the server cookie has expired.
                      // When the client application sends an id_token_hint parameter, the corresponding identity can be retrieved using AuthenticateAsync.
                      var identity = await HttpContext.Authentication.AuthenticateAsync(OpenIdConnectServerDefaults.AuthenticationScheme);
                  
                      // Remove the cached details here. If you need to determine
                      // who's the authenticated user, you can use the identity variable.
                  
                      // Remove the authentication cookie and return the user to the client application.
                      return SignOut("ServerCookie", OpenIdConnectServerDefaults.AuthenticationScheme);
                  }
                  

                  您也可以直接從 LogoutEndpoint 事件執行類似操作.不要忘記調用 context.HandleResponse() 以確保請求不會被其他中間件攔截.

                  You can also do something similar directly from the LogoutEndpoint event. Don't forget to call context.HandleResponse() to make sure the request is not intercepted by another middleware.

                  這篇關于使用 AspNet.Security.OpenIdConnect.Server (ASP.NET vNext) 注銷的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數調用按鈕 OnClick)
                  ASP.net C# Gridview ButtonField onclick event(ASP.net C# Gridview ButtonField onclick 事件)
                  Adding OnClick event to ASP.NET control(將 OnClick 事件添加到 ASP.NET 控件)
                  Multiple submit Button click problem?(多個提交按鈕點擊問題?)

                    <small id='0fYKw'></small><noframes id='0fYKw'>

                    <tfoot id='0fYKw'></tfoot>
                      • <legend id='0fYKw'><style id='0fYKw'><dir id='0fYKw'><q id='0fYKw'></q></dir></style></legend>

                          <i id='0fYKw'><tr id='0fYKw'><dt id='0fYKw'><q id='0fYKw'><span id='0fYKw'><b id='0fYKw'><form id='0fYKw'><ins id='0fYKw'></ins><ul id='0fYKw'></ul><sub id='0fYKw'></sub></form><legend id='0fYKw'></legend><bdo id='0fYKw'><pre id='0fYKw'><center id='0fYKw'></center></pre></bdo></b><th id='0fYKw'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0fYKw'><tfoot id='0fYKw'></tfoot><dl id='0fYKw'><fieldset id='0fYKw'></fieldset></dl></div>
                            <tbody id='0fYKw'></tbody>

                          • <bdo id='0fYKw'></bdo><ul id='0fYKw'></ul>
                            主站蜘蛛池模板: 欧美一区二区在线观看 | 国产高清在线精品一区二区三区 | 中文字幕日韩欧美一区二区三区 | 欧美日韩综合精品 | 成人av在线播放 | www精品美女久久久tv | 久久99国产精品久久99果冻传媒 | 国产区视频在线观看 | 一区二区三区四区国产 | 黄色免费在线观看 | 亚洲视频在线免费观看 | 久久久精品网 | 国产精品亚洲一区二区三区在线观看 | julia中文字幕久久一区二区 | 亚洲不卡在线观看 | 亚洲第一网站 | 中文字幕三区 | 特黄特色大片免费视频观看 | 正在播放国产精品 | 91精品国产91久久久久久不卞 | 日韩电影免费在线观看中文字幕 | www.99热这里只有精品 | 久久中文字幕一区 | 国产91一区二区三区 | 91亚洲国产成人精品一区二三 | 欧美激情精品久久久久 | 精品1区 | 欧美日韩不卡 | 久久综合爱| 国产1区在线| 99亚洲精品 | 精品二区 | 国产精品永久免费视频 | 国产精品视频一二三区 | 日本 欧美 三级 高清 视频 | 99精品热视频 | 天天操人人干 | 91成人| 欧美日韩视频 | 日韩精品一区在线观看 | 在线小视频 |