Forum Discussion

Mihir Yelamanchili's avatar
Mihir Yelamanchili
Brass Contributor
Sep 10, 2020

401 Error while connecting Azure web app with custom connector in PowerApps

I have followed https://docs.microsoft.com/en-us/connectors/custom-connectors/create-custom-connector-aad-protected-azure-functions to configure Azure AD authentication to my Azure Webapp (article describes with Azure function). In this web app I am having API which I am calling as https://mysite.azurewebsites.net/api/Plugin. This is working fine if I don't have any authentication for my web app. Based on the documentation I have configured azure AD authentication by creating new app registration and secret. In PowerApps I have created custom connector and selected authentication as OAuth2.0 and provided necessary details. While testing it is giving 401 unauthorized exception. What I am missing in this configuration?

3 Replies

  • pdtane's avatar
    pdtane
    Copper Contributor

    Hi there, this is a late reply. I got a very similar issue. I created a Function App and used a custom connector in PowerApp to connect to my functions. Also getting the same 401 error when I test the connector.

    I resolved this issue by going to my Function App's Authentication setting (new version of authentication, not classic), edited the setting for Identity Provider, and changed Issuer URL and removed 'v2.0'.

Resources