Stack Exchange Network

Stack Exchange network consists of 174 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
24 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, ...
0
votes
0answers
14 views

Mutual authentication with certificates is compatible with use of OAuth 2.0?

in a server to server Architecture. Salesforce acting as client and server so the external system. Is it possible to implement both mutual authentication with certificates and OAuth 2.0 into ...
3
votes
0answers
33 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
23 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
13 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
24 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
91 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
61 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
51 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
15 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
30 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
27 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
34 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
46 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
70 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
21 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
177 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
21 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
15 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
56 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
234 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
54 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
32 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
25 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
45 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
144 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
70 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 ...
1
vote
2answers
251 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
73 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
224 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 ...
8
votes
1answer
1k 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
349 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
79 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
104 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
131 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
41 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
67 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
565 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
51 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 ...
0
votes
1answer
109 views

Salesforce canvas App using OAuth JWT 2.0 Bearer flow

We are trying to build a POC on integrating Salesforce with a third party portal using canvas app. We have to embed this portal into Salesforce when a user logs into Salesforce. We have a local portal ...
0
votes
0answers
162 views

JSForce Username and password authentication strategy

I'm using the username, password + authcode strategy in a node app to connect to salesforce. I've got a module to connect, and another to login to salesforce. Connect opens the connection and makes ...
0
votes
0answers
29 views

SystemArgumentNullException occured in Salesforce.Force.dll

, I am getting this error when trying to login to Salesforce and calling an API.The tutorial I am following for this task is this Any idea what is this error for and how to solve it?
4
votes
2answers
268 views

Google OAuth SSO provider and Restricted Domain

We have setup Google login via OAuth for our Salesforce (Not SAML) and authentication via our custom domain page works fine. But as soon as we try to restrict our users to login only from our domain ...
0
votes
1answer
335 views

How to implement redirect login with Java + AngularJS [closed]

For example site: aside.io, when we click Sandbox login, it takes you to test.salesforce.com and then when you enter your user name and password it authenticates and redirects to the aside.io with the ...
0
votes
0answers
30 views

Cordova Hybrid app using Salesforce Mobile SDK - Windows 10

I am developing hybrid app using cordova for windows 10 platform and i want to implement PIN Authentication feature for windows platform : https://developer.salesforce.com/docs/atlas.en-us.noversion....
2
votes
0answers
220 views

error=redirect_uri_mismatch&error_description=redirect_uri%20must%20match%20configuration

I am connecting two salesforce orgs with connected app, named credential and Auth Provider. I have created connected app in target sandbox. Created Auth Provider in source org by providing Consumer ...
0
votes
1answer
18 views

Considerations when signing up for a Salesforce trial using Google Authentication?

I am signing up for a Salesforce trial, and was surprised to see that one can use a Google login to start the trial: Before I take this step, I want to understand the consequences. Here are some of ...