Forum Discussion
AJWeber
Feb 20, 2019Copper Contributor
get valid auth token from MSAL for SP Online?
I'm in the middle of writing a .Net client app and have been using the latest Graph SDK to access OneDrive. To authenticate, I used MSAL and with the appropriate "scopes", this gets me an OAuth toke...
ArvindKumar Mepani
Oct 13, 2019Brass Contributor
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_op
Feb 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.