I have an application user on MS Dynamics 365 and have configured the Azure portal with permissions/id's to access a token using OAUTH2. App ID, Client secret etc have been configured. the redirect URI should call a https function, but so far I just want to see the token being granted. Using MSAL, this is the config I came up with in the backend, just to see the accesstoken...I am sure I need to put in the redirect uri and also the grant_type: client_credentials, but it doesn't seem as if you need to do that with MSAL 2. Little confused, has anyone done this before?
top of page
Important forum update
This forum is migrating to one unified Wix community forum starting July 26th, and will be read-only during the process.
Wishlist Page is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.
bottom of page
I got this working....didn't use msal-node....tried msal-browser, but eventually I used an implicit grant request for the access token then client credentials grant type for the json data - little bit tricky.....the key thing to remember was that a server side call for an access token using azure, gives a response where the access token is preceded by #, nothing can be read in the response server-side after the #, once I knew this it was easy to fix. The client secret and the call using the secret is all done in the backend. Used Postman and webhook.site for debugging, very useful....Would love to know if anyone has got msal working on wix?