Adal.js does not get tokens for external api endpoint resource

前端 未结 4 1697
时光取名叫无心
时光取名叫无心 2020-12-28 08:00

I\'m trying out adal.js with an Angular SPA (Single Page Application) web site that gets data from an external Web API site (different domain). Authentication against the SP

4条回答
  •  无人及你
    2020-12-28 08:59

    You need to make your Web API aware of your Client application. It's not enough to add delegated permission to API from your Client.

    To make the API client aware, go to Azure management portal, download API's manifest and add ClientID of your Client application to the list of "knownClientApplications".

    To allow Implicit flow you need to set "oauth2AllowImplicitFlow" to true in the manifest as well.

    Upload the manifest back to API application.

提交回复
热议问题