I am following this example: https://github.com/Azure-Samples/active-directory-dotnet-daemon-certificate-credential
I am able to successfully run the sample, get the access token (JWT) and access the Web API.
However, I would like to have a claim containing the value of the certificate subject (in this case, it is CN=TodoListDaemonWithCert) in the returned token from the Azure AD. This is because I will have some more certificates with different subjects (CN=TodoListDaemonWithCert-1, CN=TodoListDaemonWithCert-2...) and they will be also registered with the TodoListDaemonwithCert app.
The Web API will use the subject (CN=TodoListDaemonWithCert) read from the token as an identity to proceed next.
Any idea would be appreciated.