Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [oauth]

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.

7
votes
0answers
239 views

Loading Static Resources When Accessing a Page WIth an OAuth Access Token

If you specify the 'web' scope for a connected app it's supposed to grant/provide access to Visualforce pages. I'm authenticating via the iOS mobile SDK and then attempting to use the access token I ...
4
votes
0answers
52 views

Lifetime of connected app record / tokens

With the recently announced plan to de-activate (and presumably at some point delete) inactive developer edition orgs, I've been wondering what's the lifetime of a connected app record created in a DE ...
3
votes
0answers
309 views

Force.com REST API - Web Server OAuth Authentication Flow

Im building a multi tenant application where each client has their own subdomain. For example: clientA.myapp.com and clientB.myapp.com I want to allow clients to integrate our app with their ...
3
votes
0answers
270 views

400 error on username-password flow

I'm implementing a partner system to an existing username-password oauth flow for SalesForce, and I'm trying to get the c# code to work. I've been working with a standard WebRequest variant, which I'...
3
votes
0answers
363 views

Salesforce Marketing Cloud/Exact Target API Authorization Endpoint for OAuth Authorization Code Workflow?

Does anybody know it? Their documentation discusses getting a user token here and here, but that's not what I need. The documentation clearly states on these pages linked about that "it is ...
3
votes
0answers
190 views

Using OAuth 1.0 encoded requests for external web service calls Error: signature_invalid

Please help me. I have a salesforce requirement that necessitates a callout from Apex to an external web service that receives signed OAuth responses. I am getting oAuth_token successfully. But ...
3
votes
0answers
215 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 ...
3
votes
0answers
342 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 ...
2
votes
0answers
39 views

Errors with Web Server OAuth Implementation

I am trying to implement Web Server OAuth flow from one Salesforce Org to another. Following is the Class which contains the logic. I am hitting custom rest api to insert Accounts using the access ...
2
votes
0answers
131 views

Salesforce OAuth2 invalid_grant: user hasn't aproved this consumer on AWS

I have developed a client application that accesses Salesforce REST API through OAuth 2 using the Go programming language. Everything works fine locally: I have a correct token, client ID, client ...
2
votes
0answers
22 views

Can Social Logon be used directly from a native mobile app?

We have a Customer Community with Facebook and Google set up as Auth Providers. In addition, we have a mobile app that connects to Salesforce using OAuth towards this community. This all works fine. ...
2
votes
0answers
48 views

Decrypt challenge in Salesforce from external system in 2FA

We are integrating salesforce with external system. External system has two factor authentication process. We are calling first URL to get challenge. - Working fine. We need to decrypt challenge in ...
2
votes
0answers
470 views

Connected App-Trusted IP Range for OAuth Web server flow

I am trying to understand the use of Trusted IP Range for OAuth Web server flow setting of a connected app but the documentation is not clear to me. Does it override profile level IP settings? How ...
2
votes
0answers
156 views

Canvas SDK and server side OAuth (.net)

I am attempting to connect our C# MVC application with Salesforce to use within Salesforce record pages (e.g. opportunity details) and a Visual force page. Using the Force.com-Toolkit-for-NET I can ...
2
votes
0answers
379 views

Auth.AuthToken.getAccessToken is returning a null value

So I have an Auth Provider setup through Microsoft Access Control Service that was created using this tutorial. Whenever I try and call Auth.AuthToken.getAccessToken('0xxx0000000000x','Microsoft ...
2
votes
0answers
341 views

what does “invalid_grant” error with “inactive user” description mean?

The title is pretty much the whole question, I have seen the "invalid_grant" error in the Oauth2 flow alot of times and the description is always "expired access/refresh token" just like the webpage ...
2
votes
0answers
494 views

JSForce Login Issue

I am using Jforce to connect to my developer account using oAuth. But i am getting error. This XML file does not appear to have any style information associated with it. The document tree is shown ...
2
votes
0answers
461 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 ...
2
votes
0answers
900 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 ...
2
votes
0answers
79 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 ...
2
votes
0answers
626 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 ...
2
votes
0answers
175 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 ...
1
vote
0answers
26 views

Posting SAML assertion to get an OAuth token

I have 2 service providers, SP1 and SP2 and I have obtained my SAML response from IDP into SP1. Now, in order to connect SP1 and SP2 I am using the oauth SAML response from SP1 and posting it to oAuth ...
1
vote
0answers
18 views

OpenID Connect single logout

I have a connected application (web site) that is using Salesforce as an authentication provider (OpenID Connect). And I'd like the logout on my site to work as a "single logout" - it should also log ...
1
vote
0answers
48 views

id_token not returned in JWT Bearer Token OAuth Flow

As per the JWT Bearer token documentation The id_token will be return if there is a pre-existing approval for the openid. I have existing approvals for openid for the user. Am I missing something in ...
1
vote
0answers
58 views

Google Login in Salesforce1 App Disallow Useragent iOS

We used to be able to use the mobile app for iOS without a problem. Now if we go to log in and click the Google Login button, the immediate message is a 403 disallowed_useragent message. Logging in ...
1
vote
0answers
85 views

[Talend SF Connection JWT]runtime exception https status 400-bad request message {“error”:“invalid_grant”,“error_description”:“audience is invalid”}

I am facing an error while trying to establish the Oauth connection (JWT) between talend ETL tool and salesforce : runtime exception https status 400-bad request message {"error":"invalid_grant","...
1
vote
0answers
67 views

How to delivery Salesforce API access in Managed Package when using Lightning Component

Trying to build managed package that can analyze metadata configuration, flow specifically. Building as Lightning Component. Looking for a solution to delivery a Named Credential capable of accessing ...
1
vote
0answers
439 views

OAuth Error 1800

I have created a connected app and added redirect URI of a Firefox Extension page. Im currently developing this extension. It gives this error: We can't authorize you because of an OAuth error. For ...
1
vote
0answers
170 views

cant make call to https://login.salesforce.com/services/oauth2/token from angular

im trying get acsess token in my angular app but i get 400 error bad request. from postman there is no problem and i get the token this is in my js code. i removed some info from my code here. ...
1
vote
0answers
36 views

Customizing an OAuth access token for app

I am setting up External Identity for authentication into a custom application. Provisioning access to various features within the application using custom object records that will be assigned to ...
1
vote
0answers
27 views

Getting an Error on Community When Trying to Work with Custom Auth. Provider

I've configured a community to work with custom Auth. Provider by selecting it on the manage community menu (Administration --> Login & Registration). After entering user name + password, it goes ...
1
vote
0answers
27 views

Can verification code emails be redirected or forwarded to another email address?

We have multiple users that login to the same Salesforce1 App company wide. When at a new site with a new WAN IP, the verification code prompt generates. Can that code be emailed to a different ...
1
vote
0answers
175 views

Community user impersonation - Single signon

we have a community portal setup and we have a third application running which uses this communication portal for single signon. That is for end users ..they login to third party application by using ...
1
vote
0answers
67 views

Can we use something other than a Salesforce User Account to access the REST API?

We're accessing the Salesforce REST API with one of our regular Salesforce user accounts. That use changed his password, which is a good thing, but that invalidated our OAuth token, which meant we had ...
1
vote
0answers
31 views

Can we OAuth without overwriting the user's current login?

We’re currently working on integrating our application with Salesforce as a canvas app and hit a snag. Our application uses OAuth to allows a single user to grant our app access to multiple orgs (...
1
vote
0answers
4k 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: ...
1
vote
0answers
410 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 ...
1
vote
0answers
464 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 ...
0
votes
0answers
8 views

.NET CORE: Send Custom XML as SOAP message for Triggerred Send Email

We are trying to achieve "Triggerred Send Email". https://webservice.boa.exacttarget.com/Service.asmx We are experiencing issues with soap message format being generated by visual studio wherein it ...
0
votes
0answers
42 views

I have the ClientID and ClientSecret, I receive the same error after multiple attempts

"https://developer.salesforce.com/docs/atlas.en-us.mc-apis.meta/mc-apis/error-handling.htm","errorcode":404,"message":"Not Found" Here is my request https://subdomain_name.auth.marketingcloudapis....
0
votes
0answers
47 views

Automatic login with Salesforce

I would really appreciate if anybody could guide me to achieve this requirement. A user has told me recently that in his company, the technology team has developed a desktop app whose main purpose is ...
0
votes
0answers
10 views

Community user needs to redirect to login page when logged out

We have a community and users who are using the community are logging into Community using Third party authorization. When logged out, it is showing that the user is still logged in with an error ...
0
votes
0answers
83 views

When would a Client Application be unable to use the User-Agent OAuth Flow (but able to use Web Server OAuth Flow)?

A Client Secret is no longer required for Web Server OAuth Flow. This is not a new feature (Spring'17), but I have not given it much thought until now. "If a client application can’t securely store ...
0
votes
0answers
29 views

Disable custom connected app from profile

I have a custom connected app that is used for OAuth purposes (outside of Salesforce). Therefore I don't need it to appear in the app launcher, unfortunately I see no way to remove it, at least for ...
0
votes
0answers
34 views

How to consume OAuth 1.0 webservice in salesforce

I have another application which I need to call and they are using OAuth 1.0. now I am calling their system endpoint, I have client id and client secret only. Do I need to generate token also? ...
0
votes
0answers
86 views

Salesforce Oauth 2.0 JWT

I am getting below - {"error":"invalid_grant","error_description":"user hasn't approved this consumer"} Dev org To Dev Org, below are the connected app -
0
votes
0answers
150 views

Embed Visualforce Page into Native Mobile app as Hybrid page

We have developed a native iOS mobile app that connects to Salesforce, users login through this native app using OAuth user-agent flow and a connected App. This all works fine. We are now trying to ...
0
votes
0answers
41 views

Update a Record's Fields in Production Org from External Website w/o Salesforce Login

I have a form on my WordPress website that collects additional information from customers. I want this information added to an existing record of MyCustomObject. To do this, I will need to make a ...
0
votes
0answers
37 views

Can not get token back from OAuth callback URL using CurrentPage.parameters

Can not get token back from OAuth callback URL using CurrentPage.parameters We have a connected app for which the callback URL is a visualforce page. https://myapp.na59.visual.force.com/apex/...