Questions tagged [auth-provider]

The tag has no usage guidance.

34 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
0answers
293 views

Manually Invoke Refresh on Custom AuthProviderPluginClass

I have recently implemented a custom auth plugin provider in hopes of getting away from making a token call with every request OR having to manage the token myself. I am using the Oauth 2.0 client ...
7
votes
0answers
433 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, ...
6
votes
0answers
218 views

Setting up Marketing Cloud as an Auth. Provider

Lately we've been integrating very tightly with Marketing Cloud, so I thought about trying to set up the External Services which Salesforce provides in order to do some minor actions via flows. In ...
3
votes
0answers
290 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. ...
3
votes
0answers
2k views

Auth Provider : AuthorizationError?ErrorCode=NO_ACCESS&ErrorDescription=User+was+a+portal+user

I would like to ask you about Auth Provider: I have a Registration Handler in a DE org linked to my Auth provider, it is working correctly and allowing the external users to register. Now I decided ...
2
votes
0answers
230 views

Help setting up Marketing Cloud REST API as an External Service in Salesforce

I'm want to use External Services in salesforce to call the Marketing Cloud REST API in a flow. I've done some digging on this and think the steps to do this are: Setup an Auth Provider Setup and ...
2
votes
1answer
371 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 *...
2
votes
0answers
7k views

We can’t log you in because of an authentication error. For help, contact your Salesforce administrator

We are trying to implement custom auth provider to facilitate users from a different domain can log into Salesforce with domain credentials. Flow:- 1.User will login to web application with domain ...
2
votes
0answers
43 views

Can Social Logon be used directly from a native mobile app?

We have a Customer Community with Facebook and Google set up as Auth Providers. In addition, we have a mobile app that connects to Salesforce using OAuth towards this community. This all works fine. ...
2
votes
1answer
352 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
474 views

Salesforce as IdP for Aha.io - Single Sign-On Error: Invalid HTTP Method

I'm completely new to SSO, so please bare with me... I am trying to setup Salesforce as the IDP using SAML 2.0 for a third party application called Aha.io. I've followed this guide to Enable ...
1
vote
0answers
29 views

Custom Auth provider - pass data to `getUserInfo` from `handleCallback`

I have a custom Auth Provider used by Connected App where the data that salesforce expects to be returned in the getUserInfo method is actually sent along with the OAUTH2 state (that data is coming ...
1
vote
0answers
36 views

Setting up Auth Provider with SSO

I am calling a REST API using Auth provider and Named credential, but the client wants to use their IDP SSO instead of using API credentials. Is there a way we can configure an SSO with Auth Provider ...
1
vote
0answers
51 views

OAuth Flow required every day. Otherwise Callout fails with 401

In a customer org, Api calls are made using a NamedCredential using an OpenIdConnect AuthProvider. I didn't configure this but my own code fails with 401 Unauthorized. When I going to the ...
1
vote
0answers
96 views

Authentication providers on a custom community login page

We have defined custom Auth. Providers (like for facebook or google or itsme) and would like to expose them to my visualforce community. On this community we have implemented a custom login page (...
1
vote
0answers
72 views

Setting up an external OIDC auth provider with Salesforce

I have always integrated a SAML IDP with Salesforce and I'm trying OIDC now. I have created a Salesforce OIDC app in my IDP. I took the clientID and clientSecret, and then created a Auth. Provider in ...
1
vote
0answers
90 views

Getting an Error on Community When Trying to Work with Custom Auth. Provider

I've configured a community to work with custom Auth. Provider by selecting it on the manage community menu (Administration --> Login & Registration). After entering user name + password, it goes ...
1
vote
0answers
172 views

Customer Portal + Auth Provider + Connected App + Facebook Login + SalesforceMobileSDK-CordovaPlugin

When we login using Facebook it successfully redirects to the Facebook login page and if login username and password are correct then shows the authorisation of the Facebook developer app. when you ...
0
votes
0answers
20 views

Named Credentials with Authorization Protocol OAuth 2.0 vs authorization and authentication handled using apex

Could anyone please clarify my doubts. If I use Authentication Protocol as Oauth 2.0 and provide an Authentication Provider for the same with required settings and call a rest end point of different ...
0
votes
0answers
26 views

Setting up MyTrailHead subdomain results in Auth Provider error No_OAuth_Token

I am trying to set up a MyTrailhead subdomain on a sandbox org as mentioned here: https://help.salesforce.com/s/articleView?id=sf.mth_set_up_your_mth_subdomain_and_namespace.htm&type=5 My user is ...
0
votes
0answers
38 views

Named Credential Authentication Error

I am trying to connect with Named Credentials. I am using oAuth2.0 authentication protocol. I have created a connected app ,Auth Provider and Named credentials as shown in the image below Error, the ...
0
votes
0answers
23 views

Custom oAuth provider Plugin class initiate method

I need to call the initiate() method again from handlecallback() method. Is there any way I can do that? Why i am doing this: I have an integration between sfdc and azure ad, using oAuth2.0. I have ...
0
votes
1answer
92 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, ...
0
votes
0answers
45 views

Named credential using OpenId Auth Provider

Is it possible to setup Named Credentials for following type of OAuth provider? I tried configuration named credential and Auth Provider (using OpenId) but unable to authenticate successfully. "...
0
votes
0answers
52 views

Salesforce to Azure AD named credential failing after access token expires

Sf azure:Refresh token exchange to renew access token process (not working) I am facing an issue where I have a named credential configured in Salesforce using auth provider (using openid connect for ...
0
votes
0answers
133 views

Decode Access and ID token recieved from 3rd party system in Salesforce Apex

We receive access token in Salesforce apex from 3rd party system (AWS Cognito) using a custom Auth. provider. I need to inspect the access and Id token to make sure that the tokens are valid and have ...
0
votes
0answers
10 views

AuthProviderPluginClass - Why does the methods do not require override keyword?

AuthProviderPluginClass is an abstract class. Are the methods like- getCustomMetadataType(),initiate() abstract methods? If yes, why they do not need the override keyword. If no, what is the need to ...
0
votes
0answers
48 views

Named Credentials redirects to login page after successful callout

I have implemented Named Credential to integrate b/w Sales and Service orgs with the guidance from this website (Salesforce to Salesforce integration) and able to successfully integrate the orgs. ...
0
votes
0answers
108 views

How does stateToPropagate work when extending Auth.AuthProviderPluginClass

I have created an apex class that extends the Auth.AuthProviderPluginClass. Everything is working but I have a requirement to pass "language":"fr" or "language":"en&...
0
votes
0answers
45 views

Custom Merge Field Named Credential Apex

I am integrating with GoToWebinar using a Named Credential to make Apex Callouts. While the Authentication piece is working well, during the Callback to get the access token, there are some additional ...
0
votes
1answer
41 views

AuthToken using Open Id Connect

We use a third party provider for SSO using OpenId Connect. We use the accessToken for the logged in user when making API calls for user session validation. When we do an Auth.AuthToken.getAccessToken(...
0
votes
1answer
297 views

External Services, Named Credentials, and Google Identity Aware Proxy (IAP)

I have a Swagger/OpenAPI API running on Google App Engine behind Google's Identity Aware Proxy. I can hit the URLs directly, which causes a normal authentication flow and authenticates me using my ...
0
votes
0answers
470 views

Registration Handler - determining which Auth Provider was used to sign in

We have many Auth Providers (all based on OpenID Connect) we are using to SSO into a Salesforce community. In order to add some logic to the Registration Handler that checks if a user already exists ...
0
votes
1answer
68 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 ...