I pass the msa v2 token gotten from MSM site to AcquireTokenOnBehalfOf() with cert, but hit the Error:
AADSTS50027: JWT token is invalid or malformed. Trace ID: 103eab1c-be53-416d-8421-de82b95e9300 Correlation ID: 672e90dd-619d-47a5-baa6-5235d57623ee Timestamp: 2024-05-09 12:05:36Z
IConfidentialClientApplication app = onfidentialClientApplicationBuilder.Create(MsmSiteApplicationId)
.WithAuthority(MsaAuthority)
.WithCertificate(certificate)
.Build();
UserAssertion userAssertion = new UserAssertion(jwtToken);
IEnumerable Scopes = new List { Scope };
var result = await app.AcquireTokenOnBehalfOf(Scopes, userAssertion).ExecuteAsync();
Where can I find the log of the trace id? Or can anyone help on how to fix the issue.
Please let me know if more information is needed.
Selina Ao is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.