Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [authentication]

Relating to the mechanisms for user authentication and verification. There are many potential approaches to authentication on the salesforce platform.

0
votes
1answer
18 views

How do I redirect users from my website to salesforce community without asking for Login?

I need to redirect my users from my website to the Salesforce community.How can I use their username and password from my website and pass it to Salesforce community so that users are not asked to ...
0
votes
0answers
19 views

Uploading CA-Signed CRT to Salesforce?

I have an existing CA-Signed Certificate (CRT) given to me by my client, and it is needed to be able to make callouts to their external system. I have not found a way to be able to upload a CRT to ...
0
votes
0answers
11 views

Authenticate and expose external azure report on an iFrame in Communities

I am trying to figure the best way of doing this. We have a report that gets generated in Azure that has customer details. What needs to happen is, when a customer logs into SF Communities, we ...
1
vote
3answers
50 views

Login to salesforce with oauth 2.0 directly from external app using ajax

I want to be able to login directly from my .net application's login (without having to use the user's security token). And I was wondering if it was possible to send my username and password to the ...
0
votes
1answer
35 views

How to login from external app without using salesforce login redirection?

I want to be able to login via a .NET app using a custom login page on my app so I want no redirection to the salesforce login page. I want the process to be internal.  So how can I implement a way ...
0
votes
2answers
30 views

How to authenticate REST API without going through login page?

I would like to allow end-users that do not have access to Salesforce directly to be able to make orders (a custom object) by submitting a form from a web page. I would have thought making a simple ...
0
votes
1answer
17 views

How can I disable IP verification?

I am travelling a lot between end-users, and each time my IP changes SalesForce is asking me to authenticate and a code is sent to my mail. Is there some way I can disable it? Thanks!
0
votes
1answer
28 views

Mutual authentification using named credential

I need to perform 2 way mutual authentification for rest callout using named credential.Under named credential ,I can see a lookup for placing certificate.which certificate can I place under this ?...
0
votes
0answers
15 views

FuelSDK-C# failing while creating a new ETClient

NameValueCollection parameters = new NameValueCollection(); parameters.Add("clientId", this.clientId); parameters.Add("clientSecret", this.clientSecret); parameters.Add("...
0
votes
1answer
25 views

Allow access to a user-type custom object

I have a custom object called 'Advisor' and for every single record, I would like to allow authentication access for that one Advisor to log in and view their record and make changes. For example, ...
3
votes
0answers
66 views

Authorize into developer Sandbox using JWT

I am attempting to authorize a developer Sandbox using JWT in an attempt to implement a CI process. I found this related question on the subject: Can I connect to a sandbox using JWT Flow and Prod ...
0
votes
0answers
28 views

How is this Authentication Option called and how can I implement it?

Recently I was working within my Salesforce Sandbox and when I switched to the Sandbox version of the application, Field Service Lightning, the authentication platform below appeared. I'm interested ...
0
votes
0answers
17 views

Change landing app in lightning

Use Case: Our org have users coming from 2 sources using SSO. There are some common users between these sources. If user is coming from Source A, lets say landing app after SSO should be "Sales" and ...
0
votes
0answers
153 views

400 bad request / invalid_grant occurs every other auth attempt

I'm having some strange behavior while using the OWIN Auth providers package for C# . When I make my first attempt to authenticate, I can see a 400 error in fiddler: 46 {"error":"invalid_grant","...
3
votes
1answer
239 views

REST API OAuth2 CORS Issue

Problem: I have a separate app, from which I want to allow the user to authorize sharing data with Salesforce. The user clicks a button on the site, which executes a Javascript function that makes a ...
0
votes
1answer
223 views

OAuth 2 Client Credentials - Missing 'grant_type' & Length Required

Trying to connect to an endpoint to receive a token back. Http http = new Http(); httpRequest request = new httpRequest(); request.setHeader('grant_type', 'client_credentials'); request.setHeader('...
3
votes
1answer
92 views

Custom OAuth Auth Provider

I have a Rest API Endpoint that I am looking to callout to. Something like this: https://myrestservice.com/service/logs When setting up the Named Credential, I set up the URL to: https://...
0
votes
0answers
20 views

Is Salesforce 2FA supported using only SMS or Email and not the Authenticator Application?

I am trying to do two-factor authentication via email or SMS. 2FA via the authenticator app isn't an option as we cannot install anything on user phones. Native Identify Verification codes would work ...
3
votes
1answer
33 views

Authentication options for community users (not in Active Directory)

We need to authenticate users to Salesforce Community using internal app login which cannot support SAML or OpenID. Is there any other solution available? Is "custom authentication provider" the only ...
2
votes
1answer
47 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 ...
4
votes
0answers
37 views

What is the proper approach for deploying custom Auth. Provider in Salesforce DX?

I have a custom Auth. Provider and a couple of Named Credential which use it. The auth. provider metadata requires "Execute As" field which is represented as username in metadata and as you know, ...
1
vote
2answers
87 views

Salesforce SSO - unique usernames needed between Sandbox and prod environment?

Our team is trying Salesforce and we have a sandbox and a production Salesforce. To use SSO (Okta) are we able to use same SSO login to both environments? Because email address to my knowledge has to ...
2
votes
1answer
72 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....
0
votes
1answer
17 views

Do we need separate authentication grant to access different salesforce object?

We have a soql query which we run against the api that works on User object Select Id,Name from User; we are trying to enhance the query to retrieve the profile.name and role.name using the same ...
1
vote
2answers
24 views

Leveraging Salesforce Authentication

I'm looking to leverage Salesforce Authentication for my website. Essentially I'd like the user to be able to enter their username/password, have that validated by Salesforce, and then be able to ...
5
votes
0answers
242 views

Named credential does not work with client credentials

I have read the full documentation and have few questions on how named credential works. I have written a custom provider like this: /** * Description of the class * <p /><p /> * @...
0
votes
0answers
26 views

Login as a community user with API

We're developing an feature which allows a user to login to the community page seamless. For example, We will generate a very secured token. We want to auto-login the current user, once the user ...
0
votes
0answers
21 views

Enable SMS authentication for a community user

We could not enable the SMS authentication for community users to login. What worse, not when I login as a community user. The page will show Register for identity verification. However, nothing ...
2
votes
2answers
64 views

Why would I be getting redirected on an authentication request (Rails app)?

tl;dr - I'm confused about a) why I can't access the our new Sandbox form the API and b) why rather than getting an authorisation error I'm getting redirected. We've just set up a new SF sandbox, and ...
0
votes
2answers
376 views

Problem with force:auth:web:login

I have the following problem: when I try to use the sfdx force:auth:web:login command, nothing happens. When i do it with sudo, a salesforce site opens and I put in my login & password, the site ...
0
votes
1answer
59 views

How is Authentication Between marketing cloud and sales cloud handled from Custom Preference Center

In our company a 3rd party vendor group created a single page that has combination of amp script and SSJS for custom preference center. From a security stand point, I was trying to figure out how ...
1
vote
1answer
36 views

Is Salesforce Verification Code Challenge a kind of Two-Factor Authentication?

I am wondering if the Verification Code Challenge users usually get upon logging in their Salesforce Org can be considered as a kind of Two-Factor Authentication. The reason why I am asking this ...
1
vote
1answer
27 views

How to authenticate without the need of a consumer key

Basically, I'm trying to figure out a way to authorize an application to use the Tooling API, but I would like to not have to set up a Connected Application. I've seen this question, but it doesn't ...
1
vote
1answer
48 views

How do i check if a user logged into salesforce from javascript? Either through api or reading cookie value [closed]

We want to allow users who are already logged into salesforce and have access to our application to continue to our application home page without going through the login flow , if not we want to take ...
2
votes
2answers
158 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 ...
1
vote
0answers
80 views

Login with google in the Salesforce SDK in react native

We are building an application where we need to use the google login the login to salesforce. We have setup everything in our salesforce environment to enable this. When we do it with the browser it ...
2
votes
2answers
422 views

Salesforce Server-To-Server API authentication

I'm writing a python application which shows some metrics about an organization. However, I'm running into two problems: There are no service accounts - I need to fetch information from Salesforce ...
0
votes
0answers
24 views

Setting up a connection to an external webservice with authentication

I'm new to authentication an I have some questions. The office wants me to create an 'internal user context', so the users of Salesforce can load data out of an external database. I need to set up ...
0
votes
0answers
94 views

Canvas Node.js app Authentication with nforce

I am building a simple canvas node.js app that is hosted on Heroku. All the app needs to do at this point is make a REST API call and display the Users of an org. I am using nforce. The following code ...
2
votes
1answer
301 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 ...
10
votes
1answer
2k views

Use a Named Credential with API key?

I want to be able to make callouts to JotForm, but they do not support OAuth and username/password is insufficient for their API. Here are their docs; for reference, here are the 3 auth options: ...
2
votes
1answer
426 views

Named Credential: Authentication process and refresh token

I've begin working with Named Credential and Authentication Provider for the first time and I'm a bit lost on the authentication process and the refresh token functionalities. I'm going to add to my ...
2
votes
0answers
96 views

Obtaning refresh token when using Extenral Data Source with Salesforce OAuth 2

I'm trying to configure an External Data Source to use Salesforce Auth Provider so the OAuth 2 will pass access and refresh token. My configuration: Identity Type: Per User Authentication ...
0
votes
0answers
21 views

Generate otp for salesforce from a mobile sdk app

When we log in to salesforce for the first time from a browser or from an unidentified app like dataloader, we get an otp in either our mobile or email. Now I have a mobile app developed using mobile ...
2
votes
2answers
128 views

Determine logged-in status of users

We are trying to determine logged-in status of our users as part of an automated lead-routing process (we only want to route to logged-in users), but we are seeing some inconsistencies. We currently ...
4
votes
1answer
153 views

Post to Chatter via public REST resource on Force.com site

Per this Salesforce developer blog post, I am using a Force.com Site to publicly expose a REST web service: [...] add the class and any relevant objects/fields to your Site’s Public Access Settings,...
2
votes
1answer
49 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 (...
0
votes
0answers
99 views

Getting response invalid_grant user hasn't approved this consumer when using JWT Bearer Token [duplicate]

I have a Node.js program that attempting to get a token as shown below: 'use strict'; var request = require('request'); var jwt = require('jsonwebtoken'); var key = require('fs').readFileSync('./...
1
vote
1answer
767 views

How to determine the correct 'audience' and 'uri' when using OAuth 2.0 JSON Web Token (JWT) Bearer Token Flow

I have correctly been able to use "OAuth 2.0 Web Server Authentication Flow" and now I'd like to switch to "OAuth 2.0 JWT Bearer Token Flow". I wrote a test application in Node.js with the values two ...
0
votes
0answers
57 views

Salesforce Canvas App to send JWT Token to Third party ?

Is it possible that a Salesforce canvas app can send JWT token to third party ? I'm new to canvas app, we have a requirement that we need embed third party app in visualforce page/Community page using ...