OAuth is an open, standard, protocol to allow users to securely authorize web, mobile and desktop applications to access web services on their behalf. Salesforce supports OAuth 1.0a and 2.0.

learn more… | top users | synonyms

0
votes
0answers
12 views

You are not authorized to access this API

You are not authorized to access this API You are not authorized to access this API Error 403 PUT I am getting this response when i am updating non admin users signature in gmail using email ...
0
votes
0answers
5 views

Is it possible to deploy an Auth Provider using 'Execute Registration As' in a Change Set, without error?

Auth Provider is listed among the Components Available for Change Sets, and indeed, I can select them in my change set. However, in trying to deploy a few auth providers from a sandbox named DevPro ...
1
vote
0answers
15 views

400 Bad Request on RestTemplate POST request to Salesforce Oauth

I am trying to send a POST request to https://test.salesforce.com/services/oauth2/token to retrieve the oauth access token. The response is 400 Bad Request with no info. Here's the (Java) client code: ...
2
votes
0answers
20 views

Invalid token after OAuth on app in production, but not in development?

I'm having an issue where when I use an app in my developer's instance everything works fine. But when we create an exact duplicate of the app in our real production instance, the token's we are ...
3
votes
0answers
38 views

Salesforce API - have auth token; can't make API call

I'm having the same issue as this user in this question, but the answer provided doesn't work in my. I can connect, I can retrieve a auth token, but when I immediately make a call with it it fails ...
0
votes
0answers
12 views

Can't get expires_in field while using OAuth flow

I know it's a duplicate from this question: User-Agent OAuth Authentication doesn't provide expires_in data but no one has answered it, and I couldnt bump it by voting up becasue of my low ...
1
vote
1answer
19 views

List of All OAuth Errors? [closed]

Does Salesforce has a compiled list of all errors? (or at least those for the OAuth flow). I'm currently working on a Salesforce app where I keep getting new kinds of errors from new users, I never ...
0
votes
1answer
13 views

Can the same digital certificate be used by two different servers to connect as the same Connected App at the same time?

This is not a production scenario but I have a single Org with a single Connected App specified and connections to it are made using the JWT OAuth flow. The private key is used by two different test ...
2
votes
1answer
76 views

How to limit an access to specific REST endpoint?

Let's assume I have an REST ednpoint created: @RestResource(urlMapping='/CUSTOM_DATA/*') global with sharing class MY_CUSTOM_DATA Now I am going to create Connected App with Full Access scope, I ...
0
votes
2answers
41 views

How do I get an oauth token to experiment with SalesForce?

I am fairly new to Salesforce. I am writing a Java app that will make calls (either Soap or Rest) to the SF API. I think I need an oauth token to make the API calls? My company had a very simple PHP ...
0
votes
0answers
28 views

Difference between login with node.js library

I'm exploring some libraries to connect node.js with SFDC. I've found nforce and jsforce (Have tried only the first, actually). Reading the documentation, for the first one I have to set up a ...
1
vote
1answer
31 views

How to do programmatic OAuth flow between RestResource and Server Application

I have an external application that has a bunch of information to create new Lead objects. As well I've created a RestResource Apex class that is mapped to URLs on the salesforce instance for my ...
1
vote
0answers
59 views

Sandbox, oAuth & My Domain issue

We have developed AppExchnage app and is used connected app to integrate 3rd party system with SFDC. This app worked great till one of our customer have asked to install it on their sandbox. 3rd party ...
0
votes
1answer
26 views

Is it possible to log in as another user using OAuth / MobileSDK?

I see from the following help page that it is possible to login as another user when in the Salesforce Web UI. Salesforce help page: Logging in as another user However I'm developing a mobile app ...
1
vote
1answer
73 views

how to access a connected app from another org

I have created one connected app with API (Enable OAuth Settings) and it has generated consumer key and consumer secret. how to use this information to access the connected app from a different org? ...
2
votes
0answers
75 views

Auth. Providers Facebook Existing (community) User Linking

I'm currently adding a Facebook login to our customer onboarding process that we host through Salesforce. I have got it working for existing users already, if their Facebook email is the same as ...
1
vote
1answer
59 views

OAuth Token Management - Fuel SDK (PHP)

What are recommended best practices for reusing the OAuth token for the ExactTarget Fuel SDK? On my website once I get a valid OAuth token, I cache it for 15 minutes and use that same token for all ...
4
votes
2answers
121 views

Determine If Sandbox from Instance URL in Javascript

There's been a few questions around working out if an org is a sandbox or not, but typically these are done via Apex. I need to find out an org's type (only sandbox/prod - dev etc. don't matter) using ...
0
votes
1answer
118 views

Cannot access url https://login.salesforce.com/services/oauth2/token

My customer's webmaster uses REST API to create Leads in salesforce, from his website. Since yesterday he is getting a connection error. The password has not changed. I tried to make a call from a ...
17
votes
2answers
1k views

What causes a Connected App's Refresh Token to expire?

We have configured our web application to use OAuth2 with our SFDC Connected App. The connected app is configured to never expire the refresh token unless manually revoked. When an admin connects the ...
2
votes
2answers
271 views

Why Salesforce oAuth Username Password flow does not need security token?

While using SOAP API login call we need security token or the public IP should be whit listed. Why not when we use connected APP Username Password flow? If you compare security token implementation ...
2
votes
1answer
146 views

Returning Oauth token with REST API via PHP arrays when trying to send new contacts

In the salesforce REST API documentation, it tells how the system can give Oauth Tokens (https://code.exacttarget.com/apis-sdks/rest-api/v1/auth/requestToken.html ) But I don't seen any documentation ...
1
vote
3answers
124 views

How to use the REST API to get array from the Opportunity Object in JSON format from the Opportunity object using SOQL?

I'd just like to get an array of the opportunity data within Salesforce Visualforce so that I can manipulate it in Javascript. Below is the query that I'd like to use to pull in the array: select ...
2
votes
1answer
55 views

Maintaining session on external website using Canvas App

We are using OAuth web server flow. We need to know what is the best practice for maintaining session state within the external website. We do not want to use client side coding.
2
votes
3answers
315 views

When does it make sense to add a Connected App to a Managed Package?

I think I'm familiar with the difference between a connected app definition and its consumption: As the vendor, my Connected App definition lives by himself in a dev org forever: For the users, in ...
1
vote
2answers
151 views

How to get claims of logged in user in Salesforce iOS SDK [duplicate]

I have integrated "SalesforceMobileSDK-iOS-Distribution" library in my iOS native application from this link to achieve scenario as mentioned below ...
1
vote
1answer
71 views

SSO for Composite Apps using SAML or OAuth

We have a SaaS running on AWS that we want to integrate with Salesforce. In a first step we want to add a web tab to the Salesforce UI and have a single-sign-on with our application so that if ...
1
vote
0answers
161 views

Android ionic hybrid app missing SalesforceOAuthPlugin

I'm trying to buid a simple android SFDC app using Ionic, I used this https://github.com/driftyco/ionic-starter-salesforce when I try it in the browser using ForceServer it works fine but when I try ...
2
votes
1answer
51 views

Maintaining session using web server oauth

I am using canvas app and have java code at backend. We are integrating using web server oauth. I am using my java code to retrieve access token first time now i need to maintain the session , how ...
3
votes
1answer
163 views

Salesforce OAuth Token IP Restrictions

Short version: It seems that the access_token retrieved via OAuth is restricted to use only by the IP address that requested it. Is there a way to remove this restriction? Long version: I am ...
0
votes
1answer
162 views

JSForce: Error invalid session id

Using JSForce, I create a new connection using the access and refresh token like so: new jsforce.Connection({ oauth2: { clientId: clintId, clientSecret: clientSecret, ...
3
votes
1answer
87 views

SiteAuth UserAgent Test Class Creation

I'm new in creating SiteAuth userAgent test class creation. public SiteAuthControl() { if(!Test.isRunningTest()) { string userAgent = ...
0
votes
0answers
71 views

Salesforce to QuickBooks online

I am having a requirement to integrate QuickBooks online with Salesforce. In this, I am successfully getting authorized from Salesforce to my app on QuickBooks. I am using version V1 to getting ...
2
votes
1answer
118 views

Safest way to see if a user is still “logged in” (REST API)

I'm using the Salesforce REST API along with OAuth 2.0 User-Agent Flow. I have the need to "ping" Salesforce to see if a user is logged on (this is the simplest way to do so in my application). If the ...
2
votes
0answers
33 views

Using the REST API, how can I tell that a user has blocked OAuth access vs revoked OAuth access?

It seems that I get the same authentication error message the token is invalid. Is there a way I can tell the difference as the vendor? Note that I am not referring to an Apex app. My app is purely ...
0
votes
1answer
207 views

Unable to retrieve context in canvas app when authenticating with oauth

I’m having trouble authenticating my canvas app using oauth2. This is despite being able to authenticate and connect via other means. The following is my problem in detail… I’ve configured a ...
0
votes
0answers
70 views

Can anyone explain OAuth 2.0 via JWT Bearer Token Flow for Custom Rest Resource?

How to use OAuth 2.0 with JSON Web Token (JWT) in custom REST based web service ? For. e.g JWT access token is only valid for 4 hours after which a Session Timeout error (HTTP 401) will be returned ...
0
votes
1answer
82 views

RefreshToken questions

When creating a Marketing Cloud Application (to be listed on the HubExchange) an installation of the App issues a JWT token that is received by the defined login end-point. The token contains, ...
3
votes
2answers
3k views

How to request rest api after getting access token. php & curl

I am able to authenticate with salesforce and receive a token using php & curl, below. However my next step is to use the token id to query salesforce (e.g objects) and i am not getting anything ...
3
votes
0answers
60 views

Share OAuth config between multiple connected apps?

I'm building an application that consists of several independent "Canvas" components, all of which are different views into the same application. At the moment it appears I'm required to configure a ...
1
vote
1answer
279 views

Import salesforce WSDL file from URL

I have a website. An user can login into this site through salesforce login oAuth. I need to implement next functionality: after user login I should in some way get WSDL file relating to user account. ...
2
votes
1answer
702 views

Is there anyway to check if an access token is valid or not?

I got an access token from Salesforce and now I want to check if it's valid or not. How can I do this? Updated question. I have a client application and a server. The client requests an access token ...
0
votes
0answers
161 views

Oauth WARN [HttpMethodDirector] Unable to respond to any of these challenges: {token=Token}

I'm just a beginner with Salesforce Oauth. When I try to get the access token with username/password flow everything seem good. This is out put: > Status-Code: 200 Auth response: { "id": ...
0
votes
1answer
206 views

Get SFDC sessionID via access token

As the title. I'm using username/password flow to request an access token. So how can I request a SFDC sessionID from that token?
2
votes
1answer
233 views

redirect uri mismatch in google oauth 2

i am trying to implement google oauth2 .i created a web application whem it redirect to OAuth login screen its giving me error : "redirect_uri_mismatch".here is screen shot but in google console my ...
3
votes
2answers
372 views

Making rest request with Oauth

I have all four Oauth token consumerKey, consumerSecret, accessKey and accessSecret. I need to make a request to a url from my apex code. Is there any library or a way to make this request. In java I ...
0
votes
1answer
25 views

Using Salesforce oauth to make calls to own account/app

We use salesforce in our website. I'm new to it, and still can't find a way to calls REST api to our own account without going long way of visiting oauth login page, granting access etc(oauth flow). ...
4
votes
1answer
437 views

Canvas App started sending GET instead of POST

I have a canvas app that is setup to use the signed request (POST) access method, and when I test the app via either the tab that it creates or the canvas app previewer it sends my webserver a POST ...
1
vote
1answer
87 views

How to access the context in the canvas app using payload?

Based on the canvas documentation, i have setup the canvas app so that the authentication is OAuth. Also, I have been in the assumption that OAuth flow can be handled entirely through javascript ...
0
votes
0answers
567 views

How to Access contacts of Salesforce account from External Modules/Portals using OAuth

I am creating an application in angularjs. and I want to import contact of salesforce account in my application. I have already got response of access_token and I am passing given below url. ...