我正在使用VS 2015通過Azure AD身份驗證創建新的Web應用程序(.NET核心)。運行應用後,我看到Azure AD會自動爲我註冊新應用。然後,我可以用我的Azure用戶成功登錄。手動在Azure AD中註冊新應用程序
但我想手動註冊我的應用程序。因此,我跟着這個網站上說明: https://docs.microsoft.com/en-us/azure/active-directory/active-directory-app-registration
然後註冊我的手動新的應用程序在Azure AD,然後更新生成的客戶端ID來我appsettings.json,然後運行,並與Azure的用戶登錄。我得到的錯誤信息:
An unhandled exception occurred while processing the request.
HttpRequestException: Response status code does not indicate success: 401 (Unauthorized).
MoveNext
AggregateException: Unhandled remote failure. (Response status code does not indicate success: 401 (Unauthorized).)
MoveNext
一些專家可以讓我知道原因嗎?我是Azure的新手。 還有一個問題是我不知道爲什麼在我的appsetting.json文件中沒有SecretKey?
現在它工作,我明白了。謝謝費雪,你很高明。 – amzdmt