Questions tagged [authentication]
Relating to the mechanisms for user authentication and verification. There are many potential approaches to authentication on the salesforce platform.
527
questions
0
votes
0
answers
29
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 ...
0
votes
1
answer
40
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 ...
0
votes
0
answers
36
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 ...
0
votes
0
answers
58
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-...
1
vote
1
answer
389
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 ...
0
votes
1
answer
253
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.
-1
votes
1
answer
71
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 ...
0
votes
0
answers
76
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: ...
1
vote
2
answers
116
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 ...
0
votes
0
answers
51
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 ...
3
votes
3
answers
2k
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 ...
0
votes
0
answers
34
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 ...
1
vote
1
answer
308
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 ...
2
votes
1
answer
205
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, ...
0
votes
1
answer
336
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", "...
0
votes
1
answer
84
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 ...
0
votes
0
answers
117
views
Is it possible to set up a Microsoft Auth. Provider without a Callback URL?
I'm writing a feature that uses an API implemented on top of the Microsoft/Azure stack. To access the service, I'm first required to fetch an OAuth2.0 token.
URL to get the token: https://login....
-1
votes
1
answer
244
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 ...
0
votes
0
answers
97
views
Auth Provider with Microsoft getting 401
I'm trying to create an integration between Salesforce and Microsoft Graph, for getting calendar events.
I've set the auth.provider, namedCredential and External credential. I also have the proper ...
1
vote
1
answer
681
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 ...
1
vote
0
answers
339
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
1
vote
1
answer
878
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 ...
0
votes
2
answers
744
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 ...
0
votes
1
answer
102
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 ...
0
votes
1
answer
131
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 ...
0
votes
0
answers
317
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
131
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
318
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
121
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
206
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 ...
-1
votes
1
answer
629
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 ...
1
vote
1
answer
2k
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 ...
1
vote
1
answer
5k
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
318
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....
0
votes
0
answers
83
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
502
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 ...
0
votes
1
answer
36
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
87
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 ...
0
votes
1
answer
1k
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 ...
2
votes
1
answer
119
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 ...
2
votes
1
answer
566
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
149
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 ...
0
votes
0
answers
360
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
365
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
351
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
96
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 ...
1
vote
0
answers
306
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 ...
1
vote
1
answer
801
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 ...
0
votes
1
answer
559
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
67
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 ...