且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Azure Active Directory Oauth的Azure服务管理API身份验证

更新时间:2023-12-03 15:16:52

This isn't possible due to the Application Permissions: 0 setting for the Service Management API. The client_credentials grant type uses credentials from the application (client_id and client_secret), and since the application does not have permissions for this API the call fails.

Since the Service Management API will not allow application permissions of any kind, we must use the authorization_code grant type or some other method to obtain a user token.