Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [authorization]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7
votes
2answers
2k views

Working with Named Credentials spring 15

I have defined the endpoint and given the username and password for the authorization under named credentials (Spring 15 Feature),when I do a http Request I am getting Unauthorized(401) ...
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/...
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 ...
5
votes
1answer
214 views

Insufficient Privileges for Public Group Memberships Page

A user is a part of multiple public groups in Salesforce and has a custom profile. When the user navigates to the personal information page and clicks on the 'Go To List' link available under the '...
4
votes
1answer
469 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
419 views

How to make External Ids ReadOnly in Salesforce?

We have a requirement where we use External IDs in Salesforce Custom Object. Ideally, we wanted to make this External ID field to be : 1. Read Only. 2. Required. But i don't see why Salesforce does ...
4
votes
1answer
440 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
1answer
2k 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:...
4
votes
1answer
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....
3
votes
1answer
782 views

API calls and user context

Overview: Mobile device (call service on ESB) —> ESB (calls salesforce API to get data) —> Salesforce.Mobile devices and Salesforce supported by the same IdM system. Description: A custom API ...
3
votes
1answer
660 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
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://...
2
votes
1answer
743 views

Is it possible to limit access to records based on profile's region?

currently system admin profile for all countries USA, India, China. Can we have custom system admin profile only for one country like usa, in which he isn't able to access the other country records ...
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 ...
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 ...
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
3answers
349 views

Confused with this Salesforce recruiting app question

I don't want the answer to this question but I just want someone to guide me the right way. Following is the question... My question is.. Where is the clue in the question for me to understand ...
1
vote
2answers
195 views

Error deleting a solution attached to a case

I´m unable to delete an FAQ (solution) that is linked to a case record: Clicking on delete: I´ve checked the Organization wide default for object "Solution" but according to the Salesforce ...
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
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 ...
1
vote
1answer
72 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
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 ...
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 ...
1
vote
2answers
402 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....
1
vote
2answers
245 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
50 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 ...
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
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 ...
1
vote
0answers
34 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
1answer
54 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
81 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 ...
1
vote
0answers
786 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:...
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 ...
1
vote
2answers
484 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 ...
1
vote
1answer
228 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.
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 ...
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/...
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?
0
votes
1answer
932 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 ...
0
votes
1answer
224 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 ...
0
votes
1answer
245 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 ...
0
votes
1answer
302 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 ...
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 ...
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 ...
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
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
74 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 ...
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 ...