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
30 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
13 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 ...
0
votes
1answer
47 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 ...
0
votes
1answer
20 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 ...
1
vote
1answer
71 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 ...
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 ...
3
votes
3answers
81 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 ...
0
votes
0answers
51 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 ...
1
vote
1answer
125 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
27 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 ...
1
vote
1answer
42 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 ...
0
votes
0answers
47 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 ...
0
votes
0answers
30 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
19 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
131 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 ...
1
vote
1answer
39 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
36 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
91 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 ...
2
votes
1answer
51 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 ...
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
29 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 ...
0
votes
0answers
39 views

Authentication ways for salesforce to salesforce connection [duplicate]

My question is a generic one, so i am sure someone will flag it, but i am hoping i can receive some helpful directions. I have 2 salesforce org - Org1, Org2. I build a rest API in Org2. Now i need to ...
2
votes
0answers
55 views

Access a refreshed sandbox with JWT flow [duplicate]

We have a sandbox with a Connected App configured to use the JWT flow for machine-to-machine authentication in a CI/CD setup. We would like to run a nightly refresh from production, but this broke the ...
0
votes
1answer
185 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 ...
1
vote
1answer
159 views

How to get my SSO app to work with multiple orgs?

Summary: I want to use Salesforce as an identity provider to allow people to log into my app, regardless of what salesforce org they use. I've created an app in PHP that uses SimpleSAMLphp to ...
0
votes
1answer
42 views

What SSO (SAML) attributes from Salesforce can I use as a globally unique user identifier?

I'm using Salesforce as the identity provider (IdP) in a single sign-on application I'm developing in php. After the user logs into Salesforce.com to authenticate, they are redirected to my app and ...
1
vote
0answers
18 views

AuthProvider Interaction Troubleshooting

In trying to talk with an auth provider to get a token response for a process I'm working on I'm running into issues with the redirect/callback portion of the communication after logging in to the ...
0
votes
1answer
83 views

Auth Provider Callback masking ErrorDescription

we have Azure as Auth Provider for our community users. For some reason whenever Auth flow is interrupted in Azure, SF masks result in callback call and error_description is removed. Because of this, ...
1
vote
1answer
25 views

Ability to "prevalidate" email/phone number for community user?

We are looking at SalesForce Experiences (aka Communities) as a secondary experience for our customers. We don't have an SSO solution for them, unfortunately, but already "trust" their ...
2
votes
0answers
60 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('...
1
vote
0answers
38 views

Accessing Salesforce Chatter API with a token from an external IdP

We're working on a Java/Angular app and using Auth0 as an OAuth2 provider. Now, there's a need to integrate with Salesforce's Chatter API. As far as I can see, that API doesn't support sending ...
2
votes
0answers
47 views

Authentication on SFDC Sites?

We have a credit application form hosted on SFDC Sites. A sales rep creates the credit app record, which triggers an email to be sent to the prospective customer. A link in the email takes them to ...
0
votes
2answers
112 views

Custom login functionality on a Site page

Trying to achieve: Custom login on our SF Public Site page for a sub-set of users within our org. to access a form. Submitting the data would update a Case record. Each form would be one-time ...
3
votes
3answers
536 views

sfdx force:auth:web:login – how to get it to work under Linux Mint?

Can't connect any org under Linux Mint via sfdx force:auth:web:login Neither via sfdx force:auth:web:login -r https://test.salesforce.com -a foo nor sfdx force:auth:web:login -r https://foo.my....
0
votes
1answer
100 views

Logging for ConnectedAppPlugin class

I have a Connected App Handler Class (that extends the Auth.ConnectedAppPlugin) for one Connected App I am having. Use case is this class is used to set some additional attributes for which the ...
1
vote
0answers
120 views

How to retrieve a current user's OpenID Connect ID token via apex?

Question: Is there any method for retrieving the current user's OpenId Connect (OIDC) Id Token via apex? Background Context / Goal: My goal is to set up Single logout for a salesforce community that ...
1
vote
1answer
81 views

Getting INVALID_SESSION_ID on REST Api call in C#

"[{\"message\":\"Session expired or invalid\",\"errorCode\":\"INVALID_SESSION_ID\"}]" I reviewed the other questions posted but no answers helped. I ...
0
votes
0answers
123 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 ...
1
vote
0answers
80 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 ...
0
votes
0answers
38 views

Authentication the Mobile Service SDK on a users Behalf

We would like to gain an access token for authenticating a user with the Mobile Service SDK by authenticating on their behalf from our servers. We are looking for a way to use the Salesforce APIs to ...
1
vote
1answer
79 views

how to implement auto authentication between communities with custom domain?

I have created two communities with custom domain in same org. Two communities are myold1.test.com(VF template) and mynew1.test.com(Customer service template). As an external user whenever I launch ...
0
votes
1answer
44 views

Does authenticating against oauth2/token endpoint count towards API Request Limits?

Does authenticating against endpoint: Instance URL + /services/oauth2/token Count towards API Request Limits?
0
votes
0answers
168 views

MTLS certificate error

I have been breaking my head to get the Mutual Authentication(MTLS) to work in Salesforce for a while but with little success. I am trying this out on a sandbox by enabling this feature and by ...
3
votes
1answer
481 views

Single Sign-On and Multi-Factor Authentication

Please, I need some informations about Single Sign-On and Multi-Factor Authentication on MC platform: Marketing Cloud Single Sign-On (SSO) is not compatible with Multi-Factor Authentication. If you ...
0
votes
0answers
37 views

NTLM Auth via Apex [duplicate]

I'm trying to make a service that calls an external system using the NTLM auth. I thought that it should be very likely the BASIC auth - but perhaps I'm wrong. I'd like to know the right way to auth ...
0
votes
0answers
35 views

Mailchimp URL parameter disappears after landing to Lightning Tab

I need to authenticate Salesforce with Mailchimp. Through quick action, I am calling an aura component which then calls LWC component. I am able to login to Mailchimp from salesforce as per the login ...
0
votes
1answer
380 views

Named credentials returning Unauthorized, 401

I have setup a connected App, Auth. provider and Named credential to call an Apexrest in a same Salesforce org but I am continuously getting Unauthorized 401. Surprisingly, it is working in a ...
0
votes
0answers
18 views

Unable to get correct Signature for Twitter Integration [duplicate]

Below code is from Postman which works exactly how I want, curl --location --request POST 'https://api.twitter.com/1.1/direct_messages/events/new.json' \ --header 'Authorization: OAuth ...
2
votes
1answer
521 views

Allow external users to access customer community SSO/JWT

Use Case: Coming from the client website, the external users need to be log into their customer communities account without having to log again. I know that I could use SAML for this use case, but ...
1
vote
1answer
125 views

Generate JWT token for external app - SSO

We are setting up a Salesforce Community and our community members should be able to automatically login using the credentials from an extenal platform when clicking on a link from this platform. I'm ...

1
2 3 4 5
10