Questions tagged [authorization]
The authorization tag has no usage guidance.
95
questions
2
votes
1
answer
66
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 ...
-2
votes
1
answer
177
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 ...
0
votes
0
answers
249
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 ...
-1
votes
1
answer
308
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 ...
0
votes
0
answers
23
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 ...
0
votes
0
answers
365
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 ...
0
votes
0
answers
87
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 (...
0
votes
1
answer
81
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 ...
0
votes
1
answer
1k
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
...
0
votes
0
answers
169
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 ...
0
votes
1
answer
238
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 ...
3
votes
3
answers
4k
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 ...
1
vote
1
answer
775
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 ...
1
vote
0
answers
223
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 ...
2
votes
0
answers
4k
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 ...
0
votes
1
answer
242
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 ...
1
vote
0
answers
306
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 ...
0
votes
1
answer
1k
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 ...
2
votes
1
answer
669
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 ...
3
votes
0
answers
191
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 ...
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 ...
2
votes
1
answer
10k
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 ...
0
votes
1
answer
914
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. ...
1
vote
0
answers
172
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
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 ...
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 ...
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 ...
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 ...
4
votes
5
answers
10k
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 ...
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)...
2
votes
1
answer
593
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&...
1
vote
0
answers
190
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 ...
1
vote
0
answers
237
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 ...
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": &...
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 ...
1
vote
2
answers
16k
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 ...
0
votes
1
answer
565
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 ...
1
vote
1
answer
602
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 ...
0
votes
1
answer
80
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 ...
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?...
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 --...
0
votes
1
answer
412
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 ...
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 --...
1
vote
1
answer
289
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 ...
2
votes
0
answers
312
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....
2
votes
1
answer
436
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 ...
1
vote
1
answer
71
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
1
answer
471
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 ...
1
vote
2
answers
2k
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
1
answer
39
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 ...