Why does app service create a secret in app registration when setting up authentication?

Prakamya Aishwarya 121 Reputation points
2022-06-03T09:07:54.483+00:00

When setting up Microsoft identity as the identity provider for my function app, I can notice that the app service (that is supporting the function app) creates a secret for that app registration. Why is this secret created and is it used during authentication of user or validation of token at a later point?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-06-09T02:52:53.52+00:00

    @Prakamya Aishwarya Thanks for reaching out. I believe you are talking about the Generated by App Service description secret that gets created when you register the app while adding the Microsoft Identity provider on your function app. You can leverage the existing secret that is created for you or create a new secret for the authentication of user depending on the Authentication flow. For more details about the Authentication and authorization you can refer to this document.


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.