I resloved the isuue at the end of this mething I had to to test url. so instead of this await auth.UsernamePasswordAsync("Client ID got from Sandbox , "Consumer key got from Sanbox" , "mickey_patel@nwtc.com.ntcdev", "SandBox password");
I had to do this.
await auth.UsernamePasswordAsync("Client ID got from Sandbox , "Consumer key got from Sanbox" , "mickey_patel@nwtc.com.ntcdev", "SandBox password", "test url");
our organization recently setup the Sandbox account. Before that I was able to connect the production by using:
var auth = new AuthenticationClient(); and await auth.UsernamePasswordAsync Method
now to connect to Sandbox I changed the CleintId, clientSecret, username and password to this method: auth.UsernamePasswordAsync and when I run the code I get the error message saying: {"authentication failure"}
I resloved the isuue at the end of this mething I had to to test url. so instead of this await auth.UsernamePasswordAsync("Client ID got from Sandbox , "Consumer key got from Sanbox" , "mickey_patel@nwtc.com.ntcdev", "SandBox password");
I had to do this.
await auth.UsernamePasswordAsync("Client ID got from Sandbox , "Consumer key got from Sanbox" , "mickey_patel@nwtc.com.ntcdev", "SandBox password", "test url");
await auth.UsernamePasswordAsync("Client ID got from Sandbox , "Consumer key got from Sanbox" , "mickey_patel@nwtc.com.ntcdev", "SandBox password");
I had to do this.
await auth.UsernamePasswordAsync("Client ID got from Sandbox , "Consumer key got from Sanbox" , "mickey_patel@nwtc.com.ntcdev", "SandBox password", "test url");
in production you do not need to do that.
All Answers
var auth = new AuthenticationClient(); and await auth.UsernamePasswordAsync Method
now to connect to Sandbox I changed the CleintId, clientSecret, username and password to this method: auth.UsernamePasswordAsync and when I run the code I get the error message saying: {"authentication failure"}
before even calling Url I am calling this method. await auth.UsernamePasswordAsync and I doubled check I have correct info.
await auth.UsernamePasswordAsync("Client ID got from Sandbox , "Consumer key got from Sanbox" , "mickey_patel@nwtc.com.ntcdev", "SandBox password");
and I still get "authnetication failure"
await auth.UsernamePasswordAsync("Client ID got from Sandbox , "Consumer key got from Sanbox" , "mickey_patel@nwtc.com.ntcdev", "SandBox password");
I had to do this.
await auth.UsernamePasswordAsync("Client ID got from Sandbox , "Consumer key got from Sanbox" , "mickey_patel@nwtc.com.ntcdev", "SandBox password", "test url");
in production you do not need to do that.