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

Prakamya Aishwarya 106 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 Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,721 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
2,607 questions
No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 49,711 Reputation points Microsoft Employee
    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