2

I use SharePointOnline.Portable library for uploading files to sharepoint. Everything worked recently, but now I am struggling from an error "Identity Client Runtime Library (idcrl) did not get a response from the login server". I tried to use user without MFA, but unfortunately response was the same. All licenses are ok. Does someone know any reasons why it can be caused?

using var clientContext = new ClientContext(siteUrl); clientContext.Credentials = new SharePointOnlineCredentials(userEmail, userPassword);

var webContext = clientContext.Web; clientContext.Load(webContext, web => web.ServerRelativeUrl);

await clientContext.ExecuteQueryAsync(); // fails on this line

  • Mines just started doing this as well, did you have to set up an authentication string in your SharePoint Admin centre? – squatman May 04 '23 at 09:33
  • @squatman Where in the admin center is the "authentication string" configured? Suffering the same problem as OP. – J. Minjire May 04 '23 at 13:32
  • @squatman, is it neccessarily to set up authentication string to make it work? – Valeriya Kalynenko May 04 '23 at 21:27
  • Apologies it wasn't an authentication string, it was an Application ID generated in https://portal.azure.com Azure Active Directory > App registrations and registering your own app to allow authentication. I haven't managed to solve my problem yet. The error occurs in my AuthenticationManager when trying to retrieve the Token, error "interaction_required" - "AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access...". I've looked at what I can find with MFA and all seems to be as it should – squatman May 05 '23 at 17:57
  • I've read something about setting locations and that a flag may have been set to invalidate the location. I'll let you know if I find anything new or solve it. Please do the same as this is very frustrating. Thank you. – squatman May 05 '23 at 17:58

0 Answers0