How to have excel macros working under Azure Active Directory Authentication in a normal .NET Web Application Project?

Anonymous
2023-03-14T04:05:24.0133333+00:00

We have a .NET Web Application running on latest technology stack wherein it uses SQL Server in the back-end and MS Blazor in the front-end. Also some portion of front-end exist in excel since we are using some macros to accomplish functionalities like filling up the grid cells of excel sheet using the JSON returned from the Web API call. The Web API call has been implemented using Azure AD integrated authentication. Now we wish the macros to also use Azure AD Authentication.

Please help us with some pointers or some concept related help or reference to other portal altogether or a better idea to accomplish the whole thing in the better new way.

Thanks and Regards

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,457 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,639 questions
Microsoft Entra
{count} votes

Accepted answer
  1. Shweta Mathur 27,381 Reputation points Microsoft Employee
    2023-03-17T07:24:23.0566667+00:00

    Hi @Anonymous ,

    Thank you for your patience throughout this issue.

    I checked this internally and to authenticate the macros with Azure AD you can either digitally sign the macros or do certification-based authentication with Azure AD and Azure Key Vault.

    Digital signatures can be used to ensure that the macros are from a trusted source, and no one tampered with the data.

    Certification-based authentication involves obtaining a certificate from Azure Key Vault, which can then be used to authenticate the user and the macros. This approach provides strong security and can be used where the macros need to access sensitive data.

    Hope this will help.

    Thanks,

    Shweta

    Please remember to "Accept Answer" if answer helped you.


0 additional answers

Sort by: Most helpful