Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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

How to convert Legacy Named Credentials to new External Credentials?

I have a set of legacy named credentials connecting from one SF org to another, using OAuth2 protocol. Legacy credentials don't specify the Authentication Flow Type. Instead, they attempt to log in to ...
Foo Bar's user avatar
  • 303
1 vote
0 answers
26 views

INVALID_SESSION_ID Session expired or invalid when calling from SSH wall

I recently created a new Salesforce Dev account following the guide here. I need to use the API from behind an SSH wall. From SSHed system, I was able to authenticate, get the access token and get ...
Palak Jain's user avatar
0 votes
0 answers
38 views

HMAC signing with Named Credentials and OAuth

Context I'm setting up an External Data Source pointing to an OData API. I've setup a Named Credential and an External Credential for it. The External Credential is configured to use OAuth2.0 (JWT ...
Jose Casimiro's user avatar
0 votes
0 answers
21 views

INVALID_SESSION_ID with metadata api login

I'm trying the metadata api in java using this sample code - https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_quickstart_java_sample.htm Instead of the basic ...
jacksparrow007's user avatar
1 vote
1 answer
51 views

Create Named Credential with authentication and user id in url parameters

I have an endpoint with the following format: https://test.com/api?salesforce=123&agent=123 Do Named Credentials allow me to store the salesforce value in the Named Credentials associated External ...
Tyler Zika's user avatar
  • 2,882
0 votes
0 answers
36 views

how to secure custom activity endpoint other than of /save,/publish,/validate and /execute

Inside my journey builder custom activity i am using custom endpoint to retrieve information and display in UI, i am thinking hosting custom activity as an static website (/public). we can specify ...
aswin's user avatar
  • 99
3 votes
0 answers
187 views

External Credential: Custom Headers not Working (in OAuth Client Credentials/Secret Flow )

I have an external system that exposes an API with 2 endpoints: Token endpoint: Receives an Id + a Secret in the Authorization header, and a custom value in the user-agent header, and returns an ...
Douglas Molina's user avatar
0 votes
0 answers
57 views

Integrate with a 3rd party website

We currently have a 2GP Managed Package that contains an LWC component that is basically a UI in Salesforce for our API, and that we want to distribute across external orgs. We use Apex Callouts + ...
Alberto's user avatar
  • 61
0 votes
0 answers
50 views

Authorisation Error No CSFR Cookie Provided

I keep getting an error in the URL stating: https://companyname.my.salesforce.com/_nc_external/identity/sso/ui/AuthorizationError?ErrorCode=CSRF&ErrorDescription=No+CSRF+cookie&ProviderId=...
Shubham Sharan's user avatar
0 votes
0 answers
49 views

Partner User Error Logging in - Android

We have an issue we are experiencing where Partner/Community Users using an Android device get the following error when trying to log in to the Community on the Salesforce Mobile App. Error: ...
Daniel de Rooy's user avatar
-1 votes
1 answer
123 views

Can we setup salesforce sso or Idp login within Iframe to login to a external site

I have an Iframe in salesforce which loads an external site that supports salesforce sso, currently I'm redirecting the user to the external site auth0 login page and once they login I redirect them ...
R_M_R's user avatar
  • 1
0 votes
0 answers
27 views

Connected app Config

I would like to know how can I configure my connected app to enter this validation where the user is leaded to 'beginWebViewFlow'. I understand that after SDKv6 if you have not configured this ...
Shayane's user avatar
2 votes
1 answer
243 views

Private Domain for top level domain

I am attempting to help a customer navigate next steps with Salesforce support for sending from a top level domain but I apparently have some learning gaps. I have researched previously and was at ...
Donna Redmond's user avatar
0 votes
0 answers
40 views

Custom Auth Provider Setup - State Parameter is not accessible for change

I have an open id integration done between salesforce and azure B2C. I have setup the auth provider with all information. When I am trying to login in or authenticate from my community it redirects to ...
Shashank Gupta's user avatar
0 votes
0 answers
85 views

Invalid Auth Header Using Run Flow In Another Org From UnofficialSf

When running the unlocked package Run Flow In Another Org I see a 400 Invalid_Auth_Header error in Debug Logs. Getting a successful response from Postman so I'm guessing something has changed in ...
ddeve's user avatar
  • 1,606
1 vote
1 answer
1k views

Unable to tunnel through proxy. Proxy returns "HTTP/1.1 500 Internal Server Error

I am making a callout from my PartnerBusinessOrg to one of it's underlying Orgs. Each Org has a connected app, originating from a templating org within them. When I am trying to make a callout to the ...
RPlantinga_MySolution's user avatar
1 vote
1 answer
73 views

Using a ConnectedApp to create a signed JWT from Apex (similar to Canvas Signed Request Authentication)

Our 2GP has an Aura component with a Canvas App that uses a Connected App to authenticate the Salesforce organization against an external service using the JWT Bearer OAuth flow. Current flow follows ...
nstuyvesant's user avatar
2 votes
0 answers
65 views

ANT EOL / Migrating to SFDX. Can SFDX authenticate with just username/password+Token on the CLI?

I've been using ANT for years. I've written c# code that wraps around ANT so my users can put in the username, password & Token and hit go and it will call out to ANT, pull down what it needs (...
Mike Jones's user avatar
1 vote
0 answers
131 views

Issue with authenticate using SFDX CLI in Linux: Error (1): Cannot read properties of undefined (reading 'setContentsFromObject')

I'm building an CI/CD pipeline with Gitlab and AWS EC2 instance (Linux x84_64). I successfully installed SFDX CLI and try to authenticate using SFDX commands but they returned the same errors: Error (...
DUC Le Anh's user avatar
0 votes
1 answer
56 views

Handling Encoded Responses in Salesforce OAuth2 External Credentials

I'm dealing with a specific issue in Salesforce related to External Credentials with OAuth2 protocol. The main problem is that Salesforce doesn't properly accept encoded responses from our ...
Damecek's user avatar
  • 1,948
2 votes
0 answers
56 views

When trying to call external API, keep having to re-autheticate despite receiveing Refresh Token from API

I have an application which sits in Salesforce. The application authenticates using the web browser flow, authenticating against an external API. Upon authentication, the external API returns an ...
Faith's user avatar
  • 21
1 vote
1 answer
168 views

SSO using SAML - Error using Heroku App setting Up SAML

I am trying to test out by setting up SSO in my trailhead org. Following these steps - https://help.salesforce.com/s/articleView?id=sf.sso_service_provider_configuration.htm&type=5 I setup SSO ...
SfdcBat's user avatar
  • 4,811
0 votes
1 answer
106 views

Why can't I authorize my sandbox in my SFDX environment?

I have a recently refreshed sandbox built against our production org. I need to authorize my SFDX environment so I can push the source code to it. I've executed these shell commands: % sf org login ...
Chuck's user avatar
  • 967
0 votes
0 answers
63 views

Authenticator Lost Association with Salesforce Marketing Cloud Account on phone update

I recently updated my phone and lost my Salesforce Marketing Cloud account association. I contacted my administrator and she is not sure how to regenerate a QR code for me to add the account to the ...
Phil Stevia's user avatar
0 votes
0 answers
116 views

How to use CA Signed certificate in Salesforce Production Org for JWT Authentication in connected app?

We have a requirement to integrate CTI with Salesforce. We want to create a connected app using Digital Certificate. For the development orgs we used Open SSL (https://www.apexhours.com/salesforce-...
Shubham Athalye's user avatar
1 vote
0 answers
1k views

Getting error Remote_Error: The remote service returned an error when trying to authenticate named credential using a custom auth

I am trying to authenticate an external service while using a custom authenticator with client credentials, but when I click save I get the error "Remote_Error: The remote service returned an ...
peepoCode's user avatar
0 votes
1 answer
511 views

cg cloud modeler: user authentication failed

Consumer Goods Cloud Offline App gets an error: User authentication has failed (Code: U1000) This happens when trying to connect after being asked to log in.
Francisco Becerra's user avatar
0 votes
1 answer
217 views

Not able to log into salesforce developer org,Had enabled authenticator but accidently removed my salesforce account from it

I am not able to log into salesforce developer org, I enabled authenticator but accidentally removed my salesforce account from it .Now when I try to log in it asks to reconnect the account but on ...
NewBaySales's user avatar
0 votes
0 answers
245 views

Issues with Automatic Reauthentication in Salesforce When Refresh Token Expires

Hello Salesforce Community, I am currently facing an issue with automatic token refresh in my Salesforce organization and I'm hoping someone might be able to help. Here's a brief overview of my setup: ...
Kévin's user avatar
  • 11
1 vote
2 answers
371 views

How can I quickly fetch or grab sfdx auth url?

I want to know my sfdx auth url to transfer it to another machine or use as Github Secret key. I have about 10+ different Developer Edition, Sandboxes and Devhub environments which I need in my CI/CD ...
Patlatus's user avatar
  • 17.1k
0 votes
0 answers
97 views

How to retrieve path from URL in initiate method of custom authentication

We have an external identity provider with custom apex provider and auth. provider configured. Beside this, we have configured different paths for each country using custom url. Now we want to get ...
Robecks's user avatar
3 votes
3 answers
4k views

External credentials principals set for basic auth but fields are not found

I'm trying to use Named Credentials to authenticate to an external API. I read some tutorials, found out that they where basically all indicating the same method, so here is what I did so far : In ...
CelineD's user avatar
  • 43
0 votes
0 answers
38 views

Couldn't authenticate third party Api from external credentials

I am trying access Xero API from Salesforce. For authentication I created an app in Xero and used id and secret key to create openid auth. provider in Salesforce. I used that Authentication provider ...
lokesh manikanta's user avatar
1 vote
1 answer
518 views

How to Delete record from the AuthSession Object?

I have a requirement to test user authentication to see if a user can potentially login to an experience site with their credentials but then to not allow the actual login. To achieve this I used the ...
Shaun van Huyssteen's user avatar
2 votes
1 answer
347 views

Visualforce CORS Error Even When Origin Is Whitelisted, Headers Are Also Set

I'm creating a PDF viewer using Visualforce and the PDF.js library. My project doesn't include react. When I try to execute pdfjsLib.getDocument() passing the URL of a PDF stored in Salesforce itself, ...
Emmanuel_M's user avatar
1 vote
1 answer
1k views

Started getting invalid_grant "authentication failure"

I had built and started running an integration, which was working fine for a while... Then it started erroring all of a sudden with: { "error": "invalid_grant", "...
Ian Vaughan's user avatar
0 votes
1 answer
109 views

Journey builder custom activity app exchange listing and authentication

We have a few custom journey builder activities and a marketing cloud application in a package that we would like to publish on App Exchange. But how do we authenticate each installations of the ...
krish's user avatar
  • 125
-1 votes
1 answer
307 views

Default to non Salesforce Authenticator App for MFA

When enabling MFA for users the initial screen that prompts them is for Salesforce Authenticator with a small "Choose Another Verification Method" option near the very bottom. Our ...
Developer Guy's user avatar
1 vote
1 answer
1k views

Using frontdoor JSP to login to experience cloud site

Is the login for experience cloud sites no more supported using frontdoor.jsp? As per this article, it should be. For some quick testing, as given here, I'm using the form element sample inside a ...
arut's user avatar
  • 5,281
1 vote
0 answers
424 views

"We canceled your request to Enroll in Lightning Login because you denied the request using Salesforce Authenticator."

I'm getting the same error multiple times. The request isn't even shown on my phone- it denies automatically. What should I do now? Thank you
Zsuzsanna's user avatar
1 vote
1 answer
1k views

Crypto.sign() SecurityException: Invalid Crypto Key [closed]

The following should be immensely helpful for people looking to construct JWTs in Apex in a much simpler way than provided in many online examples: I've been going through the joys of learning to ...
number41's user avatar
  • 960
0 votes
2 answers
957 views

Making an API Callout with Amazon Cognito client credentials authorization

I want to call an API that is authenticated with Amazon Cognito using a client credentials auth flow. I have been provided the client key and client secret. My set up uses SF Auth. Providers and Named ...
andykl's user avatar
  • 1
0 votes
1 answer
122 views

How do I add a namespace to the "code=" URL parameter that Spotify's API redirects to when a user authenticates their Spotify account?

I am creating an LWC component that utilizes the Spotify API auth flow to authorize a user's Spotify account and allows me to add playlists to their Spotify account directly from an LWC component with ...
A_Gordoa's user avatar
0 votes
1 answer
195 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 ...
N4go's user avatar
  • 1
0 votes
0 answers
506 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 ...
markwilland's user avatar
0 votes
0 answers
179 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 ...
bdpolinsky's user avatar
0 votes
1 answer
435 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" ...
Nuno Goncalves's user avatar
1 vote
0 answers
136 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 ...
Natalia Popova's user avatar
1 vote
1 answer
276 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 ...
MikeA's user avatar
  • 1,095
-1 votes
1 answer
842 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 ...
Victor Orlyk's user avatar

1
2 3 4 5
11