Setting the file. One moment.
Chapter 30 · Entra App Registration
Subchapter 30.15
references/sdk/microsoft-azure-webjobs-extensions-authentication-events-dotnet.mdMarkdown1 KBView on GitHub
Condensed from microsoft-azure-webjobs-extensions-authentication-events-dotnet. Full patterns (attribute collection, OTP customization, external data enrichment) in the source plugin skill if installed.
dotnet add package Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents
using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents;
using Microsoft.Azure.WebJobs.Extensions.AuthenticationEvents.TokenIssuanceStart;
[FunctionName("OnTokenIssuanceStart")]
public static WebJobsAuthenticationEventResponse Run(
[WebJobsAuthenticationEventsTrigger] WebJobsTokenIssuanceStartRequest request,
ILogger log)
{
var response = new WebJobsTokenIssuanceStartResponse();
response.Actions.Add(new WebJobsProvideClaimsForToken
{
Claims = new Dictionary<string, string> { { "claim", "value" } }
});
return response;
}