I am building an aspenet core application that uses AAD (B2c later on) to authenticate users.
I understand that OAuth2 and OpenID Connect JWT tokens must be validated. It is very important.
I am going through this code example:
The example uses this Microsoft.Identity.Web's middleware for authentication.
services.AddMicrosoftIdentityWebApiAuthentication(Configuration)
.EnableTokenAcquisitionToCallDownstreamApi()
.AddInMemoryTokenCaches();
Which of the following validations is done by the above middleware?
- Validate JWT's signature
- Validate not before and expiration time
- Validate nonce
Is there any documentation that confirms what exact validations are done automatically by Microsoft.Identity.Web and what type of validation I need to do manually (I think issuer claim is a manual code)