In msal-node, By ConfidentialClientApplication
and acquireTokenByClientCredintial
API I was able to authenticate successfully and get the token without specifying user login detials. I want the same functionality in my React app using msal-react. Able to get token by acquireTokenSilent
api and providing user details. Unable to find a proper documentation or sample code how to generate token without user login.
Is there any way to authenticate by client credentials without user login in msal-react ??
ClientCredential Auth flow is designed for Confidential Client applications. msal-react is an auth library which supports only SPA type of apps which are public client applications, hence there is no support for ClientCredential flow in the library.