Questions tagged [authorization]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
59 views

Issue while Authorize an salesforce org in VS Code failed, due to Invalid request method: OPTION

I have installed VS code, Salesforce CLI with extensions, and Java. I have created the project. After that, I tried to authorize an org in vs code. But I faced the issue as Starting SFDX: Authorize ...
Madhavan p's user avatar
0 votes
1 answer
31 views

Log in with different custom link but Salesforce only recognize as 1

I tried to Authorize an Org with Custom because my Org has custom domain I logged in to PROD with custom-domain.lightning.force.com and alias custom-prod I logged in to UAT with custom-domain.sandbox....
Pam's user avatar
  • 107
0 votes
0 answers
30 views

Salesforce Mobile SDKv10.2.0 Issue Login

While changing the oauthRedirectURI to a custom url ex: https://myURL.salesforce.com/services/oauth2/success (production) I can login successfully but it got stuck to the Remote Access Application ...
Shayane's user avatar
-1 votes
2 answers
49 views

Authorize Application Like Workbench

I want to create an application that integrates to Salesforce - just like Workbench (https://workbench.developerforce.com/login.php). Every single guide I find wants be to create a connected app. Isn'...
Simon B. Nielsen's user avatar
2 votes
2 answers
7k views

Authorize an org failed in VS code

I am new to learning lightning web component. I have installed VS Code, the salesforce extension pack inside VS code, Salesforce CLI I am trying to complete the Quick Start: Lightning Web Components ...
Amara Eledu's user avatar
3 votes
1 answer
185 views

Salesforce oauth web server flow authorization - security issue

I have a react front-end app and an express server back-end. From my client app, I link to a route on the express server. In that route, I issue a response.redirect to the Salesforce oauth endpoint ...
kcamp37's user avatar
  • 53
-2 votes
1 answer
354 views

Not authorizing sandbox in VS code

I am getting error while authorizing sandbox in VS code. Earlier I was successfully authorized old sandbox but now it is giving error. After Users\PJ20912 I am not able to see path in my computer. Can ...
Varsha Yadav's user avatar
0 votes
0 answers
616 views

Oauth2.0 Authentication code generation from client id and secret in Apex code

I am not able to get the Authorisation code Oauth2.0 from Apex code, However i can get the same from Postman callout. Is it possible to get the authorisation code from apex? I am using the below ...
neha rai's user avatar
-1 votes
1 answer
822 views

Salesforce Org Autorize Error

Hi guys I have a problem with authorize to my Sandbox, I used this command to authorize "login --setalias "MyOrg" --instanceurl "MyOrgUrl" --setdefaultusername" and ...
Nikita Ershov's user avatar
0 votes
0 answers
25 views

Managed Package - Allow only application code, and few authorized users, to insert records of a custom object

We have a custom object in our core managed package (visibility is public). There are a bunch of other managed packages that work alongside the core managed package and have code to insert records of ...
Prateek Mathur's user avatar
0 votes
0 answers
610 views

Named Credential is not automatically refreshing the token

I am using a Tooling API credential to authenticate against the same Salesforce org so that I can get some tooling API data in Apex. I am using oauth 2 and initially my integration user has to go ...
Strong Like Bull's user avatar
0 votes
0 answers
105 views

How to get Salesforce to support Elliptic Curve Signatures (ECDSA) signatures?

In my production org, when going to the URL xxx.my.salesforce.com/id/keys, I noticed that all the keys (4 keys in total) are "alg": "RS256". I am trying to integrate Salesforce (...
compski's user avatar
  • 1,342
0 votes
1 answer
87 views

HttpCallout to external Worldline API authenticaion not working but same call working frrom Postman

I'm currently working on interactions from SFDC to Worldline APIs and I have an issue with the authentication to their API. I have followed what they wrote here and the generated authorization header ...
Radu Popescu's user avatar
0 votes
1 answer
2k views

Unexpected end of JSON input when trying to authorize my sandbox from vscode

I am trying to authorize my sandbox org from vs code > After logging in with my credentials, I keep on seeing this output from the browser which I Quoted below "Unexpected end of JSON input ...
Selva Karthik's user avatar
0 votes
0 answers
198 views

Authorization Code Flow Using Salesforce Connected App

I am trying to understand authorization code flow using salesforce connected apps. I have two different Salesforce orgs I have created a connected app in one Salesforce org which has the following ...
Madhurima's user avatar
  • 1,285
0 votes
1 answer
276 views

Custom Authentication Provider - extract OpenID Connect token (id_token)

I am considering implementing a Custom Authentication provider to substitute for using the OOTB OAuth/OpenID Provider because I need to extract the id_token (in JWT format) from Okta but this is not ...
jordan.baucke's user avatar
3 votes
3 answers
5k views

Error while Authorizing an ORG using VS Code Cannot read properties of undefined (reading 'setContentsFromObject')

Created a New Project in vs code SFDX- Create Project SFDX-Authorize Org when i try to i get error Cannot read properties of undefined (reading 'setContentsFromObject') This is most likely not an ...
Naveen's user avatar
  • 65
1 vote
1 answer
1k views

Authorizing the sandbox through VS code failure

I keep getting error when I attempt to authorize my sandbox on VS code. The problem is: I follow the steps => ctrL+shift+P > SFDX:Authorized an ORG. I select test.salesforce.com page after ...
Alan's user avatar
  • 21
1 vote
0 answers
268 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 ...
bonzi's user avatar
  • 155
3 votes
0 answers
5k 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 ...
Nicolas Vuillamy's user avatar
0 votes
1 answer
259 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 ...
Bilesh Ganguly's user avatar
1 vote
0 answers
341 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 ...
Sohan Sirvi's user avatar
0 votes
1 answer
2k 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 ...
Ghanekar's user avatar
2 votes
1 answer
752 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 ...
sea-rob's user avatar
  • 73
3 votes
0 answers
224 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 ...
bonzi's user avatar
  • 155
0 votes
1 answer
1k 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 ...
Strong Like Bull's user avatar
3 votes
1 answer
13k 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 ...
Joaquin Vargas's user avatar
0 votes
1 answer
1k 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. ...
arun's user avatar
  • 13
1 vote
0 answers
176 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
Teja's user avatar
  • 11
0 votes
1 answer
2k 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 ...
Mohammed saeed Baig's user avatar
0 votes
2 answers
3k 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 ...
sgt_pepper85's user avatar
1 vote
1 answer
1k 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 ...
Tester's user avatar
  • 11
1 vote
0 answers
1k 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 ...
N_H1922's user avatar
  • 315
4 votes
5 answers
11k 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 ...
unique user's user avatar
7 votes
3 answers
3k 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)...
SAM's user avatar
  • 71
2 votes
1 answer
684 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&...
user2956476's user avatar
1 vote
0 answers
234 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 ...
Suneel's user avatar
  • 1,341
1 vote
0 answers
259 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 ...
Suneel's user avatar
  • 1,341
2 votes
0 answers
1k 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": &...
SFDC_Beginner's user avatar
0 votes
1 answer
1k 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 ...
Bilal Jalil's user avatar
1 vote
4 answers
18k 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 ...
Mitch Spano's user avatar
  • 1,575
0 votes
1 answer
613 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 ...
Amyn's user avatar
  • 1
1 vote
1 answer
654 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 ...
shaharyar's user avatar
0 votes
1 answer
92 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 ...
BlondeSwan's user avatar
  • 1,088
1 vote
1 answer
1k 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?...
Shubham Sarkate's user avatar
0 votes
5 answers
4k 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 --...
Zhuang Paulus's user avatar
0 votes
1 answer
419 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 ...
rosghub's user avatar
2 votes
1 answer
1k 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 --...
Theodoor's user avatar
  • 441
1 vote
1 answer
311 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 ...
willard's user avatar
  • 997
2 votes
0 answers
337 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....
Hcabnettek's user avatar