MSAL client type
Confidential
Problem statement
In some flows, developers want to call AcquireTokenForClient and AcquireTokenOnBehalfOf with client credentials, obtained by exchanging an MSI token while providing an fmiPath
Proposed solution
- Add a new
WithFmiPathForClientAssertion modifier on AcquireTokenForClientBuilder and AcquireTokenOnBehalfOfBuilder:
cca.AcquireTokenForClient
.WithFmiPathForClientAssertion(clientAssertionFmiPath)
- Add a new property ClientAssertionFmiPath in AssertionRequestOptions
class AssertionRequestOptions
{
//... current properties
string ClientAssertionFmiPath {get;set;}
}
- MSAL should provide back the clientAssertionFmiPath in the AssertionRequestOptions.ClientAssertionFmiPath property passed-in to the client assertion delegate.
Alternatives
Do several MSAL calls, but this won't work with IdWeb / MISE
MSAL client type
Confidential
Problem statement
In some flows, developers want to call
AcquireTokenForClientandAcquireTokenOnBehalfOfwith client credentials, obtained by exchanging an MSI token while providing an fmiPathProposed solution
WithFmiPathForClientAssertionmodifier on AcquireTokenForClientBuilder and AcquireTokenOnBehalfOfBuilder:Alternatives
Do several MSAL calls, but this won't work with IdWeb / MISE