[Feature Request] (RP only) Provide an option to associate tokens with the certificate serial number #5150
Labels
confidential-client
Feature Request
ICM
This issue has a corresponding ICM, either for our team or another.
MSAL client type
Confidential
Problem statement
Resource Providers need to associate tokens with the certificate. There are multiple certificates on each host, depending on attributes like the arm resource id etc., and for each combination of attributes there will be a different certificate being made available to them.
Today, Resource Provider need to partition the cache on their own, but this is error prone and it's not future proof, as they need to update their code every time a new attribute is defined.
Proposed solution
Add an overload of
WithCertificate
:Internally, this uses the (internal) cache extensibility logic in MSAL to add an extra cache key component like
["certsn" : certificate.SerialNumber]
Note: this method should be placed in a new namespace called
Microsoft.Identity.Client.RP
Note
Note: this is not a feature for MISE, as RPs should continue to use MSAL to get tokens. There is no scenario where they need to get auth headers or to call downstream APIs.
The text was updated successfully, but these errors were encountered: