Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [auth-provider]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

What is the authorization token format in a callout using Named Credentials with the OAuth 2.0 Browser Flow?

I'm making a callout to our backend using Named Credentials with the OAuth 2.0 Browser Flow. After setting it up, I ran a test in the Developer Console. Here's the log: 15:49:02:346 ...
vctqs1's user avatar
  • 75
0 votes
0 answers
36 views

Future method not getting called in Auth providers

From out external .Net application after user log in by clicking on one card we are redirecting the user to our salesforce community sites. In order to establish SAML communication under Auth ...
SFDC-Beginner's user avatar
0 votes
0 answers
86 views

Authenticated User "Unable to tunnel through Proxy..."

I have a connection between a Dev Box and a Full Box instance. I set up this way: Fullbox - Connected App Dev Box --> Named Credentials Uses Auth provider with login flow on save. --> Auth. ...
thinker's user avatar
  • 1,430
2 votes
1 answer
86 views

Safely Storing Client Credentials in Salesforce?

I'm trying to integrate with an external system using Authentication provider and Named credential. For this, I've created an Auth. provider with just Auth URL, Callback URL and a plugin class. Client ...
sfdcnewbie's user avatar
-1 votes
0 answers
34 views

Error : We can’t log you in because of the following error. Remote_Error: The remote service returned an error

I have a strange case. I have a custom Auth Provider, trying to authorize the named credential and getting: Problem Logging In We can’t log you in because of the following error. For more information, ...
Pratik Patil's user avatar
0 votes
0 answers
64 views

Help with auth. provider error: "Id_Token_Error: Missing id_token"

I am developing my own OpenIdConnect IdP for logging into my Salesforce. In Salesforce, I created two auth. providers. One is a custom auth. provider (and custom reg. handler), and the other is an ...
Jeff_S's user avatar
  • 53
0 votes
1 answer
76 views

Using Session_Id in Manage Package?

We have a managed package that connects with an external system. As a manual step, we ask users to manually create an auth provider and named credentials. As part of the new release using ConnectApi ...
Ragul's user avatar
  • 541
-1 votes
1 answer
120 views

How to create Auth Provider using APEX

I could see AuthProvider Object support Create() and Update(), But when i try to insert its throwing following error. DML operations are not allowing on Auth. Provider Code: AuthProvider authPro = ...
Ragul's user avatar
  • 541
0 votes
0 answers
20 views

How to associate External Data Source with a named credentials?

I created an External Data Source following the steps given in the following link : https://help.salesforce.com/s/articleView?id=sf.search_define_federated_search.htm&type=5 However the External ...
PS7654's user avatar
  • 11
0 votes
0 answers
37 views

Custom Auth Provider Setup - State Parameter is not accessible for change

I have an open id integration done between salesforce and azure B2C. I have setup the auth provider with all information. When I am trying to login in or authenticate from my community it redirects to ...
Shashank Gupta's user avatar
2 votes
0 answers
53 views

Package Named Credentials such that they are editable by subscriber org

I was using legacy named credential till now and used to package a named credential with no authentication type. I used the same in my packaged apex code. Once the package was installed, the customers ...
Mohit Sharma's user avatar
0 votes
0 answers
50 views

Programatically give a user access to an ExternalCredential Principal (Per User)

I try to find a way to programatically give a user access to an ExternalCredential Principal (Per User). The standard way, is to go to personal settings and click "Allow Access". I found out ...
Elliot41's user avatar
0 votes
0 answers
129 views

We can’t log you in because of the following error. Remote_Error: The remote service returned an error

I have a strange case. I have custom Auth Provider, trying to authorize named credential and getting: Problem Logging In We can’t log you in because of the following error. For more information, ...
mattibrd's user avatar
2 votes
0 answers
122 views

How to use a Named Credential within an Auth. Provider Plugin?

I'm currently working on an Apex Auth Provider Plugin, and I've encountered a PMD code scan error with the following message: Suggest named credentials for authentication. Rule: Security-...
Josue0117's user avatar
0 votes
0 answers
126 views

Single Logout (SLO) via OpenID Connect

We use an external identity provider to verify credentials with SSO via OpenID Connect to Salesforce Experience Cloud as the Relying Party. After the the person logs out from Site A, he should be ...
Fark's user avatar
  • 27
1 vote
0 answers
1k views

Getting error Remote_Error: The remote service returned an error when trying to authenticate named credential using a custom auth

I am trying to authenticate an external service while using a custom authenticator with client credentials, but when I click save I get the error "Remote_Error: The remote service returned an ...
peepoCode's user avatar
0 votes
0 answers
84 views

OAuth Token Authentication Issue

Named Credentials is setup for "ABC" and same details we are storing in ABC_Metadata__mdt. Auth. Provider is setup for "ABC" and same details we are storing in ...
Nilesh's user avatar
  • 1
0 votes
0 answers
97 views

How to retrieve path from URL in initiate method of custom authentication

We have an external identity provider with custom apex provider and auth. provider configured. Beside this, we have configured different paths for each country using custom url. Now we want to get ...
Robecks's user avatar
3 votes
1 answer
117 views

Remote ID limit is 128 characters

I have implemented an auth provider using OpenId Connect. But when I am trying to test the connection, I am getting this error - We can’t log you in because of the following error. Remote_Id_Length: ...
user131722's user avatar
1 vote
0 answers
244 views

Is there a way to shorten/override the stateToPropagate parameter from AuthProviderPluginClass methods?

Following the Apex structure of AuthProviderPluginClass: getCustomMetadataType() Returns the custom metadata type API name for a custom OAuth-based authentication provider for single sign-on to ...
compski's user avatar
  • 1,352
0 votes
1 answer
340 views

How to use AuthProviderPluginClass in managed package?

I am trying to create custom Auth. Provider for my managed package. Class extending Auth.AuthProviderPluginClass works well in namespaced scratch org, but when packaged and installed in sandbox I am ...
Michał Piątek's user avatar
0 votes
1 answer
897 views

Using Azure as Auth. Provider with Named Credential

I'm building an integration to a service that is protected by Azure OAuth. I've set up an registered app that I've been able to use to fetch a valid accesstoken to the Service with the following code: ...
Cnork's user avatar
  • 91
3 votes
1 answer
616 views

Package partially configured NamedCredential and AuthProvider

Creating Auth Providers and Named Credentials for an installed Managed Package is not a simple process. Most Subscriber Admins are overwhelmed by the settings. For that reason, many AppExchange ...
Robert Sösemann's user avatar
0 votes
1 answer
222 views

Integration between 2 salesforce orgs is being established when provided with wrong credentials

I wonder about the Salesforce orgs connection happening between 2 salesforce environments. The general norm: Create a connected app in the target org and generate the consumer key and consumer secret ...
Rahul Allada's user avatar
1 vote
1 answer
451 views

Auth Provider with a Google account: redirect the user after they log in [duplicate]

I have setup SSO for an experience cloud site, I selected Google for the SSO and did not specify the authentication URLs and consumer key/secret. The SSO works fine, what I want to do is redirect the ...
0xFlem's user avatar
  • 11
2 votes
1 answer
584 views

OAuth2 bearer token is not being saved in Named Credential and cannot use {!$Credential.OAuthToken}

I am trying to create an LWC that takes in 2 addresses from the UI and uses Fedex's Rates API to get the estimated cost. I have the "Token Endpoint URL" but the API docs but it does not ...
626's user avatar
  • 273
1 vote
1 answer
2k views

Dynamic redirect URL after logout from Experience Cloud

The setup for my issue happens in a digital experience. We use an external SSO System to provide credentials, so Salesforce is the relying Party. What I want to achieve is, that after the Person logs ...
Hyperzwerg's user avatar
0 votes
0 answers
52 views

How to logout of Auth0 [duplicate]

have a requirement to have a visualforce page with login and logout buttons. When a user clicks login they are redirected to the external App through Auth0 to login and if the user is found in ...
Cathy's user avatar
  • 73
2 votes
1 answer
2k views

Login into Salesforce community from external website using openid connect

I need to create a link/button to login to salesforce community from external web application. My requirement is external web app needs to be the IDP and OpenId connect should be used as provider type....
user3400263's user avatar
0 votes
0 answers
594 views

Calling an API hosted by MS Azure

On the Azure Portal console we have registered an application through the App Registration page. The app has a client credential with 1 secret. We have created a custom scope, called custom.scope. We ...
Francesca Stagnaro's user avatar
1 vote
0 answers
59 views

Oauth KickoffUrls empty in OpenId AuthProviders

I am creating an AuthProvider for an external API using Apex and SOAP API private void createAuthProvider() { createSObject( '<urn1:type>AuthProvider</urn1:type>' + '&...
Robert Sösemann's user avatar
3 votes
1 answer
604 views

How to implement PKCE flow in custom external authentication provider?

Objective is to implement PKCE (proof key for code exchange ) verification as part of SSO with an external identity provider and Salesforce Experience Cloud Tried so far: Setup a custom Auth. ...
Shamina's user avatar
  • 4,275
1 vote
0 answers
1k views

Setup the Name Credential and Auth Provider for Marketing Cloud API

We are intent to use Marketing Cloud API using Apex Callout. Initially, I was trying to set up a Name Credential and Auth Provider for the Server-Server API Package on the MC side. But with my testing,...
Tianheng Wei's user avatar
0 votes
1 answer
464 views

Fetch Auth. Provider Callback URL in Flows

I have successfully created Auth. Provider from my ScreenFlow. I want to display the callback URL in the same flow. Can someone please tell me whether there is any way to fetch the Callback URL of a ...
Amit Kumar's user avatar
-1 votes
2 answers
1k views

How to resolve "You can’t delete this auth provider as an authentication method because your org or Experience Cloud site is currently using it"?

How can Auth. Providers be removed from Experience Cloud sites? When I attempt to delete my OpenID Auth. Provider in my Sandbox, I am receiving the following error: You can’t delete this auth ...
Renzo J.'s user avatar
2 votes
0 answers
1k views

Salesforce Marketing cloud rest API from Salesforce Cloud (apex)

I'm trying do set Auth. Providers and Named Credential for the salesforce marketing cloud in order to be able to make callout from apex without worrying to get and refresh the token. Is there any ...
Albe's user avatar
  • 21
0 votes
1 answer
1k views

Custom auth provider - how to get a new access token without a refresh token

I have to integrate Salesforce with an external app using OAuth2.0. I create Auth. Provider and Named Credential, authenticated successfully too. But I'm getting one issue with Named Credential : The ...
Jayant Jaiswal's user avatar
0 votes
0 answers
566 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 ...
user2943892's user avatar
0 votes
1 answer
1k 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 ...
Strong Like Bull's user avatar
0 votes
1 answer
734 views

OpenID Connect AWS Cognito - ERROR: No_OpenId_Response

Overview Currently using AWS Cognito User Pools as Identity Provider using OpenID Connect for logging in a Salesforce Community. I'm currently getting a similar issue with this post OpenID Connect - ...
sfdx's user avatar
  • 1,109
1 vote
0 answers
219 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 ...
zaitsman's user avatar
  • 1,930
1 vote
0 answers
183 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 ...
Arun Menon's user avatar
0 votes
1 answer
369 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, ...
jakub's user avatar
  • 173
0 votes
0 answers
168 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. "...
LakhanP's user avatar
  • 821
0 votes
1 answer
1k views

In need of assistance with writing a Registration Handler Test Class

I am in need of assistance here. Trying to implement a Registration Handler test class for production deployment, I don't seem to get the test class working, nor do I really know how to write tests. ...
Henri Harvilahti's user avatar
2 votes
0 answers
902 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 ...
mohit chhabra's user avatar
0 votes
2 answers
5k views

Named Credential shows Authentication Status Pending even after successful authentication

I am trying to setup oAuth between salesforce and Workday. I created a Auth provider and a named credential as shown in the screenshots. Named credential] Auth Provider I checked 'Start ...
Nilakshi Asthana's user avatar
2 votes
1 answer
737 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&...
user2956476's user avatar
3 votes
0 answers
749 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 ...
Ben's user avatar
  • 902
12 votes
1 answer
5k views

Custom REST controller to access Auth.AuthToken.getAccessToken returning null

Following on from a previous question: How to access OAuth Token stored in NamedCredential using Apex for use in other third party application I've created a custom REST endpoint which proxies ...
Robs's user avatar
  • 9,356