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
5 views

OAuth2 popup window closes, main browser page does not obey redirect

For some reason, when I use OAuth, the redirect happens in the OAuth popup window a flash of a second before it closes. Shouldn't the main browser window be redirecting, and not the OAuth popup? Is ...
2
votes
2answers
25 views

Obtain enterprise WSDL via curl

I am trying to obtain enterprise WSDL by accessing https://cs15.salesforce.com/soap/wsdl.jsp?type=* URL via curl. For this, I have obtained access token through OAUTH2 method via the following curl ...
1
vote
1answer
13 views

Restricting users to access rails app authenticated via Salesforce

We are having a rails app and the authentication is based on Salesforce OAuth. Salesforce OAuth is used as our app requires salesforce objects. When we create a connected app in salesforce and use it ...
1
vote
1answer
25 views

How do I store 3rd party OAuth2 tokens in Salesforce?

Is there a standard mechanism for storing external app oauth tokens in Salesforce (smth like connected app but in the opposite direction)? I need my SF users to authorize within a 3rd party app and ...
1
vote
1answer
38 views

API for Validating OAuth Access Token

Here is my usecase, I have two apps, one written in rails and other is written in R. App written on rails acts as landing page. From there we can go in to app written in R. We are using Salesforce ...
2
votes
1answer
53 views

Getting Same access token for multiple login request for the same user

I have written code for authenticating with Salesforce. I am using Grant_type=Password. I am using some userName like "ABC" and password like "XYZ". I am making multiple request login with same ...
1
vote
1answer
22 views

White Labeling oAuth login page

We have a use case that requires our customers to login on our website. Our customer identities are stored in salesforce as part of our communities section. On our website we redirect users to ...
0
votes
0answers
11 views

OpenID Oauth API Authentication

I have a connected Application that is setup with the Oauth using an Open ID authentication provider server. The use case is a user logs into my website that uses the same authentication open ID ...
0
votes
1answer
24 views

Issue while retrieving access_token from call back URL inside Apex

Currently I am trying on oAuth2 user-agent flow between two SF orgs. Referring https://help.salesforce.com/HTViewHelpDoc?id=remoteaccess_oauth_user_agent_flow.htm&language=en_US guidelines. I am ...
0
votes
2answers
21 views

Salesforce1 Android App + OAuth Web Server Flow

I am building a .NET web application that authenticates Salesforce users using OAuth 2.0. Following the guide here, I was able to implement the web-server flow. However, now that I am getting ...
1
vote
0answers
9 views

How connect the community user with User-Password Flow via REST API? [duplicate]

I'm newbie in SalesForce development and need to get access to community pages using the User-password login. I already got access with this flow using a common user to authenticate. In this case, I'm ...
0
votes
0answers
36 views

Where to store client ID and secret for OAuth for a command line application

Salesforce expects client ID and secret from an application that wants to talk via Rest APIs. I'm writing a command line application that will be hosted on github. What's the recommended approach to ...
1
vote
0answers
22 views

Unable to connect to org with same instance using OAuthConnection

Create a connected app Add the callback URL to that connected app as the URL of a VF page. For Eg - 'https://c.eu2.visual.force.com/apex/mypage'. Connect to another salesforce org of the same ...
1
vote
1answer
19 views

CreatedBy field inaccessible by partner portal user

I have an app that accesses the API. Both regular users and partner portal users can login to the app. I am doing a query through the API on a custom object but the CreatedBy field returns null when ...
1
vote
1answer
16 views

Trying to dev a Web2Activity - Need direction

I am a web dev with novice experience implementing API integrations. I have a php based website that currently has multiple web2lead forms spread across the site. There are few instances where I ...
4
votes
1answer
131 views

Getting “unsupported_grant_type” error when using Angular.JS app + ExpressJS proxy

I know there's already a lot of discussion around the "unsupported_grant_type" error that occurs when using the Username/Password Authentication Flow, but I've exhausted through all other proposed ...
1
vote
0answers
24 views

OpenID Connect login returns Remote Error & ErrorDescription=427

To provide authentication via the external OAuth2 authorization server, I'm trying to configure Auth. Provider as an OpenID Connect type. After logging into the external server, I got an error page, ...
0
votes
1answer
48 views

Could not get Access token using Auth.AuthToken.getAccessToken in custom Registration Handler

Recently I follow https://help.salesforce.com/HTViewHelpDoc?id=sso_provider_facebook.htm&language=en_US to set up a facebook auth.provider, and put the callback URL in my facebook app. and the ...
0
votes
1answer
33 views

client_secret compromised, options?

We have no evidence to believe, but are acting as if, the client_secret has been compromised on our Salesforce OAuth 2 App. I was wondering what our options are: is it possible to generate a new ...
1
vote
0answers
14 views

Connected App -Oauth Usage details not getting captured

I have a custom Connected App configured in my org.We have an Integration profile with limited access and an Integration user(dummy user created just for connected app) .We have a 3rd Party ...
1
vote
0answers
134 views

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 settings api. The following code is working ...
1
vote
1answer
21 views

How do I see/change the Oauth2 callback URL for a connected app?

I created the connected app and everything is working fine. I am able to generate Oauth2 tokens and query objects. However if want to see/change the Oauth2 details like callback URL, I cannot see it ...
2
votes
0answers
45 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 ...
1
vote
2answers
61 views

How do I get a long-term API OAuth token?

I have some scheduled tasks that need to run for my Marketing Cloud app, and the 20-minute expiration on tokens causes problems. I can refresh, but it has to refresh a lot. And if two processes both ...
2
votes
0answers
66 views

How to enable SSO on mobile using Salesforce1

I need to launch another mobile app on the same mobile device from Salesforce1. I have implemented that functionality.It is currently just launching the other app by invoking the app specific URI. Now ...
0
votes
1answer
49 views

Integrating SFDC with SAP via ADFS

We are integrating SFDC and SAP via Lightning connect 2.0 and we are planning to use OAUTH 2.0 as authentication protocol. Net weaver gateway is exposing SAP data as a ODATA service. Here is what we ...
0
votes
0answers
16 views

How to use force-springsecurity-22.0.8 via a proxy server

I am using this sample project to access Salesforce resources with Oauth2 authentication. It works fine when I run it over an internet connection that does not use a proxy server, but it fails with a ...
2
votes
1answer
68 views

REST API: “INVALID_SESSION_ID” with valid token

I'm having some trouble accessing API endpoints using a valid token that I just got from the OAuth process. I'm passing data as I think I should and am trying to access any endpoint at this point ...
0
votes
0answers
18 views

How can I get SalesForce Quick Start to log in?

I am following these "quick start" instructions for using SalesForce API. When I try to run the application, it fails with: [LoginFault [ApiFault exceptionCode='INVALID_LOGIN' ...
1
vote
1answer
80 views

Accessing Named Credentials' data in apex

Is there a way of accessing the data (exact fields) stored in Spring 15' Named Credentials from apex? For example the username, password and endpoint link fields? And I don't mean for the callout, but ...
1
vote
1answer
61 views

How to issue/send access token from apex page to connected app

We have implemented 2 OAuth flows between our app and SF where SF is auth provider - Web Server and Username and Password Now we have use case where user is signed on SF and has to invoke our ASMX ...
1
vote
1answer
39 views

Validate if OAuth user has (correct) Connected App installed/setup

We allow our Salesforce customers to login to our own Salesforce Service Community by using OAuth ("Login with Salesforce"). To do so, we created in our customer's org a Connected App, set the ...
2
votes
1answer
56 views

Unable to fetch authorization code from Summer 15 Org

Created a connected app on the hub org In the connected app Enabled OAuth Settings Provided full access and Perform requests on your behalf at any time (refresh_token, offline_access) oauth scope. ...
0
votes
0answers
48 views

how to query salesforce to collect data from multiple SFDC orgs?

I'm Trying to access another SFDC org and retrieve their data through the QUERY API. to access the data the information I need is: Username,Password,Token,ClientID and ClientSecret. I'm connecting ...
3
votes
1answer
29 views

Not getting the refresh token in OAuth

I'm using this: ...
1
vote
0answers
22 views

Get Access Token in AuthProvider RegistrationHandler

I have a custom class that implements Auth.RegistrationHandler This class is used a a registration handler for my Salesforce Auth. Provider (basically "Login with Salesforce" in another Salesforce ...
1
vote
2answers
91 views

OAuth2 Connected Apps getting ClientID and Secret

I've got OAuth2 working in a small project using JSForce(fantastic library). I can authenticate and all seems to work fine. The problem is, how does this work on a large scale? The app I am planning ...
0
votes
1answer
65 views

Authorize Endpoint URL and Token Endpoint URL in Open ID Connect

I need to create an External Data Source to connect to third party system and I am doing it with OAuth mechanism.I need to create Authentication Provider with type as Open ID Connect before doing it.I ...
1
vote
0answers
53 views

Best way to parse “stringified” (sub-)Map<String,String>

In my Auth Provider RegistrationHandler, I received an instance of the Auth.UserData class, filled with users data (in this case it is an external Salesforce user). The usage is very comfortable, as ...
2
votes
2answers
32 views

Connected App OAuth scopes settings have no effect

I have a Connected App in Org A, which is used to let their users log into Community B in Org B. The registration handler works fine, but only the OAuth scopes inside the Connected App are not ...
2
votes
2answers
41 views

Accessing salesforce REST-API through greasemonkey script

Is it possible to query salesforce through its REST-API using a greasemonkey/tampermonkey script only ? If yes, can someone give me a hint on howw to achieve that. I have been going through ...
1
vote
0answers
56 views

Correct redirect_uri for Google Sheet (not web app)?

We have several Google Sheets that interact with Salesforce, all now broken with ouath1 deprecation. I've found lots of examples of oauth2 for web apps, but I can't make it work with a Google sheet. I ...
3
votes
0answers
47 views

Adding a callback URL to an existing connected app

I have a connected app I created a long time ago. I would like to add an additional callback url to the app. Before I do that, I need to be 200% sure that existing users that are already connected to ...
3
votes
1answer
106 views

OAuth web server flow - login redirect loop?

We have an OAuth Web Server Flow setup in our SF managed package that is used to authenticate our web service with Salesforce for API access. When a user first opens our app in SF, a call is first ...
0
votes
1answer
45 views

JsForce(nodejs) for the Oauth, its not returning RefreshToken

Using JSForce(nodejs), I create a new connection were it will returns accesstoken,Instance_URL and refreshToken and Userdetails. The thing is it returns accesstoken, Instance_URL and Userdetails but ...
1
vote
0answers
12 views

How do I contextualize the Fuel SDK to retrieve event data for a specific user?

Is it possible to get the Ruby FuelSDK to query for, say, the subscribers or events of another user who has installed an app? Do I simply need to set the internal_token? fuelsdk_client = ...
1
vote
2answers
105 views

Does the legacy token aka internal oauth token ever expire?

https://code.exacttarget.com/app-development/marketing-cloud-apps/single-sign-on.html describes the request->user->internalOauthToken as: An OAuth2 token that can access Email SOAP API. It ...
3
votes
2answers
268 views

OAuth Access Token Expiration

I have read many places that the access token session length is controlled by the client application and will expire "from time to time", but I cannot find a way for my application to calculate the ...
2
votes
0answers
30 views

Is it required to change OAuth endpoints based on custom domain?

We have done integration between .net application and Salesforce. Currently we are using the primary OAuth endpoints from .net application for authentication: For production: For authorization: ...
3
votes
0answers
174 views

Invalid Assertion error in OAuth 2.0 SAML Bearer Assertion Flow

I am trying to generate an OAuth token with the SAML 2.0 Bearer Assertion flow in Salesforce.com, but receiving invalid assertion error: { "error_description": "invalid assertion", "error": ...