Cannot set “preAuthorizedApplications” object in new App registrations module through Azure Powershell

前端 未结 5 767
温柔的废话
温柔的废话 2021-01-14 09:49

Short Scenrario: A muti tenant front end javascript (React.JS) Web Application calls a multi tenant ASP.NET Core 2.2 WebAPI from the browser.

Au

5条回答
  •  长情又很酷
    2021-01-14 10:25

    I got this error too using client_credentials type to get access_token to call that API even though I granted all Microsoft Graph API and AAD API application related permissions. It is really weird. However , using password flow to get access token under Azure AD admin account will be able to call this API successfully :

    Update

    You could get your client id and client secret by below steps

    1. Go to azure portal on azure active directory menu see the screen hot below:

    1. Once you select azure active directory you would see App registrations click on that. Then select your application. See the below picture

    1. On your apllication you would see the client id, tenant id and client secret which marked on the screen shot below:

    If you still have any concern please feel free to share. Thank you and happy coding!

提交回复
热议问题