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
0 answers
30 views

Unable to Authentication with Google Cloud Storage

I was provided with a .jks key by our platform team which I uploaded in my scratch org with a same key as they shared and setup a named credential (seen in the screenshot below) I followed this link ...
user avatar
  • 163
0 votes
0 answers
25 views

Planting an Iframe as Aura component to show an external system that receives information from Salesforce API using oAuth web server flow

I have built a web app for our sales team. The web app is currently using oAuth web server flow in order to authenticate with Salesforce. Everything is working fine when running it on a separate tab. ...
user avatar
0 votes
1 answer
25 views

Connecting Salesforce Authenticator on New Mobile Device- Marketing Cloud

I need to access Marketing Cloud but Salesforce Authenticator is connected to the old mobile device, Which I don't have access to. How do I disconnect the old Authenticator so that I can connect to ...
user avatar
  • 11
1 vote
1 answer
24 views

Migrating (backing up) SFDX authenticated logins to a new machine

Is it possible to migrate/backup locally authenticated orgs to a new machine without having to re-authenticate on another machine? After running sfdx force:auth:web:login, the authentication flow here ...
user avatar
  • 167
0 votes
0 answers
21 views

Not getting community login page while sending Survey link using Survey Invitation Rule [duplicate]

I have created Survey Invitation Rule. I am getting email alerts with the link of survey but I want it to direct me to the login page of the community and not directly open survey in the community ...
user avatar
  • 13
0 votes
0 answers
30 views

Selectively enforce authentication route on a group of users

I have configured a OAuth/OpenID SSO Authentication Provider (OKTA) I would like to prevent login with credentials (Except for Admins) Per the instructions, I should see profile permission "Is ...
user avatar
2 votes
1 answer
120 views

"Invalid redirect_uri" on OauthKickoffUrl of Custom AuthProvider

The following Apex code uses Metadata and SOAP API to create a NamedCredential and Custom Auth Provider to connect to a public REST API that is authenticated via OAuth. public override PageReference ...
user avatar
0 votes
0 answers
40 views

Make an API call from a cloud page that requires NTLM authentication

I'm aware of the process needed to make an API call from Marketing Cloud Cloud pages using Script.Util.HttpRequest Authentication using this is simple when using OAUTH however I need to connect to a ...
user avatar
  • 13
0 votes
0 answers
45 views

C-1016 error with connected app configuration, when creating a scratch org with SFDX CLI

When I enabled DevHub on my developer edition, I encountered a strange behavior in CI pipeline. ERROR running force:org:create: We encountered a problem while attempting to configure and approve the ...
user avatar
  • 1,330
0 votes
0 answers
70 views

named credentials merge fields

So I implemented a custom Auth for Client Credentials flow using example from "https://lekkimworld.com/2021/05/07/custom-salesforce-auth-provider-for-microsoft-azure-client_credentials-flow" ...
user avatar
0 votes
1 answer
55 views

Error authenticating with VS code

I tried to authenticate my sandbox by authorize an org command and ended up with this error.
user avatar
2 votes
0 answers
97 views

Salesforce Frontdoor.jsp returns status 200 instead of 302 when behind firewall/VPN

The Salesforce CLI opens DX Scratch Orgs, Sandboxes, and Production environments by executing the force:org:open command. If you add the --urlonly flag to that command, it reveals the URL that is ...
user avatar
0 votes
0 answers
21 views

Reset TOTP account

I'm trying to login to a test org and see the following prompt. I use Authy Desktop app to retrieve my tokens. Looks like I don't have an account setup for this org though. I must've set one up and ...
user avatar
0 votes
0 answers
41 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 ...
user avatar
0 votes
0 answers
126 views

System.UserManagement class gives error "System.NoAccessException: Failed to get network info." when calling from Public Rest API

I've created a public Restful web service via a Force.com Site as on this article, where on an Apex class I've exposed a HttpPost method which calls in the end the method: System.UserManagement....
user avatar
0 votes
0 answers
107 views

Get API access_token with username/password for an External Identity user

My client is developing a React Native mobile app that is supposed to use SF REST API on behalf External Identity users. They want a native login system, because OAuth flow is clunky (it opens an ...
user avatar
  • 193
0 votes
1 answer
228 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 ...
user avatar
-1 votes
1 answer
31 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 ...
user avatar
  • 39
0 votes
2 answers
315 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?
user avatar
  • 23
1 vote
0 answers
225 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 ...
user avatar
  • 111
1 vote
0 answers
134 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 ...
user avatar
1 vote
1 answer
123 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 ...
user avatar
  • 177
0 votes
1 answer
42 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 ...
user avatar
0 votes
0 answers
21 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, ...
user avatar
1 vote
0 answers
281 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 ...
user avatar
0 votes
1 answer
251 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 - ...
user avatar
  • 1,069
1 vote
0 answers
302 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 ...
user avatar
-1 votes
1 answer
130 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 ...
user avatar
0 votes
1 answer
92 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 ...
user avatar
  • 107
1 vote
1 answer
405 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 ...
user avatar
0 votes
1 answer
18 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 ...
user avatar
3 votes
4 answers
2k 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 ...
user avatar
  • 33.6k
0 votes
0 answers
221 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 ...
user avatar
1 vote
1 answer
390 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 ...
user avatar
0 votes
0 answers
38 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 ...
user avatar
  • 25
1 vote
1 answer
130 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 ...
user avatar
  • 31
2 votes
1 answer
111 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 ...
user avatar
  • 5,606
1 vote
0 answers
24 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 ...
user avatar
  • 111
1 vote
1 answer
1k 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 ...
user avatar
1 vote
1 answer
269 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 ...
user avatar
  • 11
0 votes
0 answers
83 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, ...
user avatar
2 votes
1 answer
118 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 ...
user avatar
  • 2,450
0 votes
1 answer
60 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 ...
user avatar
  • 73
2 votes
0 answers
60 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 ...
user avatar
0 votes
1 answer
370 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 ...
user avatar
  • 305
1 vote
1 answer
283 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 ...
user avatar
  • 11
0 votes
1 answer
107 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 ...
user avatar
  • 11
1 vote
0 answers
94 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 ...
user avatar
0 votes
1 answer
149 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, ...
user avatar
  • 53
1 vote
1 answer
29 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 ...
user avatar

1
2 3 4 5
10