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
160 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 ...
2
votes
1answer
853 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
181 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
63 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
71 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
320 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 ...
2
votes
1answer
841 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
3answers
552 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
486 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 ...
0
votes
1answer
71 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
1answer
388 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 ...
1
vote
1answer
400 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. ...
2
votes
3answers
495 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 ...
2
votes
2answers
214 views

Salesforce Authenticator - We received an unrecognized request

Has anyone seen this error before with the Salesforce Authenticator app? We received an unrecognized request We found a request for a previous installation of the app. We took care of it for ...
13
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
88 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 ...
0
votes
1answer
124 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 ...
4
votes
1answer
338 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 ...
2
votes
1answer
625 views

How to get the public key in form of JWS Key set

I have a JWT Class which generates JWT Token using Private key. Now, I need to expose an endpoint for exernal application to get the public key in the form of JWKS KeySet. Can anyone guide me how to ...
0
votes
1answer
238 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 ...
6
votes
1answer
1k 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 ...
4
votes
1answer
2k views

Using Named Credentials in OAuth 2 authentication (grant_type=password)

I want to get an access token from an external endpoint (HTTP callout to REST API) without hardcoding passwords. The external system expects a request with Oauth 2.0 authentication details provided in ...
1
vote
0answers
209 views

How can I prevent unauthenticated users from downloading an attachment?

I have a community and internal links to attachments. They end with ...servlet/servlet.FileDownload?file={ID} When the user clicks the link, a window.open(fileUrl) is called. This prompts to download....
1
vote
1answer
205 views

Issue logging into Salesforce Workbench with custom domain

Does anyone know why I receive an 'invalid_grant: authentication failure' message when I try signing into Salesforce Workbench using a custom domain when I can sign into the custom domain normally? I ...
0
votes
1answer
1k views

Rest API Salesforce with Certificate

I have a Rest API Service: @HttpPost global static String actualizarAveriaIngenico(String numorden_stu, String numproceso_mant, String estado_averia, String nombre_tecnico, String ...
1
vote
0answers
134 views

Web Server OAUTH flow without user interaction [duplicate]

I am trying to access Salesforce resources , through another application using an integration user. There is no user intervention to click/approve/allow the authentication. All needs to happen through ...
1
vote
0answers
374 views

Authentication error when connecting to the Streaming API

I want to subscribe to PushTopic events from my Open CTI application. But I can't even connect to a cometd server. Help me find the problem with my solution. Or maybe there are other ways to subscribe ...
1
vote
1answer
35 views

Native Mobile App - Authorized by Salesforce - Access Token

We have SSO enabled for our org via ADFS using SAML. The single sign on is working absolutely fine. We have an native tablet app (custom) which has an option to launch Salesforce inside the app (as ...
2
votes
1answer
175 views

How is this possible to use the Salesforce CLI after changing my user's password?

Couple of days ago, when logging in to the Org via browser, I was prompted to update my password. Last time I used Salesforce CLI was 2 weeks ago and today I had to do it again. However, no password ...
0
votes
2answers
62 views

Is there a way to get new access token when current session get expired without using Connected App?

I have one Customer's Salesforce Application and one .Net Web Service. I also have Connected App in Salesforce which I am using to generate new token. Salesforce Application calls .Net Web Service ...
1
vote
1answer
87 views

Require 2FA outside of Company range

We have been looking at a way to make users authenticate via MFA outside of the company's network range? I was looking at https://success.salesforce.com/answers?id=90630000000hdMQAAY, however, it ...
0
votes
1answer
34 views

Can multiple autorization_code co-exist for a single integration user?

I have a single integration User, which is used to authenticate a background integration job. This uses web-server flow. And to avoid storing username/password on the server, I have only supplied ...
2
votes
1answer
389 views

Validate jwt token inbound webservice

We have a requirement to validate jwt tokens for inbound webservices: In Salesforce we will expose some REST WS 3rd party system will call salesforce with a jwt token* in the Authorization header *...
1
vote
1answer
2k views

Expired authorization code and Invalid Nonce errors

We recently launched a mobile app and we use Salesforce Identity Management. ie all customers have a Salesforce user record and authentication is done is Salesforce. After the launch, some users were ...
0
votes
0answers
17 views

Vendor App does not work with Salesforce Authenticator

I am trying to explain to a vendor that their app does not work with Salesforce Authenticator. The user opens the app, logs into Salesforce, get told to authenticate, authenticate. Then reopen the ...
1
vote
1answer
288 views

Can we use frontdoor.jsp to give access to salesforce vf page, without using username and password?

If the SSO is set up, can we use frontdoor.jsp without using Username password? I would like to access the second salesforce org from first salesforce org. SSO has been set up already. Canvas ...
0
votes
0answers
105 views

send mass emails from Salesforce using personal emails

We have users who will trigger mass emails to generated leads, child users as a part of their campaign. Till date, it is done using google and we are planning to remove gsuite from our system. When we ...
2
votes
1answer
7k 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/...
3
votes
3answers
274 views

Public Salesforce Site and Security Review

Let's face it. Salesforce Communities is expensive and not for everyone out there. I have a customer who wants to create a customer-facing site where non-logged in users can register themselves and ...
8
votes
2answers
1k views

How to delete SSO information?

I have implemented the auth. provider SSO from Facebook. When I disable a user, I want to delete at the same time the authentication information of Facebook(ex. Third-party account link in User ...
0
votes
1answer
1k views

Authentication Token with apex

I want generate a token, give this token to third-party application, and this app can authentificate into salesforce and call the web service. I want to create an authentication token, call a third ...
2
votes
0answers
297 views

How to store and use named credentials with OAuth

I have read this Where to Store Token Auth? and as far as I understand this, the best way for an OAuth based auth. is to use the named credentials. But I do not get the point how this work. In my ...
0
votes
1answer
674 views

Webservice @httpPost method authentication

Quick response on this would be helpful. I'm able to send request body from Workbench as source to my org as destination for creation of records. But what i need is how to perform the same operation ...
2
votes
1answer
725 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 = "...
3
votes
1answer
865 views

How to access a Per-User Named Credential from Apex

My managed package Apex code is making callouts but I can't use a packaged Named Credential as the user also needs to be able to adjust the endpoint URL not only the username and password. I planned ...
0
votes
1answer
186 views

Login to OpenCTI softphone through the custom auth provider

I'm working under our solution of the Softphone using OpenCTI. Now I need to authenticate our customer's users through our OAuth2 provider. How I understood the best practice for using external ...
1
vote
1answer
392 views

Understanding authentication for Apex SOAP web service

I have read this post: How authentication works in APEX and since the SF documentation is a bit confusing for me at this point I would like to ask: Is it possible to get the session id with a ...
2
votes
1answer
353 views

Error: Janrain authentication

I followed the janrain Auth provider tutorial for social login implementation and getting following error: https://ap1.salesforce.com/_nc_external/identity/sso/ui/AuthorizationError?ErrorCode=...
2
votes
1answer
406 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://...
0
votes
1answer
55 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 ...

1 2 3
4
5
10