You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are three ways to set up authentication for your Azure Function:
42
+
There are three ways to set up authentication for your Azure Function:
43
43
44
44
-[Set up authentication in the Azure portal using environment variables](#set-up-authentication-in-the-azure-portal-using-environment-variables) (recommended)
45
45
-[Set up authentication in your code using `WebJobsAuthenticationEventsTriggerAttribute`](#set-up-authentication-in-your-code-using-webjobsauthenticationeventstriggerattribute)
@@ -48,17 +48,17 @@ There are three ways to set up authentication for your Azure Function:
48
48
By default, the code has been set up for authentication in the Azure portal using environment variables. Use the tabs below to select your preferred method of implementing environment variables, or alternatively, refer to the built-in [Azure App service authentication and authorization](https://learn.microsoft.com/azure/app-service/overview-authentication-authorization). For setting up environment variables, use the following values:
49
49
50
50
| Name | Value |
51
-
| ---- | ----- |
51
+
| ---- | ----- |
52
52
|*AuthenticationEvents__AudienceAppId*|*Custom authentication extension app ID* which is set up in [Configure a custom claim provider for a token issuance event](https://learn.microsoft.com/entra/identity-platform/custom-extension-tokenissuancestart-configuration)|
|*AuthenticationEvents__AuthorizedPartyAppId*|`99045fe1-7639-4a75-9d4a-577b6ca3810f` or another authorized party |
55
55
56
56
57
57
#### Set up authentication in the Azure portal using environment variables
58
58
59
59
1. Sign in to the [Azure portal](https://portal.azure.com) as at least an [Application Administrator](https://learn.microsoft.com/entra/identity/role-based-access-control/permissions-reference#application-developer) or [Authentication Administrator](https://learn.microsoft.com/entra/identity/role-based-access-control/permissions-reference#authentication-administrator).
60
60
2. Navigate to the function app you created, and under **Settings**, select **Configuration**.
61
-
3. Under **Application settings**, select **New application setting** and add the environment variables from the table and their associated values.
61
+
3. Under **Application settings**, select **New application setting** and add the environment variables from the table and their associated values.
62
62
4. Select **Save** to save the application settings.
63
63
64
64
#### Set up authentication in your code using `WebJobsAuthenticationEventsTriggerAttribute`
@@ -83,7 +83,7 @@ Key concepts of the Azure .NET SDK can be found [here](https://azure.github.io/a
83
83
84
84
### Microsoft Entra custom extensions
85
85
86
-
Custom extensions allow you to handle Microsoft Entra authentication events, integrate with external systems, and customize what happens in your application authentication experience. For example, a custom claims provider is a custom extension that allows you to enrich or customize application tokens with information from external systems that can't be stored as part of the Microsoft Entra directory.
86
+
Custom extensions allow you to handle Microsoft Entra authentication events, integrate with external systems, and customize what happens in your application authentication experience. For example, a custom claims provider is a custom extension that allows you to enrich or customize application tokens with information from external systems that can't be stored as part of the Microsoft Entra directory.
87
87
88
88
### Authentication events trigger
89
89
@@ -226,7 +226,7 @@ It's a good idea to test the function locally before deploying it to Azure. We c
226
226
"customClaim1": "customClaimValue1",
227
227
"customClaim2": [
228
228
"customClaimString1",
229
-
"customClaimString2"
229
+
"customClaimString2"
230
230
]
231
231
}
232
232
}
@@ -279,10 +279,8 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For
279
279
more information see the [Code of Conduct FAQ][coc_faq] or contact
0 commit comments