How do you authenticate APIs using bearer tokens?
- API validates incoming JWT bearer token from Azure AD.
- Configure authentication in ASP.NET Core:
builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationS
cheme)
.AddJwtBearer(options =>
options.Authority =
options.Audience = clientId;
});