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
21 views

How to set up an named credential with client ID and client secret - no authorize endpoint?

I am trying to set up a Named Credential for an endpoint for which authenticates using a client ID and client secret to get a token. I have read this related post - Manage Client ID and Client Secret -...
  • 361
0 votes
1 answer
35 views

Authentication for Google DocAi Api in Apex

We try to integrate the Google Doc Ai https://cloud.google.com/document-ai/docs/drag-and-drop to send pdfs and receive parsed texts. I am struggling with the authentication in Apex for the Api call. I ...
  • 1
-2 votes
0 answers
28 views

How to Create named credentials for a custom type of authentication [closed]

Hello I am facing some issues while trying to create a named credentials for a website that I will be using it's APIS but I cant figure out how can I set the authentication for this website as for ...
0 votes
0 answers
40 views

Manually set or change header properties in JWT

I am running into an issue in developing for JWT Server -> Server workflow. I can use the JWT class to set properties in the Payload of the JWT with methods like setSub, setAud etc. However, when I ...
0 votes
0 answers
22 views

Setting up Social Sign On - Trailhead question

I am currently on the trailhead and working on the following question: Identity Management for Social Sign On when I get to the part where it directs Copy URL displayed in Test-Only Initialization URL ...
0 votes
1 answer
41 views

Ability to "Login as" other users via REST API?

Salesforce allows the ability to "login as" other users via the Setup UI assuming the logged-in user has the proper permissions to do so. Does the REST API expose the "login as" ...
1 vote
0 answers
58 views

How to connect local Angular with Scratch org

I am working on an integration between a Portal written in Angular and a Salesforce Org. To better test this during development I want to connect my local Angular code with my scratch org. To receive ...
1 vote
1 answer
75 views

Why has pipeline JWT auth started erroring with 'Value is not a JsonMap'?

The GitLab pipeline was running successfully until a few days ago. Nothing has been changed as far as we're aware, but it now fails on the authentication step with "We encountered a JSON web ...
  • 975
-1 votes
1 answer
53 views

how to access token from lightning web components

we are building custom parts of salesforce with lightning web components. Salesforce instance will use third party authentication Okta. In those widgets we will need to have access to token, or ...
0 votes
0 answers
80 views

sfdx org authentication does not work after upgrading sfdx-cli to 7.170.0

I have recently upgraded the SFDX-cli to the latest versioning. Upon doing so, I can no longer authenticate to an org. The returned message I am getting in cmd prompt is as follows: ERROR running ...
1 vote
1 answer
349 views

Problem setting up Named Credential for REST callouts

I want to do Apex REST callouts to a JSON web service. I've got a "Client-Id" and "Client-Secret", and they need to be sent in the HTTP header for authentication throughout, along ...
0 votes
0 answers
655 views

Invalid Credentials. Error authenticating with auth code. Reason: Unable to get local issuer certificate. When authorizing through VS code

I have been using VS Code and Salesforce since a year in my company laptop. I am trying to authorize VS code with my sandbox. Process I followed: VS Code> Sfdx auth org shortcut Also tried sfdx ...
1 vote
0 answers
38 views

Implementing a custom login sequence

I have generated a login discovery handler in my digital experience site and edited the auto-generated Apex: global class AutocreatedDiscLoginHandler1660570725472 implements Auth....
  • 466
0 votes
0 answers
43 views

SSO SAML event hooks

I'd like to know if there's some kind of "hooks" feature in Salesforces SSO with SAML, so I could be able to subscribe to authentication/authorization changes programatically from other ...
1 vote
0 answers
168 views

Connected App authentication failure with newly refreshed sandbox

I have a connected app that uses the standard Username & Password+security token to auth. I have tested connecting to the app from a production org, sandbox and scratch org. They all work. This ...
  • 319
0 votes
1 answer
34 views

does the soql support passrole or assumerole?

our salesforce is SSO login, so means we don't know the users' credentials, but we can get the SFDC auth token and user profiles need to run the SOQL as the logged-in user, the hierarchy, the ...
1 vote
0 answers
36 views

"Nested" Named Credential Callout

I have a named credential, let's call it NC1, setup for a custom AWS endpoint. This works great using the endpoint and an access key. However, as part of the body of NC1, I need to send an auth ...
  • 319
0 votes
0 answers
104 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. ...
0 votes
1 answer
101 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 ...
  • 11
1 vote
1 answer
37 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 ...
  • 191
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 ...
  • 13
0 votes
0 answers
59 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 ...
2 votes
1 answer
245 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 ...
0 votes
0 answers
92 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 ...
  • 13
0 votes
0 answers
99 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 ...
  • 1,410
0 votes
0 answers
167 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" ...
0 votes
1 answer
194 views

Error authenticating with VS code

I tried to authenticate my sandbox by authorize an org command and ended up with this error.
2 votes
0 answers
170 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 ...
0 votes
0 answers
40 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 ...
0 votes
0 answers
129 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 ...
0 votes
0 answers
236 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....
0 votes
0 answers
321 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 ...
  • 198
0 votes
1 answer
372 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 ...
-1 votes
1 answer
41 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 ...
  • 39
0 votes
2 answers
943 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?
  • 23
1 vote
0 answers
457 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 ...
  • 111
1 vote
0 answers
218 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 ...
1 vote
1 answer
186 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 ...
  • 177
0 votes
1 answer
65 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 ...
1 vote
0 answers
424 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 ...
0 votes
1 answer
418 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,099
1 vote
0 answers
504 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
1 answer
218 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
1 answer
132 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 ...
  • 107
1 vote
1 answer
677 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
1 answer
33 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
4 answers
3k 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 ...
  • 33.9k
0 votes
0 answers
328 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
1 answer
532 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 ...
1 vote
1 answer
186 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 ...
  • 31

1
2 3 4 5
11