Questions tagged [authentication]
Relating to the mechanisms for user authentication and verification. There are many potential approaches to authentication on the salesforce platform.
540
questions
1
vote
1
answer
463
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 ...
1
vote
1
answer
816
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 ...
1
vote
1
answer
296
views
Does authenticating against oauth2/token endpoint count towards API Request Limits?
Does authenticating against the Salesforce OAuth2 token endpoint count towards API Request Limits?
Instance URL + /services/oauth2/token
1
vote
0
answers
835
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
1
answer
1k
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
0
answers
41
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
0
answers
91
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 ...
2
votes
1
answer
2k
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
0
answers
236
views
OAuth login page redirecting to source org
I am using OAuth web server flow to authenticate one salesforce org(source) with another(it can be any other salesforce org apart from source org). When I send user to authenticate himself into target ...
1
vote
2
answers
4k
views
Per User Named Credential and External Identity Users [duplicate]
My question is almost similar to one mentioned in 'Auth Provider with per-user Named Credential' (Auth Provider with per-user Named Credential).
I am trying to authenticate and make a API call when a ...
0
votes
1
answer
238
views
Best way of doing API to Salesforce authentication? [closed]
I am integrating an API with Salesforce. The maintainer of Salesforce has given us access via the Username / Password flow. I can successfully get an access_token and work with the custom apexrest ...
0
votes
0
answers
397
views
Calling logout with a GET request on the REST API returns status 400 from express
I am trying to add a logout call into a front end app that i'm building, that uses SF for the auth features. When logging in, i successfully get the instance url, profile string and access token as ...
0
votes
1
answer
4k
views
OAUTH_APP_BLOCKED | this app is blocked by admin
I am trying to integrate http://salesloft.com/ with my salesforce production instance via OAUTH. When I try to login to production using my valid credentials (I an system admin), salesloft see ...
3
votes
0
answers
1k
views
NTLM Authentication Protocol with APEX
I'm working on a project requires integration between Salesforce and Microsoft Navision with NTLM authentication.
As I see people refer to NTLM authencation implementation ApexNTLM but it doesn't work ...
0
votes
0
answers
72
views
Is there a chance to user Salesforce Authenticator App in a Login-Flow?
I want to use the Salesforce authenticator app for a 2FA-Login in Salesforce. But I only want to use it if the User isn't in the trusted IP ranges which you can set in Setup under Network Access. ...
0
votes
1
answer
256
views
Salesforce SSO Org Id appending username intermittently [closed]
How do I stop sending the Org id and just the username?
But this is happening intermittently.
1
vote
0
answers
527
views
Multi-Factor Authentication (MFA) in SFMC with 100+ Accounts
With MFA becoming enabled and eventually required in SFMC, I was curious how partners/3rd parties are handling this requirement, when multiple individuals share the same user login?
It seems all ...
3
votes
3
answers
2k
views
SSO: Azure AD idp + external API Callout from Apex?
Question:
When a user is signed into SF with Azure AD identity provider (SSO), we want to send the current identity (in the form of a Saml assertion, bearer token, etc?) along with the external API ...
2
votes
0
answers
1k
views
Named Credentials with OAuth getting AUTHENTICATION_FAILURE Message on Save [closed]
Getting Following error when i tried to save Named Credential with OAuth 2.0 Authentication Protocol
Named Credentials:
{
"name": "AUTHENTICATION_FAILURE",
"message": &...
0
votes
1
answer
382
views
Adding component to the API package in Salesforce Marketing Cloud
I'm installing this api package for a Journey API Entry Point through Installed Packages. The Add Component keeps saying "Unable to complete update this time". I'm trying to create a Journey ...
1
vote
0
answers
120
views
Is our "Identity Server" a Good Use Case for Named Credentials and if so, how should I use Named Credentials Instead?
We have a collection of microservices hosted on Azure.
In order to access these, we must first get a token from what's been described as the "identity server".
I can use this code to get the ...
1
vote
2
answers
4k
views
SFDX: How to log in by session id and session url
We are writing a nodejs application which should execute some set of actions against SF org triggered by incoming http request coming from that org. Such request will contain base url and session id ...
1
vote
1
answer
2k
views
Callout to other Salesforce org using Named Credential - which Authentication option should I use?
I have 2 Salesforce orgs (with identical code) - a hub and a client. I need to pass data from the hub to the client. Using S2S is fine for normal data, but when it comes to files (eg pdf) we can't use ...
1
vote
0
answers
101
views
Authenticate Custom Content Block throws a CORS issue
I'm sitting up the SSO login for my application which is a custom content block by redirecting the user to the link below:
var redirectRoute = "https://" + process.env.DEFAULT_BASE_URI + &...
0
votes
1
answer
615
views
Validate Salesforce Access Token via custom backend app
The usecase is very simple
I have a client app SPA in Angular(APTTUS eCommerce) using Salesforce Login for User SignIn.
I need to call a backend API(custom c# application) from the SPA to fetch data ...
0
votes
1
answer
641
views
https://login.salesforce.com/id/keys is returning random results
I build a third-party application that integrates with Salesforce using the REST API (connected app). We hit /services/oauth2/token to get a token for the user, then we verify the token using the ...
1
vote
1
answer
657
views
invalid_grant: expired authorization code when using OAuth2 flow
I am using OAuth2 to authorize the user I generate the URL at the backend send the url to the frontend (which is in VUE ) which open it in the new window the callback url is one of the route of the ...
0
votes
1
answer
535
views
Handling authentication when embedding salesforce visual page in external website
I'm trying to embed salesforce visualforce page in an external website using the iframe. I've handled the issues with iframe but one thing I couldn't able to solve is how we can handle the ...
0
votes
0
answers
301
views
Certificate-based authentication for users via a shared public key
I would like to authenticate my users to SalesForce (web console and Salesforce1 app) using client certificate based authentication (CBA) issued from my internal CA and eventually block username/...
0
votes
1
answer
1k
views
Querying AuthSession with IsCurrent = TRUE only shows my user [duplicate]
While we may not be leading the pack in Salesforce adoption, I'm quite sure that a number of our 400 users are still logged in as If I look at session management in setup, there are plenty of UI ...
0
votes
1
answer
1k
views
Integration with external REST Service that requires an access token
I'm attempting to integrate with a third party external service, and I can't find the right mechanism to use for authentication.
The third party requires a callout to a REST endpoint with a username ...
2
votes
1
answer
158
views
How does a website that accesses my salesforce metadata/data authorize against my org?
I am attempting to create a web app (ruby on rails) that requires access to a user's Salesforce environment to perform some REST api calls (SOQL queries) and in doing so I've implemented the web ...
0
votes
1
answer
962
views
Salesforce SSL Cert imported into java trust store for integration works on the day imported but gives certificate error the next day
I am importing the Salesforce SSL certs for the test.salesforce.com and our sandbox environment using the commands below in a VM server environment.
Import test.salesforce.com or login.salesforce.com ...
2
votes
1
answer
4k
views
Using Named Credential + OpenID Connect auth provider to obtain access token with client_credentials grant
I am trying to use the Named credentials for the first time without using the named credentials directly if I call the endpoints with credentials it works perfectly fine which uses OAuth where I get ...
4
votes
1
answer
738
views
How to use a Named Credential for custom authentication that needs more than username, password to generate a secure token(X-Auth-Token)?
Premise
We're currently storing the following parameters used for integration with a home grown web service:
username
password
tokenKey
initVector
The below code is used to generate an ...
2
votes
1
answer
4k
views
Auth Provider with per-user Named Credential
I have a custom AuthProviderPluginClass implementation that is working fine for authorization and the related registration handler in my community for External Identity users. I've configured the ...
3
votes
1
answer
825
views
Adding extra parameters to Auth Provider URLs
Is it possible to add extra parameters to the auto generated SF URLs in Auth. Provider?
To be more clear, here's an example:
We have an Auth. Provider with an auto generated URL(let's say https://...
3
votes
1
answer
1k
views
Single Connected App for Multiple Salesforce Communities in different orgs
We can have a single connected App that can be used to access other Salesforce org as well. For e.g. Chatter Desktop connected App can be used by all Salesforce orgs to authenticate their users even ...
0
votes
0
answers
206
views
Adding a Log In using Salesforce button
I am building a web application that will read/write data from a user's salesforce org. Is there any way to put a button on my site that says "Login with Salesforce" and when clicked, it would ...
2
votes
0
answers
3k
views
OpenID error: No_Oauth_Token unauthorized_client
I am following this doc to implement an external authentication provider.
So far I was able to be redirected to their site, authenticate there and be sent back to SF. However, when I am sent back to ...
0
votes
2
answers
413
views
Authenticate AWS Transcribe Service from apex
We are trying to use AWS Transcribe service to convert voice to text. As first step we are trying to authenticate to AWS using the documentation they have provided. Whatever we do we end up with the ...
4
votes
0
answers
1k
views
Unable to retrieve debug logs from Auth.AuthProviderPluginClass
I am now working on an implementation of an external authentication for SF. I am following this guide and so far I was able to define and set up the initiate() method and redirect to the correct URL. ...
1
vote
0
answers
61
views
Authentication via SFDC to "Approve" a record - Secure method needed [closed]
I have a unique requirement to build and am having trouble with the method to use to meet it.
Working with a science lab that wants the ability to soft lock a record (via Validation Rule) that ...
2
votes
1
answer
2k
views
Using curl to make a REST API call
I need to call a rest API service in Saleforce from an external client. This application logins in Salesforce with the SOAP standard login service and then has to call some custom services. The ...
2
votes
2
answers
509
views
Salesforce Connect with Cross-Org Adapter: This session is not valid for use with the REST API
I am using Salesforce Connect with a cross-org adapter to connect two orgs.
I have configured the external data source with oAuth and an Authentication Provider. The data source was successfully ...
0
votes
5
answers
4k
views
SFDX: Authorize an org error: listen EACCES: permission denied 127.0.0.1:1717
I have been using DX for quite some time. Authorizing an org either through command palette or with a command in terminal had never been a problem [Command is like this: sfdx force:auth:web:login --...
0
votes
1
answer
163
views
Auth Token - Can we extend the expiry period?
The auth token used for triggered sends (generated via this URL https://auth.exacttargetapis.com/v1/requestToken) expires after 60 minutes. Is it possible to change the expiry period? We'd like to ...
0
votes
1
answer
503
views
" Invalid_grant : authentication error" loggin in workbench
I got this error loggin in workbench, after setting up a scratch org (it shows a strange custom domain but I red around forums that it's ok since it can be an old unused org).
I went through the ...
0
votes
0
answers
232
views
Authenticate Custom Content Block via SFMC
I have Custom Content Block which is a Node.js App hosted on Heroku Cloud.
I want my Custom App to be available for usage only to the users of my SFMC Platform.
I have looked for the Marketing Cloud ...
0
votes
1
answer
2k
views
Intermittent JWT Authentication Failure
I just spun up a new sandbox (couple of hours old) and I am trying to setup a CI/CD process using BitBucket Pipelines and sfdx. When I run the force:auth:jwt:grant command with hardcoded values (i.e. ...