validate

Exchanges a bearer token for a principal of type P.

Return null when the token is not accepted.

Report a problem

Parameters

body

validation function called with the current routing context and extracted BearerTokenCredential.