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
2
votes
2
answers
735
views
JWT Oauth flow Confusion
I am having trouble getting the hang of the JWT Oauth flow and how it exactly works. Is a user supposed to enter their username on your website, which you then generate the JWT on your server and then ...
2
votes
1
answer
528
views
connected app needed?
If a webservice in Org A needs to communicate with a webservice in a package deployed in Orgs (B,C,D..) and Org A has user credentials for Orgs (B,C,D..) does the package deployed in those orgs need ...
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 ...
2
votes
1
answer
5k
views
When to use username & password flow to obtain a token
One of ways to get an access_token to use with SFDC Rest Api is to use the Username and password flow, where you use both of these to get an access_token.
Its documented here: https://developer....
2
votes
4
answers
9k
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 ...
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 ...
2
votes
1
answer
2k
views
ExactTarget API Integration
I'm trying to integrate with the https://auth.exacttargetapis.com/v1/requestToken endpoint to receive an AuthToken to communicate with the Salesforce REST API, like here.
I created a Connected App ...
2
votes
1
answer
1k
views
[API][CORS] Not able to use API despite domain being whitelisted
I'm new to Salesforce, but before asking I've been through docs and can't find a way around it.
I have a Salesforce Developer Edition where I have a user with API privileges, connected app added and ...
2
votes
1
answer
2k
views
OAuth Password Authentication for curl
I've seen this question on here numerous times, but none of the solutions I've found have helped.
I'm trying to authenticate via curl.
I set up a connected App, and retrieved the Client Id and ...
2
votes
1
answer
1k
views
Pardot authentication api not working with correct username and password
I'm having trouble getting the pardot authentication API (v4) working. After triple checking I'm sure I'm using the correct credentials.
Making a POST to
https://pi.pardot.com/api/login/version/4?...
2
votes
1
answer
1k
views
JWT Token always expires after 'exp' provided in the claims
I've tried implementing a JWT Bearer Token Flow. I followed the documentation on here. The code is originally in Java but I managed to adapt it to c# as the code below shows.
String header = "...
2
votes
1
answer
915
views
Need to call salesforce API from external system [closed]
I am creating an external app, where I need to get the data from Salesforce.
I understand the use of Connected apps, and I won't be using the web based OAuth flow where user is redirected to https://...
2
votes
1
answer
2k
views
Can we authenticate with Salesforce via Basic Authentication?
Can Basic Authentication be used to execute Salesforce REST calls?
For eg: /services/data/vXX.0/sobjects/Contact/
Added Request Header as
Authorization: Basic xxxxxxxxxxxxxxxxx
Tried both of ...
2
votes
2
answers
1k
views
Simplest way to call Apex class from external web server?
My use case is similar to Web-to-Lead: we collect user data, then add it to salesforce as new lead. I would like to upgrade to the API for higher reliability and fine-grained control.
I believe I can ...
2
votes
1
answer
153
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
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
1
answer
334
views
Authenticated Oauth workflow required constant login
I am very new to the Salesforce API. I am creating a library which connects to Salesforce and accesses data etc.
I am implementing the Web Server Oauth Authentication workflow (https://developer....
2
votes
2
answers
450
views
OAuth flow for using my app as the authenticator
I'm using SF Restful API to develop an app. A generic use case of the app would be:
User logs into the app (app specific credentials)
User requests data available @ SF.
App knows that user is allowed ...
2
votes
2
answers
4k
views
INVALID_SESSION_ID error when external app is calling GETmethod on salesforce
I have created webservice class with Get method.
I have created Connected app and I have consumer key and consumer secret.But I don't have knowledge on how to use it.
When external app is calling ...
2
votes
1
answer
30k
views
Why Am I getting invalid_client_credentials with Web Server OAuth Flow?
I'm trying to create a web service that will provide an OData API to my managed package. As part of that I need to handle authorization so the service can access the user's Org data where they have ...
2
votes
1
answer
1k
views
Avoid Credential in Apex REST Callout Code
In my current implementation of an Apex REST callout code to external system , I have to set an endpoint using a Named credentials-NAMED_CRED. The Named
Credential has an endpoint like -
https://...
2
votes
1
answer
1k
views
Where can i find the header information in a webservice callout request?
we are integrating Salesforce and SAP systems. For that we are making a callout to SAP with username and password in the header. When i checked the debug log the callout_request entry contains an xml ...
2
votes
1
answer
3k
views
Getting Same access token for multiple login request for the same user
I have written code for authenticating with Salesforce. I am using Grant_type=Password. I am using some userName like "ABC" and password like "XYZ". I am making multiple request login with same ...
2
votes
1
answer
808
views
How can I post a new lead with a fully back end solution?
I'm completely new to Salesforce, but this seems like a normal usage case but I can't seem to understand how this might work by reading their docs.
I have a website that has a form that people can ...
2
votes
1
answer
2k
views
Cannot login through https://test.salesforce to the recently refreshed sandbox?
I have deployed mydomain in the production. But after refreshed the sandbox I can't login through https://test.saelsforce.com. And Prevent login from https://test.salesforce.com also unchecked. But I ...
2
votes
1
answer
111
views
Apache httpd module that behaves like mod_ldap?
I'd like to authenticate and authorize users with Salesforce rather than LDAP/AD. Is there a module out there that will do this?
The web services secured by LDAP are not browser facing and use HTTP ...
2
votes
1
answer
232
views
Deploy SalesForce HTML5 app into device.emulator
I have created a HTML5 jquery mobile app as this link.
I can see the sample in browser and its working fine.
They also mentioned that same can be deployed in a mobile device after logging in with ...
2
votes
1
answer
619
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 ...
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 ...
2
votes
1
answer
840
views
ERROR running force:auth:jwt:grant: Destination URL not reset. The URL returned from login must be set
I'm trying to setup CI/CD with Jenkins for the first time. I already have a valid script running in Bitbucket Pipelines, but now we need to move to the client provided Jenkins server.
This is my ...
2
votes
1
answer
1k
views
Can I re-use a session ID outside of Salesforce?
I have an app that lives outside of salesforce on my own servers. I am going to link to it from within a different app that is already in Salesforce. Ideally I don't want the user to have to login ...
2
votes
1
answer
3k
views
Creating keystore file from certificate
I have a .crt file shared with my client but when i converted it into .jks format and try importing it into salesforce under Certificate and Key Management it gives me below error:
Error: No ...
2
votes
1
answer
1k
views
Allow external website authenticated users to access customer community
We have a new customer self service community that we're trying to integrate with our existing external website.
Is there a way to allow users access to community and access cases and knowledgebase ...
2
votes
1
answer
691
views
Integrating Salesforce CRM to Exact Target
I Have a requirement to call Soap API of Exact target via a callout from my Salesforce CRM Apex class. I am using the WSDL2APex approach and i'm able to successfully make the call to exact target and ...
2
votes
1
answer
5k
views
how to renew salesforce CA signed certificate
We have existing web service client on salesforce to call out third party web service with CA signed saleforce certificate. When this certificate is expired, how to renew it from saleforce "...
2
votes
1
answer
103
views
Sms Based Authentication
I enabled sms based authentication.Then it works in first time when i signed in.But then it never requires second step for my computer again. It adds the computer in trusted list.How can i ...
2
votes
1
answer
4k
views
Error when validating External Data Source for SharePoint Online
I get the following error when trying to validate and sync my newly created External data source for SharePoint Online in Salesforce: "Status An unknown error occurred while accessing Files Connect."...
2
votes
1
answer
1k
views
Getting remote access authorization error with Mobile SDK on iOS
When this happens during oauth on iPad, clicking the Not You link and reentering the username/pwd takes the user to a full screen web view of the Salesforce UI instead of my mobile app!!! Ugh!
So I'm ...
2
votes
1
answer
364
views
how would Force.com Canvas SDK and canvas method "verifyAndDecodeAsJson" work with non-java platform? Is there any workaround?
I am using signed request as the method to POST the data to the canvas app. The canvas app is the SAP BSP page. I now seeing a big road block that I am not able to retrieve the values from the context ...
2
votes
1
answer
314
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, ...
2
votes
1
answer
710
views
SSO and User Provisioning From External WebApp into Salesforce Community
Scenario - customer is logged into our web app, they click on create a ticket and are redirected to the salesforce community page as a user in salesforce with the same email as the web app, want to ...
2
votes
1
answer
275
views
Call Center - Open CTI auth
I'm new to call center so maybe this is a basic question or not very well explained.
We have a third party company that needs to use the Open CTI API and connect there System to Salesforce.
I gave ...
2
votes
1
answer
61
views
How can be personalised the standard login/authentication process of salesforce?
I'm trying to understand if is possible to override the standard login/authentication processo of salesforce.
I need to add custom logic when is triggered the login/authentication process of ...
2
votes
1
answer
14k
views
Salesforce REST API: Session expired or invalid: INVALID_SESSION_ID
Background
I am trying to access the Salesforce Reporting REST API.
public with sharing class SalesforceReportApi {
private final static String REPORTS_RESOURCE = '/services/data/v44.0/...
2
votes
1
answer
91
views
How to develop with Marketing Cloud APIs? [closed]
I'm working with a customer that has the MC connector installed. I'm wondering what is the best approach to start developing a custom Lightning Component that needs to integrate with a MC feature (...
2
votes
1
answer
2k
views
Best way to use session id and user id to authenticate users on external system
I am an ISVforce developer and I am trying to create a managed package for the AppExchange. Our app will make API requests to our external API. Our API requires an authentication token that we ...
2
votes
1
answer
994
views
Multi-Provider Single Sign-on - additional login page and buttons shows up
I have Multi-Provider Single Sign-on configured on my org, result of this is an additional button appearing on the login page as below. I wasn't expecting that, thought that user will be automatically ...
2
votes
1
answer
987
views
Avoid duplicate user creation using SSO Authentication
I have created a community and created an Auth. Provider for google and linkedIn.
This SSO are working correctly.
My problem is when I login using gmail a new user is created which is linked to gmail....
2
votes
1
answer
1k
views
how to get username from organization id?
I have a couple of org which I used before and started getting Developer script exception emails every 10 minutes from the schedule I set up. I don't remember what I used to login to this org but know ...
2
votes
2
answers
192
views
Total Newbie. Cannot log into my first test app using grant_type=password
I have set up a test application on my developer instance of Salesforce. I have a client_id, client_secret and I have the necessary security token appended to my password.
I am trying to authenticate ...