我有一個UWP應用程序使用OneDrive,允許用戶讀取和寫入文件。如何註冊現有的UWP應用程序與微軟應用程序註冊門戶
然後我意外地從應用程序註冊門戶(https://apps.dev.microsoft.com/#/appList)刪除了我的應用程序,現在任何OneDrive相關代碼都會引發驗證錯誤。
我可以添加一個新的應用程序,但無法添加'Windows Store'作爲平臺。
Here is a screenshot of what I am trying to achieve
我怎麼能與登記門戶得到它與OneDrive工作再次重新註冊我的應用程序?
這裏是我使用驗證碼:
var msaAuthenticationProvider = new OnlineIdAuthenticationProvider(new string[] { "onedrive.readwrite" });
await msaAuthenticationProvider.AuthenticateUserAsync();
client = new OneDriveClient("https://api.onedrive.com/v1.0", msaAuthenticationProvider);
這是我目前得到的錯誤,當我跑我上面的代碼:
The application requesting authentication tokens is either disabled or incorrectly configured. (Exception from HRESULT: 0x80860003)
感謝您的幫助任何人可以提供!
當前門戶有2種類型的應用程序 - 融合和實時SDK應用程序組。要使用平臺 - Windows Store,您應該選擇「Live SDK」應用程序組。 – pnp0a03
我按照您的建議添加了一個Live SDK應用程序,但添加平臺時的唯一選項是「Web」和「native」。我如何添加「Windows Store」? – arsenalfandan
對不起,我誤解了你的情況。我不知道這種情況 - 意外清除。 – pnp0a03