Function App to Function App Authentication always unauthrised

EnenDaveyBoy 71 Reputation points
2023-05-22T16:39:09.4766667+00:00

so I have a function (func1) which is AuthorizationLevel.Anonymous which when called along with other things calls another func (func2) with AuthorizationLevel.Func.

On func2 i have gone into the Authentication tab and set an AAD connection, and used the scope and DefaultAzureCredentials to get the token which works.

But it doesn't authenticate successfully.

Any suggestions would be appriciated

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AirGordon 7,165 Reputation points
    2023-05-23T06:51:05.6633333+00:00

    Function based authentication uses keys to authenticate, these are strings and can be created/rotated at the function level. If your calling app isn't providing these keys, authentication will fail and you should move it to Anonymous authentication at the function level and instead rely on the User Authentication provided at the Function App level..

    User's image

    https://learn.microsoft.com/en-us/azure/azure-functions/functions-identity-based-connections-tutorial

    0 comments No comments

Your answer

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