![](/img/trans.png)
[英]Is it possible to use ConfidentialClientApp in Console App?
是否可以在 Visual Studio 中使用機密客戶端應用程序作為控制台應用程序的一部分? 我一直在嘗試這樣做,但是當我使用剛剛構建的IConfidentialClientApplication class 調用方法時,出現以下錯誤: 我一直在試圖弄清楚這對我來說意味着什么。 事實上,我的機器是 ...
[英]Is it possible to use ConfidentialClientApp in Console App?
是否可以在 Visual Studio 中使用機密客戶端應用程序作為控制台應用程序的一部分? 我一直在嘗試這樣做,但是當我使用剛剛構建的IConfidentialClientApplication class 調用方法時,出現以下錯誤: 我一直在試圖弄清楚這對我來說意味着什么。 事實上,我的機器是 ...
[英]Getting 401 unauthorized when trying to access secured Web API using MSAL, OpenID Connect
我需要從我的客戶端應用程序訪問受保護的 Web API(托管在 Azure 上)。 當我打開我的客戶端應用程序時,我正在檢索訪問令牌,然后我將其添加到請求 header,但 API 返回401 unauthorized 。 這就是我在客戶端上獲取訪問令牌的方式 這就是我如何調用 Web API 這是 ...
[英]403 while access an azure table
我正在嘗試讀取和寫入新創建的 azure 表,但我一直收到 403 錯誤。 我使用的是用於創建表格的同一帳戶。 我還將該帳戶添加到貢獻者組。 我已經測試了多個范圍,認為確實可能是問題所在,例如: https://storage.azure.com/user_impersonation http ...
[英]How to setup external identity provider for MSAL js react spa?
我正在嘗試使用 msal js 對我的 React 應用程序 (Azure AD B2C) 進行身份驗證。 Microsoft 身份驗證完美運行。 但是我需要在我的身份驗證中添加更多外部身份提供者,例如 Google。 我已按照官方文檔https://learn.microsoft.com/en ...
[英]How can I make MSAL4J and azure-security-keyvault-* work together?
我想使用 MSAL4J 和存儲在 Azure Key Vault (AKV) 中的證書進行身份驗證。 該證書是自簽名的 Azure Key Vault 證書。 我可以找到一個基於本地(文件系統)存儲的證書和密鑰的示例,而不是在 AKV 中創建和存儲的證書。 如何在 MSAL4J 中使用從azure ...
[英]MSAL login fails in Flutter app (android), no clear error why
我正在嘗試在 Flutter 應用程序(Android 和 IOS)中使用 msal 登錄創建一個簡單的登錄按鈕,但它根本不起作用,我也不知道為什么。 我正在使用 azure_ad_authentication 1.0.4(在此之前我嘗試過 msal_flutter 2.0.1 但是當我按下按鈕時它 ...
[英]React MSAL Library msal-react : Issue in persisting the login session in different user-policies B2C application
我在單頁 B2C 應用程序中使用 msal-react 進行登錄。我使用 loginRedirect() function 進行登錄。 這使我可以成功登錄。 登錄后,當我檢查用戶是否使用以下 function 進行身份驗證時,它返回 true。 這意味着用戶已通過身份驗證。 但是,當我嘗試從應用程序 ...
[英]How I can protect Azure Function by authorization?
我從創建 API Function 的 Azure function 開始。創建 function 后,我需要保護它。 以前,我使用Microsoft.Identity.Platform來保護 API 的資源,其中我在 Azure AD 中為 API 創建了一個注冊,公開了范圍,在列表中添加了客戶 ...
[英]LoginRedirect with prompt='create' not working in Angular Msal
我正在嘗試將用戶直接重定向到注冊(用戶創建)流程。 按照 MS 文檔,應該可以通過指定prompt="create"來實現。 https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-implicit-g ...
[英]TypeError: performanceMeasurement.startMeasurement is not a function
在 Next 13 中嘗試從@azure/msal-react 登錄時發生錯誤。當我檢查錯誤日志時,它來自核心庫@azure/msal-react。 我也試過登錄彈出窗口,但錯誤仍然相同我有代碼,在我的auth.ts中 _app.ts 在我的頁面中只是簡單地顯示 Login Index.ts 我是 ...
[英]@azure/msal-browser TypeError: this.startPerformanceMeasurement is not a function
介紹因為 nuxt 3 還沒有構建 Auth 庫,所以我正在嘗試創建自己的可組合項 useAuth。 問題當我嘗試調用 loginRedirect 或 loginPopup 方法時出現 startPerformanceMeasurement 錯誤。 代碼可組合物/useAuth.jsimport ...
[英]Get-MsalToken Error : Parameter set cannot be resolved using the specified named parameters
執行此腳本試圖在 Azure AD 中生成 TAP 時出現以下錯誤: 錯誤如下:Get-MsalToken:無法使用指定的命名參數解析參數集。 在第 1 行 char:18 + $TokenResponse = get-msaltoken @connectiondetails + ~~~~~~~~~ ...
[英]Invalid JSON 'claims' value encountered
我正在為 Android 使用 MSAL,並對這個錯誤感到困惑: 如何修復此 com.microsoft.identity.client.exception.MsalServiceException? ...
[英]The nodejs console application fails to obtain an AD token while a similar .NET app does not
我在成功獲取 AD 令牌的 .NET 6.0 控制台應用程序中進行了以下配置(實際值被屏蔽):{ "Tenant": "MASKED", //this is the same as tenantId "ClientSecret": "MASKED", "Scope": "api://MASKED/. ...
[英]Client - API authentication flow with Microsoft Azure AD
我正在構建一個帶有 spring 后端的 React 前端應用程序,該后端由 azure 廣告保護。 我無法使身份驗證流程正常工作。 在 azure 廣告中,我注冊了 2 個應用程序: API:默認配置,在“公開 API”下,我添加了 scope 和api://xxxx-api/Access.Ap ...
[英]Microsoft login isn't returning refresh token
我正在嘗試在我的應用程序和 Microsoft 日歷之間創建一個集成, 我有一個頁面允許用戶使用以下代碼將他的帳戶與我的應用程序連接 登錄有效並返回令牌,我可以輕松創建事件但是令牌在 1 小時后過期,並且響應不包含刷新令牌有沒有辦法生成刷新令牌或創建將保持活動狀態的令牌更長的時間。 因為我希望用戶登 ...
[英]Authorization Policy Attribute returns 403 and User.IsInRole returns false but claims are present WEB API Azure AD (Single Tenant)
設置我有一個 ASP.NET Core MVC web 應用程序,配置了 Azure AD。 我有一個 ASP.NET Core Web API 配置 Azure AD。 我在客戶端 web 應用程序中從 Azure AD 獲取令牌,並在從 Web API 請求資源時使用它,這工作正常。 在 WE ...
[英]azure ad login is not working in ios app while microsoft authenticator app is installed
我已經構建了一個 ios 應用程序,它使用 azure 廣告登錄,它工作正常,但在安裝微軟身份驗證器應用程序后,azure 廣告登錄不再有效,實際上警告說“應用程序想要使用'microsoftonline.com'進行簽名在“不來並卸載身份驗證器我的 ios 應用程序可以再次通過 azure 廣告登 ...
[英]fail: Microsoft.Identity.Web.TokenAcquisition[0] Exception type: Microsoft.Identity.Client.MsalUiRequiredException
每次構建我的應用程序時,我都會收到此錯誤: 我正在構建這個項目: https://github.com/Azure-Samples/active-directory-as.netcore-webapp-openidconnect-v2/tree/master/2-WebApp-graph-user ...
[英]Add Site Collection Admin using SharePoint CSOM and .Net 6
我正在努力了解如何使用 SharePoint CSOM 將用戶添加為網站集管理員。 到目前為止,此代碼適用於全局管理員將用戶添加為站點收集管理員,盡管全局管理員未作為站點管理員包含在內。 我試圖以普通用戶身份運行代碼,該用戶只是站點集合管理員,以將另一個用戶添加為站點集合管理員。 但后來我得到了一些 ...