Forum Discussion
get valid auth token from MSAL for SP Online?
AJWeber This is a really big issue for me right now as well... Building business apps with Graph works great until you run into some incomplete functionality. For example creating a SharePoint site, or retrieving a SharePoint user id so that you can update a multiuser list field.
Is there active development under the beta graph? v1.0 after a couple years does not look like a good sign.
If anyone out there has already solved the issue of integrating CSOM or direct REST calls to SharePoint in a Microsoft.Graph MSAL application that would be a big help!
I would stick with CSOM accept that there is no good way to respect Multi-factor logins.... We really need graph to be completed to unify authentication across the API families.
Ed Alexander , AJWeber Kevin_Morgan
Did you find any solution for getting Access Token using MSAL.NET?
I am also stuck with this issue?
If someone can help with this it would be great.
I have also asked a question on MSAL.NET Repos as well.
Link is here : https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/issues/1439
- michaelmaillot_opFeb 06, 2020Brass Contributor
Hi, I was stuck like you and then I figured out that it works with the client credentials flow (certificate, not client / secret). Here my proposed answer : https://stackoverflow.com/questions/54771270/msal-ad-token-not-valid-with-sharepoint-online-csom/60090373#60090373
Please let me know.