Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
1answer
36 views

Cannot connect a Salesforce org using Authorize an org in VS Code

Using VS Code, after I enter the command line "Authorize an org" I get redirected to Salesforce login and can successfully log in. However I then get the error "This site can't be reached" The URL ...
1
vote
1answer
21 views

Add a custom header property in JWT assertion for OAuth

How do I add additional header properties to my JWT using the JWTBearerTokenExchange Class? (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/...
0
votes
0answers
18 views

React.js GraphQL web app returning random null values

I'm working on a React.js web app that leverages GraphQL for accessing a combination of varying endpoints, including our org's SF data. My only issue is isolated to my Salesforce progress. In general, ...
2
votes
0answers
29 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 ...
0
votes
0answers
38 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
1answer
20 views

Token generation for Einstein Sentiment API

I am trying to implement the sentiment api but having issue while generating the access token. I have uploaded einstein_platform.pem file in Files in Salesforce. ContentVersion con = [SELECT Title ...
1
vote
0answers
30 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 ...
0
votes
0answers
9 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
1answer
24 views

Redirect to Authentication Provider Page instead of salesforce login page

I have created an open id connection between external authentication provider and salesforce. Now the requirement is when my domail url is entered in browser, it has to redirect to authentication ...
0
votes
1answer
37 views

Restrict the user to get oAuth token from custom app in salesforce

we have an android app which is connected with Salesforce. From the Android app, we will pass the username and password to the salesforce to get oAuth token. I have created one checkbox field i.e. ...
0
votes
1answer
35 views

How is named credentials & auth provider with connected app used? Can i have scenario where it is needed?

I have seen people use auth. providers that has client secret and id of connected app and authenticated using named credentials. The named credentials stores the oauth refresh token but I am not ...
1
vote
0answers
35 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 ...
0
votes
1answer
170 views

OAuth Error when attempting to Deploy the ApexMocks open source library in Trailhead unit 'Apply Unit of Work Principles in Apex'

I'm logged in to Trailhead as myself and working on this unit: https://trailhead.salesforce.com/content/learn/modules/apex_patterns_sl/apex_patterns_sl_apply_uow_principles Scroll to 'Preparation for ...
1
vote
0answers
54 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","...
2
votes
1answer
70 views

Authenticated Oauth workflow required constant login

I am very new to the Salesforce API. I am creating a library which connects to Salesforce and accesses data etc. I am implementing the Web Server Oauth Authentication workflow (https://developer....
2
votes
0answers
85 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 ...
1
vote
1answer
144 views

Salesforce calling external application using OAUTH

I need to call an external service FROM salesforce Authenticating against the External application is done via OAUTH so basically I need to write APEX code that uses HttpRequest and passes in the ...
0
votes
1answer
35 views

OAuth 2.0 Device Authentication Flow - invalid device code

I am trying to implement OAuth 2.0 Device Authentication Flow. In first step i received device code successfully. Then i have created JWT token using device code and and other details. Send it to ...
2
votes
0answers
21 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. ...
0
votes
0answers
54 views

Integrate with XERO unable to get auth_verifier

I want to integrate xero data into salesforce. For Integration with salesforce i want to follow 4 step(Using Auth1.0) https://api.xero.com/oauth/RequestToken https://api.xero.com/oauth/Authorize ...
3
votes
1answer
53 views

Is session duration guaranteed?

Let's assume that our session timeout value is set to the default 2 hours. The documentation defines this value as Length of time after which the system logs out inactive users. If the user is ...
0
votes
0answers
47 views

NForce OAuth Connection Issue

I'm having issues connecting to Salesforce through my app. My goal is to create an account for the user when a button is clicked, and that the account is created by automatically logging into ...
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 ...
0
votes
0answers
60 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
24 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
30 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? ...
3
votes
1answer
115 views

How does the automatically created connected app works when I use workbench?

I've read this article but I'm still confused about what happens when I approved the access from workbench. The connected app "Workbench" seems automatically created in my org when I approve the ...
0
votes
0answers
5 views

How to launch custom visualforce tab from a visualforce page, which is used as entry point for canvas app

I am showing list of custom object records on Home page. What I want to do is to add a link to each record, which will open canvas app in custom visualforce tab My canvas app should be able to take ...
0
votes
0answers
26 views

Any one implemented Salesforce to JIRA intrgration using Oauth? [duplicate]

We have looked in to some connectors but client is not ready to pay for those. Please help.
0
votes
0answers
128 views

Salesforce Connected APP Query

I have a query on the Salesforce Oauth2 Process. I'm Using salesforce API's from my web application using Oauth. Below are the steps i did. create a connector app in my company SFDC production ...
0
votes
1answer
32 views

OAuth with 3rd party providers

I'm trying to integrate Salesforce with Google apps in Apex. For this I need to do OAuth with google. However, I'm confused with what value should be given for redirect_uri to google. I can create a ...
0
votes
2answers
220 views

What is difference in Web Server and User-Agent OAuth Authentication Flow

I have just started learning Rest API from developer guide. I'm not able to understand the difference in Web Server and User-Agent flow, both seem to be same, the only difference in Web Server is ...
1
vote
1answer
356 views

Is there any way to generate Authorization Code programmatically

I've come in such a circumstances where I need to pass authorization code without oauth login. User will be already login in salesforce and will be clicking on external link and that external server ...
1
vote
2answers
546 views

oAuth 2 token Request Invalid

I have created a connected app in salesforce so that the external system can connect to our org. They are using oauth2 so i have set it up accordingly and shared the client key and client secret. ...
2
votes
1answer
387 views

Google OAuth and UI - is is possible to pass back the authorization code not in the URL?

Is it possible to use Google OAuth and have no UI ever? My thought is: save the account credentials and refresh token into a custom setting and keep calling that every time. So the flow would look ...
4
votes
1answer
256 views

Google OAuth and Authorization Code

I have a two part question but I will break it up into two separate posts. Hopefully the first question will answer the second...The first ask is: I am working through the Google OAuth flow and would ...
0
votes
2answers
69 views

Salesforce API Access without App-Register?

We have to design an application and retrieve data from salesforce. Therefore, I have to authenticate my web app to Salesforce to make API calls. As I read in the documentation, I need to define our ...
0
votes
0answers
25 views

OAuth Single Sign On Issue

I am having some trouble setting up an OAuth SSO connection using Salesforce Community. I have created the connected app for Oauth and verify this works with my external application when I just use ...
0
votes
0answers
65 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
1answer
134 views

SSO - delegated/federated limitations with community

I'm looking into implementing SSO for customer community. I've been reading the documentation on SSO implementation using either delegated or federated authentication. I have not done SSO before so I'...
0
votes
1answer
153 views

Java - Creating BulkConnection object with Oauth token

I have successfully been able to create a bulk API connection with the following code that calls the SOAP auth endpoint: ConnectorConfig partnerConfig = new ConnectorConfig(); partnerConfig....
1
vote
0answers
50 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 ...
2
votes
1answer
852 views

Username-Password OAuth Authentication for community users?

I have a native ios app and i want to login using the username password flow, From the POC i made i discovered that for community user, i dont get a security token which i was using while REST call to ...
0
votes
2answers
322 views

INVALID_SESSION_ID error when external app is calling GETmethod on salesforce

I have created webservice class with Get method. I have created Connected app and I have consumer key and consumer secret.But I don't have knowledge on how to use it. When external app is calling ...
0
votes
0answers
128 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 ...
1
vote
0answers
247 views

Named Credentials not working with Twitter API [closed]

So I have set up a Named Credentials with information about my Twitter App. I know the authentication is working correctly becacause my named credential looks like this: And it says I am ...
1
vote
1answer
207 views

Persisting OAuth Token in Apex

So I've been working to persist a logged-in Users session without the user having to log back in. This would be done with the "OAuth 2.0 Refresh Token Flow". However, I'm having trouble mapping out ...
0
votes
0answers
38 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
2answers
243 views

Pass parameters through Redirect URI in oauth flow, to know sandbox or regular

I use the oauth flow to allow users to authorize my Salesforce app to access the API on their behalf. Depending on input in my app, I either prompt them with https://login.salesforce.com/services/...
0
votes
0answers
34 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/...