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

Microsoft 365 and Office | Excel | For business | Windows
Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Other
{count} votes

Accepted answer
  1. Shweta Mathur 30,296 Reputation points Microsoft Employee Moderator
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.