@VarmaSuresh-6014
Thank you for your post and I apologize for the delayed response!
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to accept the answer.
Error Message:
Validation failed: 1 Validation error found in policy "B2C_1A_TRUSTFRAMEWORKBASE" of tenant... Tenant "mytenantname.onMicrosoft.com" does not have a CryptographicKey referenced by storageReferenceId "B2C_1A_"...
Issue:
When trying to upload a custom policy in your B2C tenant within Identity Experience Framework, you kept running into the error message above regarding your tenant not having the CryptographicKey
referenced by the storageReferenceId
within your custom policy.
Solution:
You resolved your issue by replacing all of the occurrences of StorageReferenceId
with a value of - B2C_1A_TokenSigningKeyContainer
, since some of the values within your custom policy only had B2C_1A_
.
<CryptographicKeys> <Key Id="issuer_secret" StorageReferenceId="B2C_1A_TokenSigningKeyContainer" /> </CryptographicKeys>
If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.
I hope this helps!
If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.
If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.