Hi Tom Bevins,
Yes, web-apps can be deployed using a client certificate if end-users are using PIV cards.
However, if you're still seeing the error like AADSTS299266 – Blob grant token received with wrong issuer type
, it's likely due to a certificate issuer mismatch.
Note: PIV login is a form of certificate-based authentication for the user. When both the user and the app are authenticating using certificates, Azure AD applies more strict certificate validation logic on both ends.
When the app and user are authenticating using certificates Azure AD checks whether the certificate used by the user for PIV card and the certificate used by the app both come from trusted certificate authorities (CAs) If either of them comes from an unexpected or untrusted CA, Azure AD blocks the authentication, in your case PIV CA.
To fix this, you need to add the PIV certificate’s root and intermediate CAs to your Entra ID tenant’s trusted certificate list.
Check the PIV issuer’s root and intermediate CA and export the full certificate chain from a working PIV card (root + intermediate certs).
Upload the PIV certificate chain to Entra ID at Microsoft Entra Admin Center(https://entra.microsoft.com/) -> Certificate Authorities.
Upload the .cer files for both the root CA and intermediate CA(s). This makes Azure AD recognize and trust the PIV card as a valid identity source.
- Ensure the web app’s client certificate is trusted The app's client cert must also come from a trusted CA, preferably the same root as PIV or one uploaded to Entra ID.
- Better to have same issuers of PIV and Client app from CAs because Entra ID expects both certificates of user and app to be from trusted and expected issuers. any mismatched issuers can trigger errors like
AADSTS299266 – Blob grant token received with wrong issuer type
. - Also make sure your authority URL is right.
Hope this helps!
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful, which may help members with similar questions.
If you have any other questions or are still experiencing issues, feel free to ask in the "comments" section, and will be happy to help.