1800.
OAuth Error 1800 - There was a problem in setting up your remote access
- OAuth Error. 1800.
- There was a problem in setting up your remote access This error will occur if the Identity Provider is mis-encoding or truncating the RelayState value in the SAML request resulting in the source value being lost.
- This source value identifies which of our mobile applications you are going to connect to and get an OAuth Access token. Make sure that the SAML response back to Salesforce is exactly as provided by Salesforce in the initial request.
- OAuth エラー。1800.
- リモートアクセスの設定に問題があります。このエラーは、ID プロバイダが SAML リクエストで RelayState の値のエンコーディングに失敗したか一部を切り捨てたためにソースの値が失われた場合に発生します。
- このソースの値は、どのモバイルアプリケーションに接続しようとしているのかを特定し、OAuth アクセストークンを取得します。Salesforce に戻る SAML 応答が、最初のリクエストで Salesforce から提供されたものと完全に同じになるようにしてください。
OAUTH_APPROVAL_ERROR_GENERIC
OAUTH_APPROVAL_ERROR_GENERIC IN SALESFORCE 1
ErrorCode=No_Oauth_Token&ErrorDescription=invalid_grant
Going to connected apps in Salesforce and changing 'permitted users' from 'Admin approved users are pre-authorized' to 'All users may self-authorize'
Please refer below link step 9 which worked for others it may help you.
http://stackoverflow.com/questions/12794302/salesforce-authentication-failing
設定関係
{"error":"invalid_grant","error_description":"user hasn't approved this consumer"}
Just now it worked I just changed the Auth token url to
https:///services/0auth2/token
earlier I was using standard url
https://login.salesforce.com/services/oauth2/token'
for access token.
{"error":"invalid_grant","error_description":"authentication failure"}" - on grant type password
$params = [
'grant_type' => 'password',
'client_id' => $this->client_id,
'client_secret' => $this->client_secret,
'username' => $username,
'password' => $password . $security_token];
$ch = curl_init('https:xxxxxxxxxxxxxxxxxxxxxxxxx/services/oauth2/token');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/x-www-form-urlencoded']);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
参考になる