MsalError.InvalidRequest Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Request is invalid.
What happens?
This can happen because you are using a token acquisition method which is not compatible with the authority. For instance: you called AcquireTokenByUsernamePassword(IEnumerable<String>, String, String) but you used an authority ending with '/common' or '/consumers' as this requires a tenanted authority or '/organizations'.Mitigation
Adjust the authority to the AcquireTokenXX method you use (don't use 'common' or 'consumers' with AcquireTokenByUsernamePassword(IEnumerable<String>, String, String)AcquireTokenByIntegratedWindowsAuth(IEnumerable<String>)public const string InvalidRequest;
val mutable InvalidRequest : string
Public Const InvalidRequest As String