Questions tagged [authentication]

Relating to the mechanisms for user authentication and verification. There are many potential approaches to authentication on the salesforce platform.

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

Send JWT token with External Data Source for Odata v4 endpoint in header

I am trying to Authenticate the Calls to My Odatav4 , In My Service I have started accepting JWT token in header and it is working if i call the service in postman with JWT token in header, Now in my ...
0
votes
1answer
773 views

Unable to authenticate with salesforce standard REST API from a different web page using ajax

I want to connect with standard REST API from a different domain using ajax call. Below is the ajax function I am using. function call_API() { $.ajax({ url : URL, ...
3
votes
3answers
210 views

Is there a working Desktop Authenticator App for MFA? (with no mobile device involved)

I have very mixed feelings towards the enforcement of MFA by Salesforce, which as a consequence enforces the usage of authenticator apps. I have over 400 developer orgs to deal with. I have to login ...
-1
votes
1answer
25 views

SaaS tool using streaming API - how does authentication work?

I'm starting to build a SaaS tool that uses the SF streaming API. In the past I've worked with the "normal" API and I didn't need any consumer secret / key. I just user user / password and a ...
0
votes
1answer
730 views

Username/password authentication curl attempt failture

I'm trying to get an access token using following curl: curl --data grant_type=password&client_id=Y&client_secret=Z&username=A&password=B+C https://login.salesforce.com/services/...
0
votes
2answers
57 views

Named Credentials using password authentication

I need to call the same org using named credential password authentication,. Can anyone explain if i need to pass a api for the password where could I get that api for same salesforce org?
1
vote
0answers
30 views

Using Mutual Authentication and I receive 403 Forbidden error from Salesforce API

I have set up Mutual Authentication on my Salesforce org so that my project can use two ways SSL with Salesforce. Here are my steps: 1- I use a CA sign certificate (GoDaddy) and upload it to the Set ...
0
votes
0answers
157 views

How to call Mobile SDK oauth.authenticate() for a custom community login page?

When logging in with a custom community login page, calling oauth.authenticate() does not resolve for the mobile version (React Native for iOS/Android) of my connected app. Salesforce's docs for ...
0
votes
1answer
29 views

Remote_Id_Length: Remote ID limit is 128 characters

Does anyone know if there is a plan to increase the length of the identifier field to match the OpenId specs? Configuring an Auth. Provider using eIDAS (https://en.wikipedia.org/wiki/EIDAS) as the ...
0
votes
1answer
692 views

SSO authentication at API level

I am trying to automate a mobile application in my organization which uses SAML based SSO authentication to allow any user to login to the app. What I am trying to achieve is to perform an action in ...
8
votes
2answers
3k views

Is it possible to disable Salesforce Authenticator App completely?

Some time ago I had to enable the MyDomain Feature in order to enable custom lightning components on a Sandbox-Org as described here. Until that the two factor authentication was working with password ...
2
votes
0answers
86 views

AWS S3 callout fails with x-amz headers

I have to use canned ACL header 'x-amz-acl' as described in AWS S3 documentation Callout with Named Credentials without header works fine HttpRequest request = new HttpRequest(); request.setEndpoint('...
2
votes
1answer
910 views

Where can i find the header information in a webservice callout request?

we are integrating Salesforce and SAP systems. For that we are making a callout to SAP with username and password in the header. When i checked the debug log the callout_request entry contains an xml ...
0
votes
0answers
38 views

OAuth login not returning to redirect uri

I have configured our salesforce sandbox as an OIDC provider in an AWS Cognito user pool. Sometimes when logging in this way, the user is redirected to salesforce after logging in rather than back to ...
0
votes
1answer
2k views

OpenID Connect - Bad Response

I've seen a few posts regarding this topic, however they do not appear to solve my issue. I also have a posting on the developer forum. I'm setting up our authentication provider to allow users to ...
1
vote
1answer
65 views

Access token doesn't change with JWT flow

I have a connected app to use the JWT flow and I generate the access token with sfdx force:auth:jwt:grant command. I noticed that the obtained token is always the same even after a day. I would expect ...
0
votes
4answers
2k 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
0answers
16 views

Is the second factor authentication (2FA) required for external users?

I have a question regarding the following 21 CFR Part 11 requirement: 11.10(g) Use of authority checks to ensure that only authorized individuals can use the system, electronically sign a record, ...
1
vote
0answers
64 views

UserManagement.initVerificationMethod not working in Apex

The following function doesn't work for me and throws this error: System.NoDataFoundException: User does not have Salesforce Authenticator pairing The goal is for me to create a custom login LWC for ...
3
votes
1answer
503 views

Apex callout to an OpenID Connect endpoint protected by PKCE code challenge

I'm trying to write Apex code that'll call an external API. The API is using OpenID Connect for authentication, meaning I'll have to first give consent in order to get an authorization code, then ...
4
votes
1answer
2k views

Custom OAuth Auth Provider

I have a Rest API Endpoint that I am looking to callout to. Something like this: https://myrestservice.com/service/logs When setting up the Named Credential, I set up the URL to: https://...
0
votes
1answer
90 views

OpenID Connect AWS Cognito - ERROR: No_OpenId_Response

Overview Currently using AWS Cognito User Pools as Identity Provider using OpenID Connect for logging in a Salesforce Community. I'm currently getting a similar issue with this post OpenID Connect - ...
1
vote
0answers
64 views

Salesforce Embedded Login - having issues rendering the login component due to CSP ancestors-frame

I am trying to implement the Embedded login functionality to allow community users to authenticate through the embedded login form on an external site. I have the domain allowed through CORS settings ...
-1
votes
1answer
57 views

Using Salesforce as IDP for community plus users on an external company site?

I got tasked with these requirements I am kind of lost on. Was wondering if anyone here has had a similar ask or can provide suggestions for how to go about this? We have an external company website ...
3
votes
1answer
2k views

How does Salesforce handle or use the state parameter on an oauth callback?

Running into an issue with our Open ID Connect Authentication Provider. The current way our registration page has been implemented requires a unique identifier to be passed through the state parameter ...
0
votes
1answer
1k views

Intermittent JWT Authentication Failure

I just spun up a new sandbox (couple of hours old) and I am trying to setup a CI/CD process using BitBucket Pipelines and sfdx. When I run the force:auth:jwt:grant command with hardcoded values (i.e. ...
3
votes
1answer
762 views

Use JSForce to connect with a community/portal user

it possible to connect to sales force with a community license user using jsforce? This is what I have tried let conn = new jsforce.Connection({ loginUrl : 'https://login.salesforce.com' }); ...
3
votes
3answers
1k views

Named Credential - Automatic refresh token does not work with WSO2 Identity server

I am facing an issue with the named credential platform functionality in the following integration scenario: The Salesforce Org is supposed to perform Rest callouts to a 3rd party service. ...
0
votes
1answer
31 views

Connecting to Marketing Cloud from R

(Tag suggestions very welcome, this is my first post on this forum) We use ExactTarget to manage our customers email. I would like to do some reporting and analytics using these data - email subject ...
2
votes
1answer
409 views

SSO and User Provisioning From External WebApp into Salesforce Community

Scenario - customer is logged into our web app, they click on create a ticket and are redirected to the salesforce community page as a user in salesforce with the same email as the web app, want to ...
0
votes
0answers
59 views

How to find out 'Authentication Status' of specific Named Credential for current user?

Is there any way we can query for and check the Authentication Status of a Named Credential for the current logged in user? I found we can query for Named Credential sObject, as well as ...
1
vote
0answers
93 views

CallOut REST Service via FLOW - Getting 401

I have an APEX class which is making a callout to REST service services/data/v50.0/smartdatadiscovery/predictionDefinitions. When I run this code in debug anonymous window it works fine however, when ...
1
vote
1answer
129 views

Seamless experience between website and Salesforce community site - one login? [closed]

We have a requirement to allow a seamless experience from our main company website to our Salesforce community site. Basically, someone can login to our company website and be able to click a link ...
1
vote
1answer
57 views

Commerce Cloud Controller Authentication

I did a controller inside commerce cloud in order to update the order from the external Order Management Service. Then controller inside the Commerce Cloud will receive the order details by a POST ...
1
vote
1answer
428 views

JWT Authentication in salesforce

I am trying to log in another user in my same org using below code. String username = 'test1@salesforce.com'; String jwtVal = '*****'; String tokenEndPoint = System.URL.getSalesforceBaseURL()....
2
votes
1answer
3k views

What is "Sfdx Auth Url" attribute used for?

Till now, I have been working with SFDX orgs using JWT cert based auth auth:jwt:grantor authenticating using browser using auth:web:login I recently came across the --verbose attribute which gives ...
0
votes
1answer
15 views

Should Authenticated Lighting Out App Not Run As Authenticated User Instead of Guest User?

I have a Lighting Out App hosted on a website and have been using this for read-only actions for sometime via an unauthenticated Community endpoint. This has worked out well. I now have a requirement ...
1
vote
1answer
178 views

UpsertDE not working in cloud page using ssjs

I have this code and I want to store the data of auth API into a data extension. I am able to successfully generate the result of API but not able to store that data in a data extension. You can see ...
0
votes
0answers
100 views

System.UserManagement.initSelfRegistration and System.UserManagement.verifySelfRegistration in apex rest?

We have a requirement where a user will be ask to register/verify on external website but we need to create a portal user for them and verify them using OTP sent in email. We know that methods like ...
0
votes
0answers
28 views

Authenticate external mobile app with salesforce

I am using a connected app to get data from salesforce to an android app, till now I have hard coded the client id, client secret, username and password in my android app which makes call to get ...
0
votes
0answers
71 views

Error When Trying to Upload an Image to Marketing Cloud using REST API

I am trying to follow this tutorial which shows how to upload an image using REST API: https://sfmarketing.cloud/2020/02/29/create-a-cloudpages-form-with-an-image-file-upload-option/ . It seems to ...
1
vote
0answers
22 views

REST API - Server to server connection via API key / permanent token? [duplicate]

I am looking to set up a connection from our website, to populate leads, and am struggling to find the right authentication method. Previously (using a different CRM), we simply POSTed a json payload ...
0
votes
1answer
281 views

Salesforce Authenticator not working, how to fix this?

My Salesforce Authenticator is not getting any request for approval and it gets directly denied. I could not try the code route too as that is also not working. Please help. Let me know if there are ...
0
votes
1answer
255 views

AuthInfo error when running apex tests in scratch org

I am having a little practice with scratch orgs and I created two classes which I have correctly pushed to my scratch org with no issues. One of the two classes is a test class. When I try to run the ...
2
votes
1answer
56 views

How to use Named credentials with a 2 step password and access token authentication system?

The third party system that I am trying to connect to has following authentication mechanism: Step 1: We have been provided with a X-Api-User and X-Api-Secret to be included in header. Other header ...
1
vote
1answer
53 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 ...
0
votes
0answers
53 views

Custom two factor authentication get verification app

We want to manage external community users with a custom multi factor authentication that takes advantage of the already existing authentication apps (Salesforce Authenticator, Google Authenticator, ...
0
votes
0answers
117 views

VSCode sfdx deploy error after authorizing: Error authenticating with the refresh token due to: expired access/refresh token. Able to retrieve

I'm experiencing an issue where I can authorize an org from VSCode, but can not deploy to the org. Interestingly enough, I can retrieve from the org - when I type in the command from the terminal, not ...
0
votes
0answers
26 views

API only user accounts and security tokens [duplicate]

I have an API only user account and I am wondering if these accounts have a security token? Obviously, I cannot access it because I don't have the ability to view the UI anymore. Do I need my ...
0
votes
1answer
32 views

Does the authentication with sfdx force:auth:device:login expire?

I am using sfdx to pull some data from salesforce on my desktop. Eventually I will have to put this on the server. Just wondering how long after the intial login would I have to login again? Is there ...

1
2 3 4 5
10