Questions tagged [authorization]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
28 views

If I change a Connected App's OAuth Scopes, do users need to re-authorize so that the connected app now has those Scopes available?

I have created a Connected App in "Org A" which users are self-authorizing in another org, "Org B". If I add a new OAuth scope to the Connected App in "Org A", will the ...
user avatar
  • 125
0 votes
1 answer
41 views

Method does not exist or incorrect signature: void getAuthNetCreds() from the type API_authorizeDotnet

Method does not exist or incorrect signature: void getAuthNetCreds() from the type API_authorizeDotnet Guys This is the small Code (Apex). Please help me ASAP. public class API_authorizeDotnet { ...
user avatar
0 votes
0 answers
778 views

Quick Action: You can't perform this action on this page

Since Spring22 upgrade, a strange behaviour has been observed and despite our investigation, we have not found the solution yet. When we click on a custom Quick Action on some Accounts (and only on ...
user avatar
0 votes
1 answer
38 views

Cannot update object in an AfterInsert Trigger due to an authorization exception

Following is the error that I'm receiving. CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY:zuoraSubscriptionTrigger: execution of AfterInsert caused by: System.DmlException: Update failed. First exception on ...
user avatar
0 votes
0 answers
40 views

Users Logged Out Automatically from Connected App

We have connected iOS App which uses mobile SDK Version 7.2,when the iPad is idle and used back after sometime, users are getting logged out of the application. They been asked to login back to the ...
user avatar
0 votes
1 answer
77 views

Unable to get oAuth access token for sandbox after making HTTP POST from postman. Access token is returned for Production environment

I have created a connected app in sandbox. I Have set Selected OAuth Scope = Full I Have relaxed IP restrictions in connected app policies. When i make HTTP POST to get access token, error is returned ...
user avatar
2 votes
1 answer
252 views

Named credential JWT is not appearing in Authorization header in callout

I've configured a Named Credential to use the JWT authentication protocol (not JWT Token Exchange), but when the component makes a call to my service using the named credential, I don't get the JWT as ...
user avatar
  • 73
3 votes
0 answers
42 views

Easy way to do a daily check to see if OAuth2 Connected App is authorized correctly and can access data via API?

I want to do a daily check to see if my Connected App (that is authorized with OAuth2) has a valid authorization and I can query information from the Org using the API. Is there a way to directly ...
user avatar
  • 125
0 votes
0 answers
369 views

Setting up MyTrailHead subdomain results in Auth Provider error No_OAuth_Token

I am trying to set up a MyTrailhead subdomain on a sandbox org as mentioned here: https://help.salesforce.com/s/articleView?id=sf.mth_set_up_your_mth_subdomain_and_namespace.htm&type=5 My user is ...
user avatar
  • 245
1 vote
1 answer
2k views

ERROR: We can't query your org. Getting this error after Authorize a Dev Hub

so, I'm pretty new to salesforce development and I got this error while trying to Authorize a Dev Hub, I already enabled the Dev Hub and I couldn't find anything anywhere to solve this error. Also, I ...
user avatar
0 votes
0 answers
106 views

Authorization Code Web server Flow in Lightning Component

I have trying to build an integration with authorization code web server flow in lightning component. Initially I had done the same via vf page and the redirect uri is the VF page url which I had ...
user avatar
  • 165
0 votes
1 answer
179 views

when I use in postman I recevie this error No_Oauth_State: State was not sent back

can you please resolve this issue when I try to get the new access token in the postman i receive this error No_Oauth_State: State was not sent back We can’t log you in because of the following error. ...
user avatar
  • 13
1 vote
0 answers
33 views

Vscode authorisation taking long time

In vscode I was unable to authorise a org even I set Java path and salesforce cli path as well but still taking long time and tried plug-in as well can anyone help me to authorise an org
user avatar
  • 11
0 votes
1 answer
696 views

can we authorize vscode using session id? because i am not able to authorize , it gives error that no event found

Hi so i am trying to authorize the my org in vscode using the below documentation https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_existing_access_token.htm but ...
user avatar
0 votes
2 answers
641 views

Log in to salesforce from a react app

I need to request an authorization code so my application can make a simple request to salesforce. Hitting the url in the article redirects me to the right page where I can grab the code, but I first ...
user avatar
1 vote
1 answer
250 views

Cannot enter to community using SSO

I have an IDP provider(from third party) and configured an SSO connection (on my org). After authorization on IDP, I try to log in to the community by following the link I took in the SSO settings for ...
user avatar
  • 11
1 vote
0 answers
256 views

BulkAPI v2 with python fails while the same request with postman works fine

I am trying to get some query results using bulk api from Python. I have been able to get the token but I run into an error when I try to create the batch job based on documentation but I run into ...
user avatar
  • 155
2 votes
5 answers
4k views

Why is the "SFDX: Deploy Source to Org" function missing?

I started experimenting with LWC and ran into this problem. What I did in VSC: - Create Project with manifest; - Authorize an Org; - Create Lightning Web Component; - Create Scratch Org and assigned ...
user avatar
7 votes
3 answers
2k views

SFDX: Authorize an Org hangs after login attempt

All, I am on a Windows 10 laptop with the latest patches and updates from Microsoft Version 10.0.18363. When I attempt to Authorize an Org it opens Google Chrome Version 88.0.4324.190 (Official Build)...
user avatar
  • 71
0 votes
0 answers
191 views

How does stateToPropagate work when extending Auth.AuthProviderPluginClass

I have created an apex class that extends the Auth.AuthProviderPluginClass. Everything is working but I have a requirement to pass "language":"fr" or "language":"en&...
user avatar
1 vote
0 answers
27 views

OAuth login page redirecting to source org

I am using OAuth web server flow to authenticate one salesforce org(source) with another(it can be any other salesforce org apart from source org). When I send user to authenticate himself into target ...
user avatar
  • 1,301
1 vote
0 answers
108 views

Authorization Code disappearing from Lightning URL parameters

I am trying to integrate one salesforce org with another org using OAuth Web server flow. I provided callback url as the lightning app page. Within the LWC component on the page, I have code to ...
user avatar
  • 1,301
2 votes
0 answers
573 views

Named Credentials with OAuth getting AUTHENTICATION_FAILURE Message on Save [closed]

Getting Following error when i tried to save Named Credential with OAuth 2.0 Authentication Protocol Named Credentials: { "name": "AUTHENTICATION_FAILURE", "message": &...
user avatar
0 votes
1 answer
577 views

Get Permanent Authorization Code for Salesforce API [duplicate]

I am new to Salesforce integration.I have a web application and want to post user data to SalesForce account.The examples available for this purpose required SalesForce login when try to get ...
user avatar
1 vote
2 answers
6k views

Access Restricted for API Only Users

When I attempt to login using SSO, I get prompted for two factor authentication and when I enter the 2fa code, I am greeted with a message that says "Access Restricted for API Only Users - You’re ...
user avatar
  • 1,345
0 votes
1 answer
225 views

Validate Salesforce Access Token via custom backend app

The usecase is very simple I have a client app SPA in Angular(APTTUS eCommerce) using Salesforce Login for User SignIn. I need to call a backend API(custom c# application) from the SPA to fetch data ...
user avatar
  • 1
1 vote
0 answers
363 views

invalid_grant: expired authorization code when using OAuth2 flow

I am using OAuth2 to authorize the user I generate the URL at the backend send the url to the frontend (which is in VUE ) which open it in the new window the callback url is one of the route of the ...
user avatar
0 votes
1 answer
47 views

Using a Connected App to upload a large amount of data

I am attempting to use a connected app to upload a lot of data to our Salesforce instance using our API but am running into an issue with not receiving an access token every time I request one. In ...
user avatar
  • 1,000
1 vote
1 answer
573 views

"Application not found" error while authorizing an org using visual studio code

I am trying to authorize an saleforce org from VS Code using salesforce CLI but I am facing following error "Application not found" (please refer attached screenshot for more details).What should I do?...
user avatar
0 votes
5 answers
3k views

SFDX: Authorize an org error: listen EACCES: permission denied 127.0.0.1:1717

I have been using DX for quite some time. Authorizing an org either through command palette or with a command in terminal had never been a problem [Command is like this: sfdx force:auth:web:login --...
user avatar
0 votes
1 answer
173 views

API access without username and password

I'm writing a simple nodejs application that signs in to the api with a username, password and security token, obtains an access token which is used to make api calls. Basically, the app is ready for ...
user avatar
2 votes
1 answer
814 views

Error invalid_grant - expired authorization code while running sfdx force:auth:jwt:grant

I run the command from my build job within Teamcity CI: sfdx force:auth:jwt:grant --clientid '%SFDX_HUB_CONSUMER_KEY%' --jwtkeyfile config/server.key --username %SFDX_HUB_USERNAME% --setalias hub1 --...
user avatar
  • 382
1 vote
1 answer
163 views

Customer.io: webhook access_token update

I'm trying to create a webhook from customer.io that will connect to Salesforce via the REST api. As part of that, I need to grab the access_token. This is fine for a while, but the token will ...
user avatar
  • 978
1 vote
0 answers
236 views

How can I prevent unauthenticated users from downloading an attachment?

I have a community and internal links to attachments. They end with ...servlet/servlet.FileDownload?file={ID} When the user clicks the link, a window.open(fileUrl) is called. This prompts to download....
user avatar
1 vote
1 answer
255 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 ...
user avatar
  • 619
1 vote
1 answer
39 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 ...
user avatar
  • 390
1 vote
1 answer
239 views

Using Named Credentials With 3rd Party Authorization Token [duplicate]

Trying to use point and click External Services but unsuccessful with Named Credential authorization. A 3rd party service just requires the Authorization Token be sent with request. Not ...
user avatar
  • 1,446
1 vote
2 answers
1k 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 ...
user avatar
  • 555
0 votes
1 answer
36 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 ...
user avatar
  • 2,233
2 votes
1 answer
498 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://...
user avatar
  • 1,202
0 votes
1 answer
932 views

Not getting access token to call Rest API from postman

This is my request URL https://login.salesforce.com/services/oauth2/authorize?client_id=**clientId**&client_secret=**clientSecret**&redirect_uri=https://localhost:8443/RestTest/oauth/...
user avatar
  • 10.6k
0 votes
1 answer
184 views

How to login from external app without using salesforce login redirection?

I want to be able to login via a .NET app using a custom login page on my app so I want no redirection to the salesforce login page. I want the process to be internal.  So how can I implement a way ...
user avatar
  • 69
1 vote
0 answers
3k views

Salesforce DX - ENOENT error when trying to login

Recently I came upon an error which I cannot resolve. I have searched through google and did not manage to find the answer. I have installed salesforce CLI and when typing the command: in terminal:...
user avatar
0 votes
1 answer
49 views

Salesforce community pages url authorization

I am novice to salesforce, i have following usecase in my project developed using salesforce with vlocity. 1, restrict community users accessing URLs to community pages based on a flag (flag is ...
user avatar
  • 101
6 votes
1 answer
127 views

Strip Authorisation header from inbound REST Request

I'm integrating with a 3rd party data provider. The way their platform works is you must provide an endpoint to which they periodically send REST requests to with updated data etc. They happen to ...
user avatar
1 vote
0 answers
107 views

Canvas app framing issue (how to define domain of RemoteAccessAuthorizationPage.apexp)

We implemented a tool which uses salesforce oauth. This tool should be included into an opportunity page as canvas app. First of all: The oauth2 workflow works fine when I open the tool in a new ...
user avatar
5 votes
1 answer
1k views

Connected App built in SANDBOX has access to PROD

I created a ConnectedApp in my Sandbox environment (see below img for settings details). I noticed that I can use the consumer key and secret from my sandbox connected app to attain a PRODUCTION ...
user avatar
  • 890
4 votes
1 answer
808 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 ...
user avatar
  • 3,179
9 votes
2 answers
6k views

OAuth 2.0 JWT Bearer Token Flow - "user hasn't approved this consumer"

I am trying to get JWT Bearer Token Flow to work. But get the error user hasn't approved this consumer. I have read these posts: Salesforce JWT User Hasn't Approved This Consumer (Again) OAuth 2....
user avatar
1 vote
1 answer
83 views

The authorization page for Marketing Cloud

I need the authorization page for Marketing Cloud. For Salesforce, I am able to use the link below: https://login.salesforce.com/services/oauth2/authorize Yet, I need the Marketing Cloud version of ...
user avatar