Failed to acquire token silently. Call method AcquireToken

六眼飞鱼酱① 提交于 2019-12-04 16:49:36

I compared the settings helper with the one in my project, which authenticates correctly. The only difference is you have and extra '/' at the end of the AzureADAuthority property.

public static string AzureADAuthority {
  get {return string.Format("https://login.windows.net/{0}", AzureAdTenantId); }
}

As a tip, I got the same error when I was trying to implement Video REST API demo app using VS Community 2015. I could fix it updating all packages, I noticed there was particular one related to Microsoft identities or something like that, maybe that package was causing the error.

When I used the same code using VS Community 2013 Update 4 I didn't have any issue.

Regards

Unfortunately it was a bug on vs 2015 RC, on the RTM version same code worked perfectly fine.

thanks

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!