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 [oauth2]

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.

0
votes
0answers
8 views

using oauth2 web app in marketing cloud

i have a web app authenticated app, i manage to get an auth code, after which i get an access token but when i use the access token i get 403 with no explanation. this is the url i use to get the ...
0
votes
2answers
35 views

OAuth 2.0 Auth token request failed with error invalid_request Must use HTTP POST

OAuth 2.0 Auth token request failed with below error { "error": "invalid_request", "error_description": "must use HTTP POST" } What does this error mean? I am using Postman. Have a connected app. ...
1
vote
2answers
49 views

Rest API call to Salesforce from site - one call only

I created a Rest service to insert/update contacts & opportunities from a donation page on my client's site. The web developer refuses to make more than one call from the script that posts to my ...
0
votes
1answer
23 views

sfdx force:source:pull -> Entity of type 'AuthProvider' named '' cannot be found

I am trying to do a sfdx force:source:pull from a scratch org where I defined and authenticated a Named Credential and Auth Provider (OAuth2 Named Principal). I get: • RetrieveFailed - Entity of ...
1
vote
1answer
17 views

Native Mobile App - Authorized by Salesforce - Access Token

We have SSO enabled for our org via ADFS using SAML. The single sign on is working absolutely fine. We have an native tablet app (custom) which has an option to launch Salesforce inside the app (as ...
1
vote
0answers
15 views

salesforce managed authentication provider scope

If I create a salesforce managed authentication provider following the steps here: https://help.salesforce.com/articleView?id=sso_provider_global_auth.htm&type=5. I don't want to create a ...
0
votes
1answer
29 views

Salesforce CLI not available in sandbox

Under Connected Apps OAuth Usage, Salesforce CLI is not available to install. How to get it like below image
0
votes
2answers
46 views

Username Password Auth Flow returning different response than expected

I'm trying to get the access token using Salesforce Username/Password OAuth flow. I have created a connected app, provided full access in the Oauth scopes and pre-authorized System Admin profile users....
0
votes
1answer
43 views

Please suggest a way to post to salesforce rest resource without using the username and password as the authentication

I'm trying to post to a Salesforce Rest Resource from a java console app. Currently I'm exposing it as a public resource via custom portals. I'm looking for suggestions for a way to implement the ...
1
vote
2answers
34 views

How to incorporate Consumer id and consumer secret in my REST API (Apex class)

I have a requirement where some external web forms would be calling our REST API to submit Lead. I have created a connected app, got the consumer id and consumer secret. I want my apex class to be ...
0
votes
1answer
25 views

Can multiple autorization_code co-exist for a single integration user?

I have a single integration User, which is used to authenticate a background integration job. This uses web-server flow. And to avoid storing username/password on the server, I have only supplied ...
4
votes
1answer
99 views

Create or update Automation with Marketing Cloud REST API new endpoint

there is an endpoint to retrieve automation using Rest API with OAuth2 token and GET method: https://{{tenant}}.rest.marketingcloudapis.com/automation/v1/automations/{{id}} In the response you will ...
0
votes
0answers
29 views

How do I debug an OAuth error? Error is returning “1800: There was a problem in setting up your remote access.”

We have an API-only connected app (publicly available). We have a single customer who cannot connect via the OAuth flow. They get the following response: "1800: There was a problem in setting up ...
0
votes
1answer
70 views

JWT Bearer flow vs. Username+Password flow in server-to-server integration

Official documentation and some SFSE answers advise against the use of Username + Password flow (Resource Owner Password Credentials Grant in oauth). The JWT Bearer flow is also recommended as a ...
1
vote
1answer
54 views

Authorize a DevHub using SalesforceDX without password

I am working on SalesforceDx and I have to authorize my devhub by just using Username of the org I dont want to enter password. I have tried JWT token for authorization but it uses an OPEN SSl ...
0
votes
1answer
60 views

Authentication Token with apex

I want generate a token, give this token to third-party application, and this app can authentificate into salesforce and call the web service. I want to create an authentication token, call a third ...
0
votes
0answers
51 views

How to store and use named credentials with OAuth

I have read this Where to Store Token Auth? and as far as I understand this, the best way for an OAuth based auth. is to use the named credentials. But I do not get the point how this work. In my ...
2
votes
1answer
47 views

JWT Token always expires after 'exp' provided in the claims

I've tried implementing a JWT Bearer Token Flow. I followed the documentation on here. The code is originally in Java but I managed to adapt it to c# as the code below shows. String header = "...
0
votes
0answers
29 views

OAuth calback to Salesforce after logging to External Identity Provider in Open CTI Softphone

I'm working under our solution of the Softphone using OpenCTI. On start screen in Softphone window, I show with our own OAuth provider login page. After login, the provider redirects to specified ...
0
votes
1answer
35 views

Two factor authentication using Security token

I need to implement 2fatcor authentication but the requirement is to get login to envirnment using client provided Secrurity token(Hardware token). Once user entered username and security token ...
0
votes
1answer
52 views

Login to OpenCTI softphone through the custom auth provider

I'm working under our solution of the Softphone using OpenCTI. Now I need to authenticate our customer's users through our OAuth2 provider. How I understood the best practice for using external ...
0
votes
0answers
72 views

SOAP API call OAuth 2.0 error

I'm using the postman to test one SOAP API call that is resulting on error 405 - HTTP verb used to access this page is not allowed. The page you are looking for cannot be displayed because an invalid ...
1
vote
1answer
13 views

oauth2 password flow bahaving different between my personal dev site and our corporate sandbox dev site

I'm learning the REST Api in order to write some integration code with our Salesforce implementation. As a first step, I signed up as a Salesforce developer, and did several of the tutorials. I then ...
1
vote
1answer
65 views

Salesforce OAuth2 Custom Attributes / Claims

I'm having trouble getting a custom claim attribute to come through in the id_token. I've got the scope set to OpenId and profile (both in salesforce, AWS Cognito and the URL). I've added the custom ...
2
votes
1answer
53 views

Need to call salesforce API from external system [closed]

I am creating an external app, where I need to get the data from Salesforce. I understand the use of Connected apps, and I won't be using the web based OAuth flow where user is redirected to https://...
0
votes
1answer
24 views

How to make a oauth authentication from salesforce mobile app? Web Tabs are not showing Allow Access? Pop up (iFrame Issue)

I have done a Device Flow Oauth using a ESP8266. Now i want to have the salesforce mobile app to authenticate my IoT device into salesforce. When the IoT device generates a OTP(User_Code), I open ...
0
votes
0answers
22 views

OAuth User-Agent Flow redirecting to a blank browser window

I'm trying to set up a chrome extension to talk to salesforce. I've set up a connected app with a callback url of 'chrome-extension://jifheclheidfillfkjkgngocmbiaollm/options.html' I'm using the ...
1
vote
2answers
83 views

Does Salesforce support the Client Credentials Grant for OAuth?

For every API I'm consuming from Salesforce so far, I'm using the Client Credentials Grant for everything that's just between servers (= no user involved). It seems that Salesforce itself does not ...
1
vote
1answer
63 views

Consume external REST API user-aware (without having to re-login)

I have an Apex class that is consuming a partners REST webservices. Currently all users of my app (in the installed org) access the service via a single API Integration user. We now want make the ...
0
votes
0answers
21 views

Deleting Connected App Impact

If I delete a Connected App which is associated with a hybrid Mobile App then will I be able to use the mobile app for login and API calls? I am able to successfully use the Mobile App (Login/API's/...
0
votes
1answer
18 views

What redirect URL we need to set to get google app oAuth token in salesforce apex?

Is there any way to put some static OR intermediate redirect URL for the google app redirect URL instead of this (https://ap1.salesforce.com/apex/GoogleAuth) hardcoded salesforce VF page URL. We are ...
0
votes
1answer
112 views

Named credential for gotoWebinar app (oauth v2.0)

Is it possible? I'm trying to do it but had some errors My steps where: 1) Create the app in the Developer Center. On the Application URL I left the suggestion https://api.getgo.com (I guess this ...
5
votes
1answer
472 views

Can I use an OAuth 2.0 token for API Integration in Enhanced Packages in the Soap API fueloauth token header

In Salesforce marketing cloud I have an installed package with an API integration. I am in the process of moving from the old OAuth token created via https://auth.exacttargetapis.com/v1/requestToken ...
0
votes
1answer
25 views

Which grant type to use when Third party is accessing salesforce [closed]

We have written the code in Salesforce and third party is accessing the data using REST. Currently they are using grant type=password to access Salesforce resources. Since it requires username and ...
0
votes
0answers
12 views

Authenticate and expose external azure report on an iFrame in Communities

I am trying to figure the best way of doing this. We have a report that gets generated in Azure that has customer details. What needs to happen is, when a customer logs into SF Communities, we ...
0
votes
1answer
52 views

Salesforce JWT Token for automation/background process

This is about JTW token for which my understanding is it last for long and can be used in automation/background process. For one of the project I generated the JWT token (https://help.salesforce.com/...
0
votes
1answer
50 views

Salesforce Integration with External System

I'm trying to develop an "oauth" integration for an app to be included on appexchange. Based on other applications that use the same protocol, I could not figure out where the "client id" is taken ...
1
vote
3answers
73 views

Login to salesforce with oauth 2.0 directly from external app using ajax

I want to be able to login directly from my .net application's login (without having to use the user's security token). And I was wondering if it was possible to send my username and password to the ...
2
votes
1answer
106 views

How do I install and preauthorize app so I can use the JWT Bearer token flow?

I'm trying to follow the instructions in https://help.salesforce.com/articleView?id=remoteaccess_oauth_jwt_flow.htm&type=5 and get an invalid request with an error description of "refresh_token ...
1
vote
1answer
31 views

JWT authentication without a username?

I'm working on a managed package that needs to allow an external web service to call an Apex REST endpoint within the package. As far as I'm able to gather, the best route is to use OAuth2 JWT ...
1
vote
2answers
51 views

How to get the Connected App used from an Apex trigger [duplicate]

I have an Apex Job that is being triggered from an 'afterInsert' trigger, but I don't want that Job to be executed if the insert is being performed by a specific external application. I just need to ...
2
votes
0answers
43 views

Authenticate Connected App (Mobile) with Single Sign on

I have a mobile app that uses OAuth to login users. That part works really well, but recently I was asked to make it work for SSO (Single Sing-On). The app as it is has a weird behavior. To be able to ...
1
vote
0answers
19 views

How is consumer secret key adding security to Oauth 2.0? [duplicate]

I am trying to understand what additional security the the consumer secret(client_secret) for OAuth 2.0 provides. If one want to avoid using the consumer secret when authenticating you can use the ...
0
votes
0answers
40 views

Commerce Cloud: setting External Login information via the Data API?

for an integration that we are developing, we'd like to prefill External Login data for a Customer via the CommerceCloud Data API. However, a suitable API call does not seem to exist: the Customer ...
0
votes
0answers
56 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 ...
1
vote
1answer
131 views

Unable to authenticate through REST API when using scratch org

I'm having some trouble getting the REST API to work on a scratch org. When I call the login endpoint I get the error "invalid grant". (This happens when I try test.salesforce.com as well as login....
0
votes
0answers
20 views

Einstein access token generation

I am using below code to generate the access token for sentiment api on einstein platform. But everytime I am getting value null. ContentVersion con = [SELECT Title ,VersionData ...
1
vote
0answers
51 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
1answer
44 views

Salesforce Oauth Token for Public apps

How the Workbench and other Public apps get access token for salesforce Even we didn't create any Connected App for that and Even for Sign in they redirect to standard salesforce login Page.I checked ...
3
votes
1answer
110 views

Uncommitted Work Pending - Working around DML then WebService

I am working with Salesforce Connect and I am storing my token and expiration times in an encrypted custom setting. My connection is through the client credentials Oauth 2 flow. When a user queries ...