none
Authorisation using MSAL for a function in Azure Static Web App RRS feed

  • Question

  • I'm trying to authenticate and authorise a user for an Azure function that's created and exposed using an Azure Static Web App, using Azure AD and MSAL. The user can succesfully access the API if I configure the app to use the older AAD v1 flow but not with MSAL. The setup/use-case:

    • a Single Page Application (SPA) deployed and hosted as an Azure Static Web App using basic HTML and JS (this is a demo 'Hello World' app)
    • The app has authentication integrated using MSAL. Specifically msal-browser.js version 2.6.1. An identity token is retrieved using:
    msal.PublicClientApplication(msalConfig).loginPopup(loginRequest)
    Friday, November 20, 2020 8:28 PM

Answers

  • forum migrated to mentioned below link please use this

    https://docs.microsoft.com/en-us/answers/index.html

     hope answer the question if issue resolve please accept answer

    • Marked as answer by toris noni922 Friday, November 20, 2020 8:35 PM
    Friday, November 20, 2020 8:33 PM