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
10 views

AuthProvider Interaction Troubleshooting

In trying to talk with an auth provider to get a token response for a process I'm working on I'm running into issues with the redirect/callback portion of the communication after logging in to the ...
0
votes
1answer
61 views

Auth Provider Callback masking ErrorDescription

we have Azure as Auth Provider for our community users. For some reason whenever Auth flow is interrupted in Azure, SF masks result in callback call and error_description is removed. Because of this, ...
1
vote
1answer
23 views

Ability to “prevalidate” email/phone number for community user?

We are looking at SalesForce Experiences (aka Communities) as a secondary experience for our customers. We don't have an SSO solution for them, unfortunately, but already "trust" their ...
2
votes
0answers
25 views

AWS S3 callout fails with x-amz headers

I have to use canned ACL header 'x-amz-acl' as described in AWS S3 documentation Callout with Named Credentials without header works fine HttpRequest request = new HttpRequest(); request.setEndpoint('...
1
vote
0answers
27 views

Accessing Salesforce Chatter API with a token from an external IdP

We're working on a Java/Angular app and using Auth0 as an OAuth2 provider. Now, there's a need to integrate with Salesforce's Chatter API. As far as I can see, that API doesn't support sending ...
2
votes
0answers
43 views

Authentication on SFDC Sites?

We have a credit application form hosted on SFDC Sites. A sales rep creates the credit app record, which triggers an email to be sent to the prospective customer. A link in the email takes them to ...
0
votes
2answers
106 views

Custom login functionality on a Site page

Trying to achieve: Custom login on our SF Public Site page for a sub-set of users within our org. to access a form. Submitting the data would update a Case record. Each form would be one-time ...
3
votes
3answers
271 views

sfdx force:auth:web:login – how to get it to work under Linux Mint?

Can't connect any org under Linux Mint via sfdx force:auth:web:login Neither via sfdx force:auth:web:login -r https://test.salesforce.com -a foo nor sfdx force:auth:web:login -r https://foo.my....
0
votes
1answer
22 views

Logging for ConnectedAppPlugin class

I have a Connected App Handler Class (that extends the Auth.ConnectedAppPlugin) for one Connected App I am having. Use case is this class is used to set some additional attributes for which the ...
0
votes
0answers
37 views

How to retrieve a current user's OpenID Connect ID token via apex?

Question: Is there any method for retrieving the current user's OpenId Connect (OIDC) Id Token via apex? Background Context / Goal: My goal is to set up Single logout for a salesforce community that ...
1
vote
1answer
38 views

Getting INVALID_SESSION_ID on REST Api call in C#

"[{\"message\":\"Session expired or invalid\",\"errorCode\":\"INVALID_SESSION_ID\"}]" I reviewed the other questions posted but no answers helped. I ...
0
votes
0answers
37 views

How to call Mobile SDK oauth.authenticate() for a custom community login page?

When logging in with a custom community login page, calling oauth.authenticate() does not resolve for the mobile version (React Native for iOS/Android) of my connected app. Salesforce's docs for ...
1
vote
0answers
36 views

CallOut REST Service via FLOW - Getting 401

I have an APEX class which is making a callout to REST service services/data/v50.0/smartdatadiscovery/predictionDefinitions. When I run this code in debug anonymous window it works fine however, when ...
0
votes
0answers
37 views

Authentication the Mobile Service SDK on a users Behalf

We would like to gain an access token for authenticating a user with the Mobile Service SDK by authenticating on their behalf from our servers. We are looking for a way to use the Salesforce APIs to ...
1
vote
1answer
43 views

how to implement auto authentication between communities with custom domain?

I have created two communities with custom domain in same org. Two communities are myold1.test.com(VF template) and mynew1.test.com(Customer service template). As an external user whenever I launch ...
0
votes
1answer
36 views

Does authenticating against oauth2/token endpoint count towards API Request Limits?

Does authenticating against endpoint: Instance URL + /services/oauth2/token Count towards API Request Limits?
0
votes
0answers
64 views

MTLS certificate error

I have been breaking my head to get the Mutual Authentication(MTLS) to work in Salesforce for a while but with little success. I am trying this out on a sandbox by enabling this feature and by ...
3
votes
1answer
278 views

Single Sign-On and Multi-Factor Authentication

Please, I need some informations about Single Sign-On and Multi-Factor Authentication on MC platform: Marketing Cloud Single Sign-On (SSO) is not compatible with Multi-Factor Authentication. If you ...
0
votes
0answers
36 views

NTLM Auth via Apex [duplicate]

I'm trying to make a service that calls an external system using the NTLM auth. I thought that it should be very likely the BASIC auth - but perhaps I'm wrong. I'd like to know the right way to auth ...
0
votes
0answers
28 views

Mailchimp URL parameter disappears after landing to Lightning Tab

I need to authenticate Salesforce with Mailchimp. Through quick action, I am calling an aura component which then calls LWC component. I am able to login to Mailchimp from salesforce as per the login ...
0
votes
1answer
140 views

Named credentials returning Unauthorized, 401

I have setup a connected App, Auth. provider and Named credential to call an Apexrest in a same Salesforce org but I am continuously getting Unauthorized 401. Surprisingly, it is working in a ...
0
votes
0answers
18 views

Unable to get correct Signature for Twitter Integration [duplicate]

Below code is from Postman which works exactly how I want, curl --location --request POST 'https://api.twitter.com/1.1/direct_messages/events/new.json' \ --header 'Authorization: OAuth ...
2
votes
1answer
227 views

Allow external users to access customer community SSO/JWT

Use Case: Coming from the client website, the external users need to be log into their customer communities account without having to log again. I know that I could use SAML for this use case, but ...
0
votes
1answer
65 views

Generate JWT token for external app - SSO

We are setting up a Salesforce Community and our community members should be able to automatically login using the credentials from an extenal platform when clicking on a link from this platform. I'm ...
1
vote
0answers
18 views

OAuth login page redirecting to source org

I am using OAuth web server flow to authenticate one salesforce org(source) with another(it can be any other salesforce org apart from source org). When I send user to authenticate himself into target ...
0
votes
0answers
58 views

Cannot connect to my Postgres database anymore: password authentication failed

I have this Heroku Postgres database in a hobby-dev plan for 2 months. Today I started to get this error: FATAL: password authentication failed for user "fjmtbqnoddqvqv" I did not change ...
1
vote
2answers
437 views

Per User Named Credential and External Identity Users [duplicate]

My question is almost similar to one mentioned in 'Auth Provider with per-user Named Credential' (Auth Provider with per-user Named Credential). I am trying to authenticate and make a API call when a ...
0
votes
1answer
53 views

Best way of doing API to Salesforce authentication? [closed]

I am integrating an API with Salesforce. The maintainer of Salesforce has given us access via the Username / Password flow. I can successfully get an access_token and work with the custom apexrest ...
0
votes
0answers
30 views

Calling logout with a GET request on the REST API returns status 400 from express

I am trying to add a logout call into a front end app that i'm building, that uses SF for the auth features. When logging in, i successfully get the instance url, profile string and access token as ...
0
votes
1answer
328 views

OAUTH_APP_BLOCKED | this app is blocked by admin

I am trying to integrate http://salesloft.com/ with my salesforce production instance via OAUTH. When I try to login to production using my valid credentials (I an system admin), salesloft see ...
2
votes
0answers
382 views

NTLM Authentication Protocol with APEX

I'm working on a project requires integration between Salesforce and Microsoft Navision with NTLM authentication. As I see people refer to NTLM authencation implementation ApexNTLM but it doesn't work ...
0
votes
0answers
34 views

Is there a chance to user Salesforce Authenticator App in a Login-Flow?

I want to use the Salesforce authenticator app for a 2FA-Login in Salesforce. But I only want to use it if the User isn't in the trusted IP ranges which you can set in Setup under Network Access. ...
0
votes
1answer
79 views

Salesforce SSO Org Id appending username intermittently [closed]

How do I stop sending the Org id and just the username? But this is happening intermittently.
1
vote
0answers
161 views

Multi-Factor Authentication (MFA) in SFMC with 100+ Accounts

With MFA becoming enabled and eventually required in SFMC, I was curious how partners/3rd parties are handling this requirement, when multiple individuals share the same user login? It seems all ...
3
votes
3answers
597 views

SSO: Azure AD idp + external API Callout from Apex?

Question: When a user is signed into SF with Azure AD identity provider (SSO), we want to send the current identity (in the form of a Saml assertion, bearer token, etc?) along with the external API ...
2
votes
0answers
176 views

Named Credentials with OAuth getting AUTHENTICATION_FAILURE Message on Save [closed]

Getting Following error when i tried to save Named Credential with OAuth 2.0 Authentication Protocol Named Credentials: { "name": "AUTHENTICATION_FAILURE", "message": &...
0
votes
1answer
32 views

Adding component to the API package in Salesforce Marketing Cloud

I'm installing this api package for a Journey API Entry Point through Installed Packages. The Add Component keeps saying "Unable to complete update this time". I'm trying to create a Journey ...
1
vote
0answers
45 views

Is our “Identity Server” a Good Use Case for Named Credentials and if so, how should I use Named Credentials Instead?

We have a collection of microservices hosted on Azure. In order to access these, we must first get a token from what's been described as the "identity server". I can use this code to get the ...
1
vote
2answers
416 views

SFDX: How to log in by session id and session url

We are writing a nodejs application which should execute some set of actions against SF org triggered by incoming http request coming from that org. Such request will contain base url and session id ...
0
votes
0answers
23 views

Reset password on developer account without access to configured authenticator app

I have a developer account which Salesforce Authenticator app configured. I don't have access anymore to the device where salesforce authenticator app was installed so i can't log-in. I also try to ...
1
vote
1answer
276 views

Callout to other Salesforce org using Named Credential - which Authentication option should I use?

I have 2 Salesforce orgs (with identical code) - a hub and a client. I need to pass data from the hub to the client. Using S2S is fine for normal data, but when it comes to files (eg pdf) we can't use ...
1
vote
0answers
55 views

Authenticate Custom Content Block throws a CORS issue

I'm sitting up the SSO login for my application which is a custom content block by redirecting the user to the link below: var redirectRoute = "https://" + process.env.DEFAULT_BASE_URI + &...
0
votes
1answer
45 views

Validate Salesforce Access Token via custom backend app

The usecase is very simple I have a client app SPA in Angular(APTTUS eCommerce) using Salesforce Login for User SignIn. I need to call a backend API(custom c# application) from the SPA to fetch data ...
0
votes
1answer
111 views

https://login.salesforce.com/id/keys is returning random results

I build a third-party application that integrates with Salesforce using the REST API (connected app). We hit /services/oauth2/token to get a token for the user, then we verify the token using the ...
0
votes
0answers
37 views

Customize 2FA page

Is there any way to customize the 2FA page a user sees? We don't want to display Salesforce Authenticator as the first option / splash page and would rather show our own branding.
0
votes
0answers
144 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
133 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
164 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
61 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
122 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 ...

1
2 3 4 5
10