OAuth 2.0 is the next evolution of the OAuth protocol and is not backwards compatible with OAuth 1.0. OAuth 2.0 focuses on client developer simplicity while providing specific authorization flows for web applications, desktop applications, mobile phones, and living room devices.

learn more… | top users | synonyms

0
votes
0answers
23 views

Why isn't my redirect uri working with facebook toolkit?

I am attempting to integrate Salesforce with Facebook using the Facebook Toolkit and am running into an Authorization Required error. After much research, I'm stumped! I am getting this error: { ...
1
vote
1answer
18 views

If I connect through multiple users to Salesforce Bulk API, what counts toward API limit?

As stated by the title, I'm not sure if, having a connected app, the API limit is reached based on my license or users (they come from different customers, so each user has his own license with his ...
2
votes
1answer
39 views

How to connect to Salesforce REST API without OAuth? How does Jitterbit do it?

So what I read everywhere is that, in order to connect to Salesforce via the API, you'll have to authenticate using OAuth. But this involves creating a Connected App, which is 'cumbersome' for normal ...
0
votes
1answer
25 views

How to choose between oauth and saml [closed]

I need to push data from external system to salesforce. External system has got lot of communities with it. Each community should be linked with a salesforce org. We do have apex classes to pull data ...
1
vote
1answer
27 views

Error when validating External Data Source for SharePoint Online

I get the following error when trying to validate and sync my newly created External data source for SharePoint Online in Salesforce: "Status An unknown error occurred while accessing Files ...
3
votes
1answer
39 views

Misbehaving REST API on test.salesforce.com

We have several applications requesting and updating data in Salesforce through the rest api, this is all working fine on login.salesforce.com. we now are continueing development to ...
3
votes
1answer
19 views

How to generalize Integration components in Managed Packages

I am creating a managed package with a connected App to integrate with an external system( oAuth configured). The external system uses my developer organization's Consumer key and secret right now to ...
0
votes
1answer
37 views

How to change username jwt OAuth JWT?

I have couple of questions in jwt OAUTH flow. I am trying to use OAuth JWT Token Bearer Flow to connect to the Salesforce REST API from C#. I have configured a Connected App within Salesforce and ...
0
votes
1answer
44 views

How to set custom frame to iOS Salesforce Login Screen(UIWebView)?

I'm showing Salesforce login screen in my iOS native application, but their login screen (WebView) is covering my entire custom screen and I'm not able to show the status bar and navigation bar at top ...
1
vote
2answers
55 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 ...
2
votes
1answer
40 views

OAuth Username-Password Flow - Inconsistent login failure

Noticing this behavior in my Full Sandbox after refreshing it. Whenever a third party application is trying to loggin using OAuth Username-password flow it gets the below error 3 out of 5 times. But ...
0
votes
0answers
28 views

Can an API user be set inactive automatically? API returned “cannot reparent record” for active user

I have a web application that uses the Salesforce API to create Contact, Account, Opportunity records. We set up an administrator user with full permissions to use as the Oauth login user, and I use ...
1
vote
0answers
31 views

Salesforce OAuth Refersh Token - Invalid Scope

I'm trying to get Referesh Token as part of scope but I'm getting following error error=invalid_scope&error_description=the%20requested%20scope%20is%20not%20available This is my request ...
1
vote
1answer
33 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 ...
2
votes
0answers
37 views

OpenID Connect's Implicit Flow is available in Salesforce?

I'm trying to login to Salesforce by Implicit Flow using third-party OpenID Provider on localhost. After authentication and authorization on the OP, it responds Access Token and ID Token to ...
2
votes
2answers
28 views

What's the flow for refreshing access token with a refresh token?

So, suppose I managed to get refresh_token, what happens now: Should I perform a new access token request every time I connect (so I send the refresh token before connecting, every time) Try if the ...
1
vote
2answers
26 views

Validate portal users using OAuth 2.0

How can i validate portal users using OAuth 2.0? My current implementation is to send request to login.salesforce.com as : ...
2
votes
1answer
70 views

How to create a managed application and namespace for REST API

I am following up the post here: REST API without Connected App Although the answer was very helpful, I'm new to SF and need some clarity on some things: 1. How and why can a separate (free ...
2
votes
1answer
61 views

SAML Bearer flow problems?

I'm trying to follow this guide: SAML Bearer Flow I have the following PHP to build the assertion and post it: //header('Content-type: text/xml'); $assertion = ...
2
votes
3answers
53 views

OAuth JWT returns the same session ID on multiple requests

I am trying to connect to Salesforce from an external server and I am doing this via the OAuth 2.0 JWT flow to gain authorization into Salesforce. I construct the JWT token from the external server ...
1
vote
1answer
100 views

Viewing sharepoint documnets in Salesforce using Files Connect

I want to view my Sharepoint documnets in salesforce using "File Connect" introduced in Winter15 release for connecting to External Data source but i am facing a problem to connect to sharepoint. I ...
3
votes
1answer
38 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
88 views

Best API to use Send/Receive Salesforce Data

I'm working on getting a Salesforce API key currently so that I can develop a web-based application (probably php) to streamline a currently tedious process. My current workflow is as follows: Open ...
2
votes
1answer
157 views

Why isn't curl getting the session id?

curl -v https://test.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=" -d "client_secret=" -d "username=" -d "password=" I've tried this with instance name instead of test ...
1
vote
0answers
27 views

Accessing Salesforce session via oAuth maintains session across browsers

I am using oAuth 2.0 Web server flow to connect to Salesforce org and get the Access token and refresh token. I use the following URL to access a visualforce page that resides within the Salesforce ...
0
votes
0answers
38 views

How best to secure client_id + secret using - Rails + Restforce

I've successfully managed to set up an app using my developer account - it is currently making use of Ruby on Rails 4.2.beta2, ejholmes most excellent gem restforce and the very helpful tutorial and ...
2
votes
1answer
89 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
1answer
99 views

Static authorization token for REST API from external system

I am integrating an external system and they gave me an authorization token. I set the authorization token and it is working fine. I used SetHeader in HttpRequest. Now they want to send a REST ...
2
votes
0answers
20 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 ...
1
vote
1answer
32 views

What happens to Salesforce OAuth tokens when a user blocks your app or revokes access

I have a non-Apex app that relies on OAuth only. I'm trying to test out what happens if the user revokes access or blocks the app and/or then unblocks the app. In my limited testing, it seems that I ...
2
votes
1answer
120 views

Java Code to check validity (expiration) of access token using rest api

I am using username/password flow . I am getting access token . But when will that access token expires, so that I can request for new access token. i don't want to get access token with each request ...
3
votes
1answer
89 views

API calls and user context

Overview: Mobile device (call service on ESB) —> ESB (calls salesforce API to get data) —> Salesforce.Mobile devices and Salesforce supported by the same IdM system. Description: A custom API ...
3
votes
1answer
145 views

Instance Url related error when connecting to SOAP API using Access Token in Python

I am using salesforce-python-toolkit to connect to Salesforce SOAP API. I know how to connect to it using [user, password and security token]. But recently I have learned that I can connect to soap ...
2
votes
1answer
180 views

OAuth JWT Token Bearer Flow returns Invalid Client Credentials

I am trying to use OAuth JWT Token Bearer Flow to connect to the Salesforce REST API from C#. I have configured a Connected App within Salesforce and uploaded the certificate used to sign the token ...
0
votes
1answer
50 views

“App must be invoked via a signed request” shows in Canvas Previewer

I have connected App and added external link of Heroku to show as Canvas App. I have set the location Chatter Tab. In the developer account, my external application is accessible. It has set "Admin ...
0
votes
0answers
76 views

SFCrypto “keychain data missing or corrupted”

Intermittently getting the following error when logging in to iOS iPad app using Salesforce Mobile SDK. 2014-10-01 16:35:32:177 iPath[3381:60b] ERROR|SFCrypto|App id keychain data missing or ...
0
votes
0answers
19 views

How to test OpenID connect in sandbox?

I want to enable openid connect in Salesforce (google as the provider) Before doing that, I want to test it Can I test it in Sandbox?
1
vote
1answer
253 views

Getting remote access authorization error with Mobile SDK on iOS

When this happens during oauth on iPad, clicking the Not You link and reentering the username/pwd takes the user to a full screen web view of the Salesforce UI instead of my mobile app!!! Ugh! So I'm ...
1
vote
1answer
95 views

Revoke Refresh token not working

So I have a refresh token and it is showing under the user in the oAuth Connected Apps related list. I am sending this code to revoke but the oAuth Connected Apps still shows it in the list (yes I ...
2
votes
2answers
95 views

How to skip login and remote authorisation pages when authenticating using oauth webserver flow?

I want to access a rest webservice hosted in a salesforce org from another Salesforce org. I am using the web server flow for authentication. When hitting the authorisation URL, I am redirected to a ...
4
votes
1answer
247 views

Has anyone got the OAuth 2.0 JWT Bearer Token Flow to work initiated from Apex code now 'RSA-SHA256' signing is available?

This year old thread Connect apex and Google API using JWT to retrieve Oauth 2.0 token was started before the Crypto class included the 'RSA-SHA256' signing algorithm. Now that this algorithm is ...
2
votes
1answer
83 views

@future invocation of REST service on same org - how to get accessToken?

I have a business requirement to attach a pdf document (visualforce rendered as pdf) to Notes and Attachments on a record when that record gets updated. Since we can't use getContentAsPDF() in the ...
6
votes
2answers
312 views

“Session expired or invalid” problem calling an @RestResource from Apex in Winter '15 preview; UserInfo.getSession returns null for Force.com Sites

Based on threads such as Calling Apex Rest custom web service from Apex code we have HTTP calls in our Apex code (contained in a managed package) back to the same org authorized like this: ...
2
votes
1answer
214 views

Access REST API after Single Sign-on (SSO)

We have a heroku-hosted web app that used Salesforce as Identity Provider (IdP) to do Single Sign-On (SSO) between SFDC & other services. We know that in doing so our web app user are already ...
0
votes
0answers
120 views

Getting an INVALID_SESSION_ID: This session is not valid for use with the API error in managed package

I have a managed package which is calling the SOAP api using the current users session ID through the ajax toolkit. In certain orgs users are getting the following error when they load the app. ...
1
vote
0answers
45 views

Parameters set through the canvasApp in VF page not recieved in the connectedApp's client code

I am new to Canvas framework and stuck with some basic requirement I have created a connected app to integrate my application with salesforce through oauth flow. callback url destination is the ...
3
votes
1answer
94 views

OAuth2 Refresh Token Flow with Communities

I'm trying to satisfy a requirement for providing an API for communities users, where they can log into Salesforce, retrieve some data, and provide that back to a client. I have two questions around ...
2
votes
1answer
313 views

OAuth2 Refresh Token Flow - Unsupported Grant Type

I am attempting to obtain a token, using the Oauth 2 refresh token flow. I am using the REST Console in Chrome to perform the following POST operation: My URI is ...
1
vote
0answers
53 views

Finishing authentication after user is prompted to change password

My SF app is only the login page. All the access of the data is done using SF REST API. Our login page is a custom VF page. The problem is when the user first logs in, she receives the change password ...
1
vote
1answer
176 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 ...