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

1
vote
2answers
16 views

How to get claims of logged in user in Salesforce iOS SDK

I have integrated "SalesforceMobileSDK-iOS-Distribution" library in my iOS native application from this link to achieve scenario as mentioned below ...
1
vote
1answer
23 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
41 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
26 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
42 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
0answers
54 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
24 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
33 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
85 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
15 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
54 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
28 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
52 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
443 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
37 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
97 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. ...
1
vote
1answer
120 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
60 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
57 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
125 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
3answers
151 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
22 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
203 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
56 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
228 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. ...
2
votes
1answer
90 views

Authentication and Access Salesforce Account through Other Portals

I am developing an application in Angularjs and my requirements is to get login in my application through SalesForce, and access data of SalesForce. I have created developer account in Salesforce and ...
2
votes
3answers
763 views

Missing SOAP action header

Im trying to get the session ID of another user in the same org by sending the following request by using the data from my enterprise wsdl and its an developer edition. <?xml version="1.0" ...
4
votes
1answer
132 views

Callback URL for Deep destination in Connected App

We have a connected app and using oAuth. The requested URL is a resource within a connected app...so not the home page. It is dynamic so, it can request any page within the target app. How can we ...
0
votes
1answer
174 views

How to call REST webservice without username and password in request -

I have created one restful class: @RestResource(urlMapping='/showAccounts/*') global class ExRestController { @HttpPost global static List<Account> getAccounts() ...
1
vote
0answers
82 views

Salesforce to Quickbooks using oAuth 1.0

I am trying to connect to Quickbooks online from apex. I have created an App in IPP and got consumer key, consumer secret, Auth token, Auth Token secret. Now I am confused how to used them to connect ...
2
votes
2answers
174 views

REST OAuth connection for Bulk API queries

Is it possible to authenticate an OAuth app for the user and then make Bulk API queries on their behalf? The results are easily going to be more than 20k records each authenticated user. When I have ...
2
votes
1answer
170 views

OAuth callback through HTTP (not SSL) is possible?

In short: I need to set a Connected App to later use OAuth Web server Flow. The callback URL should be HTTP. My web server does not have a SSL certificate and I not able to get one. But SF give me ...
2
votes
1answer
148 views

How to authorize users to use SAML2 bearer oauth flow?

I am new in the forum as a signed up user but have been lurking for a while. I have the following setup: a connected app with a certificate associated associated the system admin profile to the app ...
3
votes
1answer
68 views

Username-Password Flow OAuth unable to access web page

I can't find any documentation to suggest this would be a limitation, but using my access_token from a usernamepassword flow I can access api endpoints but not a url like instance.salesforce.com/id. ...
3
votes
0answers
183 views

OAuth 2.0 JWT Bearer Token Flow giving a user hasn't approved this consumer error

I have setup a connected app and want to use the OAuth JWT. Based on my understanding of the salesforce documentation only preauthorized client can use this flow to get an access token. I have ...
2
votes
1answer
1k views

Retrieve session ID using OAuth Authentication

I am implementing salesforce in my ASP.Net application and currently I am able to have login process as Username & password but now I want to change it to OAuth authentication. So i am able to get ...
4
votes
1answer
452 views

OAuth 2.0 JWT Bearer Token Flow

I'm trying to perform the OAuth 2.0 JWT Bearer Token Flow: https://help.salesforce.com/HTViewHelpDoc?id=remoteaccess_oauth_jwt_flow.htm&language=en_US But I'm having this issue: ...
0
votes
0answers
57 views

Am i using the right encryption method for oauth 1.0

I am using oauth1.0 to connect to an external API from salesforce. I am using http://oauth.net/core/1.0/#nonce as reference point. To obtain a Request Token, the Consumer sends an HTTP request to ...
1
vote
0answers
25 views

Get a User's OAuth Connected Applications via API

Is there a way to get the list of oauth connected applications of a given user (of a set of users) via SOAP/REST API? Thanks, Uri
3
votes
1answer
148 views

OAuth with Active Directory Single Sign On

I am writing a Java App that will integrate with Salesforce using OAUTH + REST. In normal circumstances without any single sign on everything is cool. But the same app might be used to work with ...
3
votes
2answers
369 views

How do I retrieve the server and session id from the Salesforce iOS API?

I'm currently trying to hack in some functionality to download attachment data for an iOS Salesforce application. I'm going to do that using a direct HTTP request, but for that to work I need to pull ...
2
votes
0answers
86 views

How to call EverNote API in Salesforce (Apex)

I have a requirement for which I need to convert all the opportunities in to ENML and then upload it on EverNote. I have created the ENML. But how can I upload/submit the ENML on evernote? What is ...
0
votes
1answer
116 views

Problem using Salesforce API over OAuth with Rails

I use the databasedotcom gem, and at first everything works fine (I am able to list Salesforce resources and perform queries on them), but then at random it drops the connection and gives me ...
6
votes
2answers
673 views

Using OAuth 1.0 encoded requests for external webservice calls

I have a business requirement that necessitates a callout from Apex to an external .NET based web service that receives signed OAuth responses. There is no built-in support for this in Apex, but ...
3
votes
3answers
2k views

Server-Side REST Authentication

We are trying to interface with our SalesForce instance via HTTP. The idea would be to call some of our custom classes from outside salesforce but without any user interaction. Typical scenario is ...
3
votes
1answer
565 views

How to refresh a token retrieved from the Auth.AuthToken class

A Salesforce instance is configured so that users can log in using OpenID Connect and their Google credentials. I am trying to access the token provisioned by the login via google to make callouts to ...
4
votes
1answer
286 views

Integrate SAML With A Hybrid App Built Using Mobile SDK

I have been developing apps using the Mobile SDK for a while now. All my apps till date use the built-in oAuth mechanism provided by the Mobile SDK for authentication. I have now encountered a use ...
1
vote
1answer
1k views

How can we get access token url and authorize url in rest console oAuth authorization? [duplicate]

I am new i rest api and salesforce. I am trying to connect rest console with salesforce. For setting oAuth authorization i need access token url and authorize url. Where would i get these values ...
2
votes
1answer
133 views

client User-Agent authentication flow - Force.com

I recently checked the post on Digging Deeper into OAuth 2.0 on Force.com by Pat Patterson. Question In client User-Agent authentication flow, the token is sent in the redirect URI only. Now I ...
4
votes
1answer
311 views

Canvas Signed Request not being processed correctly

I currently have a canvas app deployed across multiple orgs. This app uses signed request to authenticate a user. Along with some visualforce pages. Just this morning the signed request suddenly ...