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
0answers
15 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
0answers
25 views

Authentication error with JWT token - Server returned HTTP response code: 400

I am trying to authenticate to Salesforce with JWT Bearer flow but getting error- java.io.IOException: Server returned HTTP response code: 400 for URL: https://login.salesforce.com/services/oauth2/...
0
votes
1answer
61 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
0answers
26 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
1answer
35 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
1answer
26 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 ...
0
votes
0answers
18 views

Chat Authentication Flow - How to pass AuthToken (Custom Attribute to Bot) [duplicate]

Chat is hosted on a different platform, and Authentication is using different Identity Provider. And the Authentication happens in Pre-Chat custom component. I need to use Authentication Token in the ...
1
vote
1answer
119 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
1answer
29 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 ...
1
vote
1answer
124 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 ...
3
votes
1answer
53 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 ...
0
votes
0answers
67 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
1answer
54 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://...
2
votes
1answer
37 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
0answers
26 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 ...
0
votes
0answers
25 views

REST Mutual Authentication Certificate [duplicate]

I need to setup my rest endpoint to authenticate using Digital Certificates. When doing research about mutual authentication the examples are only using soap. https://help.salesforce.com/articleView?...
0
votes
0answers
21 views

Two factor authentication for external identity user [duplicate]

I'm looking for use standard two factor authentication (using Salesforce authentication app) for user with the External Identity licence but I don't find anything, is it possible? Are there any other ...
1
vote
0answers
84 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
1answer
50 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 ...
0
votes
0answers
22 views

Ask Authentication/Creds on Save(OOTB)

Can we have any mechanism/configuration, which will trigger authentication OOTB for sensitive object update? What is the best way to achieve the same in Salesforce? This should ask authentication of ...
3
votes
0answers
64 views

Debugging AuthProvider

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. ...
0
votes
0answers
12 views

How to Login using Salesforce Customer community user credentials from Third Party Mobile Application [duplicate]

Our Client have Salesforce Customer Community License and have customer community in place. They have developed Third Party mobile application (Not SalesforceA) for Android and Apple devices. ...
1
vote
0answers
25 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 ...
1
vote
1answer
113 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
38 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
296 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
60 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
47 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
191 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
70 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
35 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
72 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
179 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
143 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
22 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
49 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
45 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
24 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
29 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
41 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
80 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
29 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
17 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
60 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
58 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
288 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
145 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
36 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,...

1
2 3 4 5
9