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

訪問被 Azure AD B2C 鎖定的 Azure 函數應用時收到

Receiving 403 error when accessing Azure function app locked down by Azure AD B2C(訪問被 Azure AD B2C 鎖定的 Azure 函數應用時收到 403 錯誤)
本文介紹了訪問被 Azure AD B2C 鎖定的 Azure 函數應用時收到 403 錯誤的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我們正在使用 AD B2C 對我們的網絡應用進行身份驗證.上周,當我們使用我們的 AD B2C 租戶調用托管在 Azure 中并被 Active Directory 鎖定的 API 時,我們開始收到 403.76.

We are using AD B2C for authentication on our web app. Last week we started receiving a 403.76 when calling our APIs that are hosted in Azure and locked down by Active Directory using our AD B2C tenant.

發生更改時,我們沒有更改 AD 中的任何配置設置.我們回滾了所有沒有幫助的代碼.我們驗證了我們的令牌在 jwt.io 中是有效的.我們確認我們的受眾是正確的,并且在應用注冊中正確設置了權限.當進入功能應用程序的診斷和解決問題"部分并深入研究 4xx 錯誤時,我們可以看到簡單的身份驗證錯誤 403.76.

We haven't changed any config settings in AD when the change occurred. We rolled back all of our code which didn't help. We verified that our token is valid in jwt.io. We confirmed that our audience is correct and permissions was set properly in app registrations. We can see the easy auth error 403.76 when going in to "Diagnose and solve problems" section of the function app and drilling into 4xx errors.

函數應用僅針對 Cosmos 執行 GetAsync 以在登錄時獲取您的用戶配置文件.但是我們并沒有走得那么遠,因為我們在使用 AD 驗證我們的令牌時收到了 403.76.

The function app just does a GetAsync against Cosmos to get your user profile on sign in. However we aren't getting that far, as we are receiving a 403.76 when verifying our token with AD.

我們應該能夠像以前一樣對我們的 API 執行 GET 并接收數據.相反,我們得到 HTTP 狀態 403,子狀態為 76.

We should be able to do a GET against our API and receive data as we were before. Instead we get HTTP status 403 with a sub status of 76.

診斷和解決問題"部分的錯誤:

The error in "Diagnose and solve problems" section:

EasyAuth:AuthorizationCheckFailed.更多詳情請參考 EasyAuth 模塊的 HTTP 狀態碼

EasyAuth:AuthorizationCheckFailed. For more details, refer to HTTP Status Codes by EasyAuth Module

推薦答案

我們用頭撞墻了五天,所以我想確保將其發布在堆棧溢出上,以供其他面臨此問題的人使用.特別是因為它影響了客戶.

We banged our heads against a wall for five days, so I wanted to make sure this was posted on stack overflow for anyone else facing this issue. Especially since it affected customers.

在過去三天與 Microsoft 24/7 合作后,我們終于收到消息,這是由于他們使用 EasyAuth 的問題.解決方法是將其添加到我們的函數應用配置中:

After working with Microsoft 24/7 for the last three days, we finally received word that this was due to an issue on their end with EasyAuth. The workaround was to add this in our Configuration of the function app:

WEBSITE_AUTH_AAD_BYPASS_SINGLE_TENANCY_CHECK = true

WEBSITE_AUTH_AAD_BYPASS_SINGLE_TENANCY_CHECK = true

這篇關于訪問被 Azure AD B2C 鎖定的 Azure 函數應用時收到 403 錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

ASP.NET Core authenticating with Azure Active Directory and persisting custom Claims across requests(ASP.NET Core 使用 Azure Active Directory 進行身份驗證并跨請求保留自定義聲明)
ASP.NET Core 2.0 Web API Azure Ad v2 Token Authorization not working(ASP.NET Core 2.0 Web API Azure Ad v2 令牌授權不起作用)
ASP Core Azure Active Directory Login use roles(ASP Core Azure Active Directory 登錄使用角色)
How do I get Azure AD OAuth2 Access Token and Refresh token for Daemon or Server to C# ASP.NET Web API(如何獲取守護進程或服務器到 C# ASP.NET Web API 的 Azure AD OAuth2 訪問令牌和刷新令牌) - IT屋-程序員軟件開發技
.Net Core 2.0 - Get AAD access token to use with Microsoft Graph(.Net Core 2.0 - 獲取 AAD 訪問令牌以與 Microsoft Graph 一起使用)
Azure KeyVault Active Directory AcquireTokenAsync timeout when called asynchronously(異步調用時 Azure KeyVault Active Directory AcquireTokenAsync 超時)
主站蜘蛛池模板: 天天人人精品 | 成人免费一级视频 | 日韩欧美二区 | 久草视频2| 日韩欧美精品一区 | a在线视频 | 国产传媒在线观看 | 婷婷久久精品一区二区 | 亚洲成人综合社区 | 中文字幕 国产精品 | 久久久www成人免费无遮挡大片 | 天天综合网天天综合色 | 亚洲欧美在线观看 | 性高湖久久久久久久久3小时 | 久久精品小视频 | 麻豆一区二区三区 | 一区二区三区精品视频 | 亚洲人人 | 国产一区二区三区久久久久久久久 | 国产成人精品一区二区三区视频 | 精品欧美乱码久久久久久1区2区 | 久久精品黄色 | 视频国产一区 | 激情五月婷婷综合 | 成人亚洲一区 | 久久久精 | 久久99精品久久久久久国产越南 | 国产精品海角社区在线观看 | 成人精品高清 | 亚洲 中文 欧美 日韩 在线观看 | 成人小视频在线观看 | 欧美成年黄网站色视频 | 你懂的在线视频播放 | 亚洲综合首页 | 国产精品亚洲综合 | 国产极品粉嫩美女呻吟在线看人 | 水蜜桃久久夜色精品一区 | 天天操网 | 可以免费观看的av片 | 久久久久久久电影 | 亚洲视频中文字幕 |