We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [authorization]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
20 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 ...
1
vote
0answers
33 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 --...
0
votes
0answers
29 views

Where should I carry out Salesforce App Third-Party User Authentication

Context We have developed a Salesforce Lightning App that is powered by our Apis. We are the third party. The App typically sits in a custom tab within the Contact or the Company pages. Our data is ...
0
votes
1answer
46 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 ...
0
votes
0answers
35 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....
0
votes
0answers
73 views

Cannot get session id in lightning component

I am trying to call a REST api from lightning, however i am getting 401, Unauthorized error. I know this question has been asked previously, but the solution they offered was to use a visualforce ...
1
vote
1answer
71 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
1answer
27 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
1answer
53 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
2answers
72 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
28 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 ...
0
votes
0answers
22 views

Redirect from visualforce with basic authorization header

Is it possible to send a Basic Authorization header from a visualforce page and redirect a user to a different non-sf site? If not any way on how I can do this? I was able to send a HTTPRequest with ...
2
votes
1answer
76 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
216 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/...
0
votes
1answer
43 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 ...
1
vote
0answers
773 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:...
0
votes
1answer
31 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 ...
6
votes
1answer
70 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 ...
1
vote
0answers
69 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 ...
4
votes
1answer
467 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 ...
4
votes
1answer
438 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 ...
4
votes
0answers
1k 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....
1
vote
1answer
70 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 ...
0
votes
1answer
243 views

Connected App: Use external ClientId in JWT

As per this link, The issuer (iss) must be the OAuth client_id **or** the connected app for which the developer registered their certificate. Does this mean can I use external application client id ...
1
vote
1answer
644 views

Rest call with same salesforce org - [Status=Unauthorized, StatusCode=401]

Can some one please guide me where I am going wrong. For some reason i have to invoke the same instance. But i am getting [Status=Unauthorized, StatusCode=401] Error when I Debug. public class ...
1
vote
2answers
481 views

Rest Callout to External Resource, 401 Unauth Error, Cannot Set Api Key

I am having issues giving an API key to an external url for a rest callout. req.setHeader is where I attempt to do so. How should I structure this? I only get 401 unauth errors. I am trying to ...
0
votes
1answer
301 views

Can't get refresh_token in callback with a 'full' scope

I'm trying to get an access_token and a refresh token for a connected app. I managed to get either the access_token and a full access to the API, or an access_token and a refresh_token, but without ...
2
votes
1answer
58 views

How can I get an access token for an Org when the user is signed into a different Org?

My managed package needs to access data from multiple Orgs. For example, say a user has 2 accounts: 1 in Org A, and 1 in Org B. When the user is logged in to Org A, they need to see data from both ...
0
votes
1answer
5k views

Why Am I getting invalid_client_credentials with Web Server OAuth Flow?

I'm trying to create a web service that will provide an OData API to my managed package. As part of that I need to handle authorization so the service can access the user's Org data where they have ...
1
vote
1answer
166 views

How do I authorize access to a managed application in another org?

I am working with a managed package that is installed in Org A. The user wants to be able to access information from their other org, Org B, where this package is not installed. The plan is to use ...
6
votes
2answers
7k views

Salesforce JWT User Hasn't Approved This Consumer (Again)

I know others have asked this question.  The previous solutions have not worked.  Using the OAuth JWT flow.  All Users Can Authorize is selected  User authorized via https://login.salesforce.com/...
1
vote
1answer
226 views

CA-signed Certificate: What URL (Common Name)

I'm trying to set up mutual authentication with a third-party. I want to create a new CA signed certificate but I don't know what URL I should use. Testing from our sandbox.
0
votes
1answer
213 views

Same CA signed certificate for both salesforce act as server (Mutual TLS) and salesforce act as client

Can i use same CA signed certificate for both salesforce act as server (Mutual TLS) and salesforce act as client(2 way ssl). Actually in one of my project we have exposed some api to external system ...
1
vote
1answer
1k views

Self Singed Certificate for Mutual TLS

I need to expose an rest api to an external system, and wanted to allow authentication only through certificate. So as per the salesforce mutual tls feature can we use self signed certificate ...
0
votes
1answer
139 views

Community authorization without reloading page

I have a community page with angular js implemented. It is a SPA as expected. Angular calls the apex remote action methods receives a response and does some UI stuff. First page(main page) is ...
4
votes
1answer
1k views

Named Credentials - Merge Fields not Resolving

I am having an issue when attempting to reference the {!$Credential.UserName} and {!$Credential.Password} merge fields. I created a named credential with the following configuration: Identity Type:...
1
vote
1answer
965 views

How Can I Access Site.com Studio for a Community Builder Site After Winter '17?

Background: Our community was always designed to be private - but community builder lacked functionality that allowed us to select individual access settings for every page or the builder site as ...
2
votes
1answer
79 views

Corporate client oauth request returns HTTP 401 code

To login to my corporate client Salesforce GUI, I have to use the following link: https://theCompany.force.com/partner This link works and logs me in, if I want to log in manually. But when I try to ...
1
vote
2answers
183 views

Salesforce Session ID Invalid right after call

I have been through this for a few days now with no luck. I make a session id authorization, that works, and get my session ID like so: $sf_session = 'https://login.salesforce.com/services/oauth2/...
0
votes
1answer
158 views

Can we use access token or refresh token as a session id for WebService Callout?

there it is mentioned I want to use sessionID for MetadataService call from an org to other org. I have the other org access token and refresh token both. I tried to use access token, but got the ...
0
votes
2answers
233 views

Guest User requires authorization for sites - unsure of what debug code means!

When the Guest User for my account tries to submit a form it is told that authorization is required and they must login. When I set up a debug log for that user a bug logged with these details and I ...
0
votes
1answer
20 views

Unable to edit created opportunity

I'm unable to edit the opportunity i created and unsure abt the auth or security profiles. how can i fix the issue? any inputs please? Insufficient Privileges You do not have the level of access ...
3
votes
1answer
659 views

JSForce - getting OAUTH2 refreshToken - variable app is not defined

I am clearly missing something called app here. I am following Authorization Request section from the documentation. It says your app is callbacked from Salesforce with authorization code in URL ...
3
votes
0answers
93 views

Secure communication between InstallHandler and third party application

During the installation of our package we need to fetch data (related to the installer organization) from a third party system (integration part of our solution). Like stated in the documentation ...
2
votes
0answers
582 views

Authorizing soap c# request errors

https://help.exacttarget.com/en/technical_library/api_overview/ In the above link it states "This element contains the customer's API username. A customer who uses the API creates a special user in ...
1
vote
0answers
309 views

Web Browser XSS Protection Not Enabled

I have to scan HTTP Request and got this 2 low level risk. How to resolve this problem coming in ZAP Report?
1
vote
2answers
401 views

I am calling a web service while clicking on a link , but I am getting status code 401 error. Please let me know the fault

Global class TestCmis{ Webservice static void getCmis( Id LeadId){ system.debug('HAnana---->'); HttpRequest req = new HttpRequest(); req....
0
votes
1answer
930 views

Calling salesforce REST API from sharepoint

I have a sharepoint app in which I call salesforce REST API. I have obtained access_token successfully from the app, (using username-password flow) but when I try to access some resources such as ...
1
vote
2answers
244 views

user authentication authorization community cloud force.com sites

How does user management (authentication / authorization) work when we expose a visualforce page and apex code including controller etc. to community users using public sites, force.com sites.
1
vote
1answer
105 views

Apex Authorization error during installing app in Profession Edition

We are trying to install an app (manged package that already passed sf security review) in Profession Edition. But it is giving "Apex is not supported in Professional Edition" error. We want to raise ...