English 中文(简体)
Getting{“error”:“invalid_grant”,“error_description”:“authenticationail”} in Salesforce?
原标题:Getting {"error":"invalid_grant","error_description":"authentication failure"} in Salesforce?

我正试图为我的销售力量部分箱获得会议设计。

我的法典:

curl https://test.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=definitely the correct client id" -d "client_secret=definitely the correct client secret" -d "[email protected]" -d "password=passandsecuritytoken"

否则:

  • Grant full access in my connected app settings
  • Set Ip restrictions to loose ip restrictions
  • "All users can authorize themselfes"
  • Double checked pass, client id, client secret, username

我仍在读到以下错误:{“error”:“invalid_grant”,“error_description”:“authenticationail”}

我通过无国界医生论坛和Stack Overflow问题进行了探讨,但我无法找到任何解决办法。 谁知道,这里的问题是什么?

问题回答

我仍然混淆不清,我不确切地知道正在发生什么,但我也存在同样的问题,我可以通过做以下工作来“解决”。

首先,放松对手法的限制。

普通应用——>Linked Apps -> (我的照片名称)

然后将“IP Relaxation”改为“Relax IP restrictions”。

据我所知,在沙箱中,没有IP限制,只有Im与他们合作,但Im仍然有新之处,因此他们可能躲藏在其他地方。

第二,在我 cur的指挥中,像你这样看了很多东西。 我脱离了安全感,因此口号只是密码。

我不知道我是否解决了我的问题,但我敢回过来,看不出“无益的”错误。

我计划进行一些额外调查,以说明正在做些什么,但我还是这样说,而我有这个问题,我可以确保这里的答案。

确保你采取这些步骤。

*Apps -> Manage Connected Apps -> (The name of my app) -> Edit Application -> OAuth Polices Then set "Permitted users" to "All users may self-authorize".

*Manage Apps -> Connected Apps -> (The name of my app) Then set "IP Relaxation" to "Relax IP restrictions".

能够提出附带条件1.1的治疗要求

cur1

还有一种情况是,必须混淆两个销售区org之间的一体化,以便能够让OAuth用户名-Pasword流程在错失赠款时出现。

“entergraph

Salesforce is requiring an upgrade to TLS 1.1 or higher by July 22, 2017 in order to align with industry best practices for security and data integrity: from help.salesforce.com.

如果你使用的话。 超过4.6的净额,试图增加这一代码:

System.Net.ServicePointManager.SecurityProtocol = 
SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;

另一种选择是编辑你的登记册:

[HKEY_LOCAL_MACHINESOFTWAREMicrosoft.NETFrameworkv4.0.30319]
"SchUseStrongCrypto"=dword:00000001

[HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoft.NETFrameworkv4.0.30319]
"SchUseStrongCrypto"=dword:00000001

Check this link for more detailed answers: Default SecurityProtocol in .NET 4.5

邮资信中的错误信息

{
    "error": "invalid_grant",
    "error_description": "authentication failure"
}

is very generic. One of the best way to troubleshoot what is going wrong in background is to go to the record of the user whose credential you are using for generating access token and check for status field value under login history.

“在此处的影像描述”/</a

我得以从Setaup >、安全控制、OAuth和开放式电话联通区进行流动。

“entergraph

这个问题的另一个原因是:

  1. you are passing password+securityToken in the password key of request body.At times it needs only password and not security token
  2. By mistake you are passing security token of admin user, not the security token of actual user for which you are trying to generate the token

Inplace or login.salesforce.com or test.salesforce.com in You url use You org instance url

http://etmyorgurl}/services/oauth2/token

这可能是什么。 但...... 在我的案件中,用于用户账户的密码一含有一个磅标志或印记(#),销售者至少似乎并不喜欢。 我在离开邮局时,会收到400份坏的辛迪加答复。

我将密码改为严格的字母数字(无图),并立即举动。

因此,我的建议是,如果你在两小时或更长时间内把你的头部推倒在墙上,就象我这样认为,你走了不动,只是试图将密码改变为字母数字特征。 这样做是可行的。 如果是这样的话,那么至少你可以排除。

我也存在同样的问题,因为我的密码含有 %的特性。

我非常喜欢使用随机密码,包括:......;或者说其他东西可以让普通人不使用密码。 出售品编号:E.07.XI.1。 我不止一次地陷入了这一困境,希望会帮助其他人和我的未来。

You have to add profile in connected app: Go to : Connected Apps -> Profiles -> Manage Profiles -> Application Profile Assignment -> Select System Administrator -> save

把奥阿特政策改变为“所有用户都可自行授权”的用户使我能够发出成功的APIC呼吁。

创办人:Edit

https://i.stack.imgur.com/5aIj.png”rel=“nofollow noreferer”>Screenshot of Salesforce establishing

检查“低 o用户=密码流动”是一种有益的建议,花费了3小时以上时间,以解决无端贪 gr的问题。

。 密码的特性可引起这一问题。 页: 1

I was trying to test the API on Postman and even after putting the correct details, I faced similar problem. Turns out, I needed to encode the strings manually. That worked for me.

我犯了同样的错误,但在我删除了特别的字句之后,它就行了。





相关问题
Allow RESTful DELETE method in asp.net mvc?

im currently setting up asp.net to accept DELETE http verb in the application. However, when i send "DELETE /posts/delete/1" i always get a 405 Method not allow error. I tried to take a look at ...

Most appropriate API for URL shortening service

I ve just finished an online service for shortening URLs (in php5 with Zend Framework); you can enter an URL and you get an short URL (like tinyurl and such sites). I m thinking about the API for ...

Use HTTPClient or HttpUrlConnection? [closed]

We re implementing a REST client on JRE 1.4. Seems two good options for a client REST framework are HttpClient and HttpUrlConnection. Is there a reason to use HttpClient over the JRE s ...

Why can t I find the truststore for an SSL handshake?

I m using the Spring RESTTemplate on the client side to make calls to a REST endpoint. The client in this case is a Spring app and Tomcat is the servlet container. I m running into issues making a ...

Which Http redirects status code to use?

friendfeed.com uses 302. bit.ly uses 301. I had decided to use 303. Do they behave differently in terms of support by browsers ?

Three Step Buyonline The RESTful way

We are re-developing our buyonline functionality and we are doing it the RESTful way. The process is a three step one and the customer is asked to enter data at each step. Let s say the three URL s ...

热门标签