How could I get a custom API Access Token from Excel Addin aspnetcore project

16 Views Asked by At

I try to use the MS sample Office-Add-in-ASPNET-SSO https://github.com/OfficeDev/Office-Add-in-samples/tree/main/Samples/auth/Office-Add-in-ASPNET-SSO

I'm trying to access an Azure backend API using the application ID and a specific scope, but it seems that it is not possible using getAccessToken method (refer below link). How could I proceed?

https://stackoverflow.com/questions/74175583/office-addin-single-sign-on-and-api-scopes

Thanks for your help.

Pete

I tried to add a custom scope when calling getAccessToken api://zzzzz/c6c1f32b-5e55-4997-881a-753cc1d563b7 but I didn't get the token for my API.

0

There are 0 best solutions below