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
1
vote
0answers
22 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 ...
0
votes
1answer
30 views

Custom Auth Provider: RegistrationHandler issue

I have to set up SSO, so that users are able to log into Salesforce with their credentials from the other system. Due to the way how the authentication works, I had to set up a custom Auth provider. ...
1
vote
1answer
60 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 ...
0
votes
0answers
27 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 ...
1
vote
0answers
22 views

How can i returned access token for partner community user (external user) from connected app? [duplicate]

In my organization i have two users(Salesforce license user, Partner Community license user ). Here i am accessed over a connected app using postman. The access token is returned for Salesforce ...
0
votes
1answer
79 views

SFDX: Authorize an org error: listen EACCES: permission denied 127.0.0.1:1717

I have been using DX for quite some time. Authoring 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
1answer
32 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
1answer
47 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
0answers
28 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
1answer
91 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. ...
1
vote
1answer
47 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 ...
0
votes
1answer
25 views

Can I setup two-factor authentication for mobile only

We have everything we need as far as authentication using a third party application. BUT if I relax IP restrictions for mobile, am I able to set up two-factor authentication through Salesforce only ...
4
votes
1answer
67 views

Redirecting to MyDomain URL

We set up SSO with Auth.Provider in Salesforce. We deployed My Domain and linked the auth provider to it. When a user navigates to the My Domain URL, they are automatically redirected to the auth ...
0
votes
1answer
80 views

oauth infinite redirect loop during authorization

This problem has occurred in a few of our applications that use the same forms of salesforce oauth authentication. When you first navigate to mywebsite.com, it sends you to salesforce to login, once ...
0
votes
1answer
88 views

How to Make Pardot Authorisation Request?

I have a training org where I'm making API callouts for authorise to the Pardot environement, but recieving the error :- Error Code :- 49 Error :- Access Denied, The details of the API url which I'm ...
1
vote
0answers
20 views

Error using inline Embedded Login

I have a SFDC Community, which has its own Visualforce login page. I have another application running in a cloud host, and I'm trying to use embedded login to authenticate in my community in this ...
1
vote
1answer
35 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 ...
0
votes
1answer
35 views

Named credentials with POST, url-encoded body and custom grant type for Token generation

Can we use Named credentials against 3rd party with following parameters requirements, which helps us to have access token: Endpoint Method - POST URL encoded body which has following Grant type = ...
0
votes
0answers
23 views

SendGrid - how to authenticate calls to Salesforce [duplicate]

We are integrating Sengrid and Salesforce. SF creates the email and SendGrid sends it. We want to record the delivery status (sent, delivered, opened,..) in SF by updating the EmailMessage object. To ...
0
votes
0answers
28 views

Authenticate to send a GET request to a lighting page [duplicate]

i would like to ask if it is possible to get a token that allows you to receive the html of a lightning or visualforce page given the url. The REST api token doesnt seem to work. For example get the /...
2
votes
1answer
38 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 ...
1
vote
0answers
58 views

Jenkins Http Request not returning token [closed]

I am trying to communicate through API from Jenkins HTTP request plugin, by passing the parameters in the body like below: "username": "xxx", "password": "xxx", "client_id": "xxx", "...
0
votes
0answers
28 views

Authenticate 3rd party in Salesforce [duplicate]

I have my server in Ruby on Rails. Now I wanted to build an app in the salesforce that will authenticate with my server using auth2.0. All org who have installed my app will have access to their ...
0
votes
0answers
16 views

Connect external application with my Salesforce app

We are developing an external application which will connect to a Salesforce app (also being developed by us) for data integration. Now this Salesforce app can be installed by any organization, so I ...
1
vote
0answers
55 views

Authenticate Community Users in External Rest API

I have a Community that consumes an external Rest API that requires authentication. For testing purpose, I hardcoded a username and a password in my apex rest callouts in order to be able to consume ...
1
vote
2answers
37 views

TouchId, FaceId login for mobile Apps

One customer is asking for having the Mobile App authentication for External users sites using Communities with FaceId and TouchId, I have tried "Implementing Screen Locking and PIN protection" in the ...
6
votes
1answer
193 views

Testing Community “Passwordless Login” using the System.UserManagement Class

I am using the UserManagement class to register and login users with just their Email or Phone Number, which I have managed to get working very nicely... I have now also built a small LWC to allow ...
2
votes
1answer
76 views

Prevent Redirect to Login on Salesforce Community External URL

We have a custom PUBLIC community with a signup form. This community does not require login as the point is for the user to sign up. In this signup form, we have built a lightning component+vf page to ...
0
votes
0answers
29 views

AuthConfiguration getSamlSsoUrl method return link doesn't work

So I have the method getSamlSsoUrl(communityUrl, startURL, samlId) from the class AuthConfiguration and returned a very long url with saml id, saml acs, saml binding type, and etc in the url. However,...
0
votes
1answer
38 views

Authenticate Calls made to Salesforce webservice [duplicate]

I am using this exact example from trailhead https://trailhead.salesforce.com/en/content/learn/modules/apex_integration_services/apex_integration_webservices @RestResource(urlMapping='/Cases/*') ...
0
votes
1answer
57 views

How to send authorization to web app using Rest API [closed]

This is my first time working with API and I'm trying to understand how to send authentication to an web app using REST API. Questions I have: Do I need to setup Oauth in Salesforce in order to ...
0
votes
1answer
39 views

How could I identify when a user does an operation through data loader? [duplicate]

In our org, we are trying to block some triggers when an account is being updated through data loader. Our strategy was to get the logginHistoryId with getCurrentSession method from the ...
0
votes
3answers
90 views

Unable to login using Frontdoor.jsp

I have a usecase where I need to enable internal users to login to Salesforce using a branded login page. We have built this login page(html) in our website using Angular.js with its own custom ...
2
votes
1answer
123 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
1answer
383 views

What is “Sfdx Auth Url” attribute used for?

Till now, I have been working with SFDX orgs using JWT cert based auth auth:jwt:grantor authenticating using browser using auth:web:login I recently came across the --verbose attribute which gives ...
0
votes
1answer
38 views

Can we avoid navigating to Azure Ad login screen when we configure SSO with Azure AD as ID provider

I have to configure Single Sign using Azure AD for our salesforce community as Identity provider and Salesforce being the service provider, I want to use Open id Connect. I want check with the forum ...
0
votes
0answers
23 views

Got a blank screen when connecting with the iOS app?

In the SF iOS app, when I login on certain networks, I get a blank screen. I used the Authenticator app and enabled it in my account first; while on certain networks I can get into it, other ones I ...
2
votes
1answer
178 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?...
0
votes
1answer
54 views

How 3rd party should authenticate with custom Apex REST API [closed]

When using @RestResource to create a custom REST API which is exposed externally using a public site. How should the third party service (ESB) authenticate with Salesforce so that it can use the ...
2
votes
3answers
176 views

What method to use in a batch apex in order to get authentication token from a remote server?

I have a batch class that uses query locator to send data into the client's server. however, it must first authenticate and get access token and send that along with the data with all consecutive post ...
1
vote
1answer
114 views

Decode JWT received from /v2/authorize

I'm developing an app for SalesForce Marketing cloud. For the authentication I have a web page loaded as iframe in the salesforce mc; in this page the customer performs the login to my platform. ...
3
votes
1answer
64 views

Is OAuth 2.0 User-Agent Flow truly an Implicit Grant Type?

Is the Salesforce User-Agent Flow truly an "Implicit" grant type? It can most definitely issue a refresh token. And yet per RFC 6749 Section 4.2 Implicit Grant documentation... The implicit grant ...
0
votes
0answers
35 views

Auth Provider for Trello?

I've spent too many hours today trying to set up an Auth Provider + Named Credential for Trello's auth flow... I guess my question is, for those who have dealt with Auth Providers in SFDC, is this ...
1
vote
1answer
129 views

JWT Authentication in salesforce

I am trying to log in another user in my same org using below code. String username = 'test1@salesforce.com'; String jwtVal = '*****'; String tokenEndPoint = System.URL.getSalesforceBaseURL()....
3
votes
1answer
190 views

Apex callout to an OpenID Connect endpoint protected by PKCE code challenge

I'm trying to write Apex code that'll call an external API. The API is using OpenID Connect for authentication, meaning I'll have to first give consent in order to get an authorization code, then ...
12
votes
3answers
3k views

Mavensmate: Getting error client identifier invalid while authentication to salesforce

I use Mavensmate, Since morning it is throwing me an error "client identifier invalid" while refreshing or saving any component (Apex Class, Trigger or any) to Salesforce from Sublime. When I try to ...
0
votes
0answers
68 views

Require 2FA only outside of Trusted IP Ranges, using authenticator app 2FA (e.g. SF Authenticator push notification)

We've decided to use the Salesforce Authenticator app for 2FA for our internal users (reasons below), but want to make the process more convenient by bypassing 2FA when users are logging in from ...
4
votes
1answer
80 views

Determine whether running user is logged in from within Trusted IP Range (from Apex)

I am creating a Login Flow that invokes Apex to do some processing, and need to determine whether the running (logging-in) user is connecting from an IP address whitelisted in our org's Trusted IP ...
0
votes
1answer
89 views

Native Android/iOS Authentication with Authenticated Site/Customer Portal

I am working on integrating a native android and iOS project into a Salesforce environment. We have successfully ran the forcedroid and forceios commands to get functioning projects and have been able ...
0
votes
1answer
74 views

Login Discovery page— Need to provide userId twice for login

i have implemented login discovery page which will ask to enter ferdation id and once fedrationid enters it will redirect to perticular flow. Question here is when i am entering the fedrationId and ...

1
2 3 4 5
9