Questions tagged [namedcredentials]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
22 views

Using Named Credentials with client_id and client_secret in url query params

This is more of an instructional post because I spent so long trying to find the answer on here I felt like there should be a more direct post toward people trying to do something similar to what I ...
0
votes
1answer
20 views

Named credentials with POST, url-encoded body and custom grant type for Token generation

Can we use Named credentials against 3rd party with following parameters requirements, which helps us to have access token: Endpoint Method - POST URL encoded body which has following Grant type = ...
0
votes
2answers
35 views

Named Credentials OAuth Sharepoint Microsoft Access Control Service Cust Auth. Provider

I have SalesForce and SharePoint connected on OAuth. I have created Sharepoint app-only, added it to Custom Auth provider and created namedcredentials which is showing as authenticated. Every blog ...
1
vote
1answer
46 views

Can I encrypt namedCredential password (!$Credential.Password) with AES encryption key?

I have requirement to encrypt the password that is stored in Named Credentials when making call out to external system. So I'm planning to use AES256 encryption algorithm from crypto class. But is ...
0
votes
1answer
61 views

Unauthorized Access using Named Credentials [duplicate]

I am using Named Credentials oAuth2.0 protocol to connect with Xero. I have setup Auth. Provider and Named Credential. Named Credential is also authenticated. I have followed the steps mentioned here ...
2
votes
1answer
59 views

Named Credential Authentication [duplicate]

I am trying to connect with Xero using Named Credentials. I am using oAuth2.0 authentication protocol. I have created a Auth. Provider and Named credentials as shown in the image below The Named ...
1
vote
1answer
96 views

Salesforce to Xero integration using Named Credentials by OAuth 2.0

I am trying to do the integration between Salesforce and Xero by using Named Credentials (Authentication Protocol is OAuth 2.0). I created an Auth provider - Then created Named credentials of OAuth 2....
0
votes
0answers
26 views

How do I put an external data source into an unmanaged package with named credentials?

I am packaging an external data source (namely Salesforce Connect: OData 4.0). I'm specifically having trouble implementing named credentials. For authentication, I'm using Named Principal with ...
0
votes
0answers
21 views

REST API Callout with Named Credentials not refreshing token?

I am making a call from my org to the REST API of another org to pull in some data from the chatter feed API. I set up a connected app on the org of the API I am using. It is using the OAuth scopes (...
2
votes
0answers
26 views

Named Credentials: JWT Token Validation

Does Salesforce offer an endpoint for JWT Token introspection OR a public key endpoint? Setup My client wants to secure all calls from Salesforce to their gateway with a JWT Token. Named Credentials ...
0
votes
1answer
25 views

Using Named Credentials with Password Authentication Protocol

I'm trying to make a callout using named Credentials and my Authentication Protocol is Password Authentication. But I'm getting Unauthorized status. I'm not sure if I'm missing any parameter or ...
0
votes
0answers
16 views

Status=Unauthorized, Code=401 using Named Credential from Apex

I have a REST Integration between two Salesforce Orgs and have set up a Connected Application in Org A and an auth provider and named credential in Org B. The named credential shows as authenticated -...
0
votes
0answers
45 views

OAuth Named Credential Callout Issue

Defined an Named credential to get the access token and status of the named credential is 'Authenticated' but when I do call the Apex call out it doesn't return success response. I am not sure what I ...
5
votes
1answer
150 views

“Decryption Exception” errors on Named Credential

I have callouts that use a Named Credential and a Custom Oauth2 Auth Provider fail with this error response: Invalid parameter value "[hidden]" for parameter "Decryption Exception" A similar ...
2
votes
1answer
115 views

Named credential AWS Signature V4 - incorrect signature

I am trying to make a callout to AWS S3 using named credentials and Apex The named credential is set up as follows Label: AWS S3 Name: AWS_S3 URL: https://bucket-name.s3.amazonaws.com - Certificate: ...
1
vote
1answer
86 views

JWT works in developer console but does not working in APEX code

In Salesforce when I use a JWT Named Credential from developer console it is successful but running from the same APEX code from a Visual Force Page or Lightning Component it is not successful. I am ...
0
votes
0answers
116 views

AWS Signature Version 4 Named Credential doesn't seems like working

I have requirement to fetch a file from s3 server to Salesforce. As a part of Summer'19 release, Salesforce has provided AWS Signature Version 4 protocol in Named credential.From below link I see that ...
0
votes
0answers
29 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
26 views

IP restrictions when authenticating named credentials

I'm trying to create a named credential for accessing in-house services from salesforce. For that I've setup an authentication provider: type: Open ID Connect Authorize Endpoint URL: https://test....
1
vote
0answers
39 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 ...
12
votes
2answers
230 views

Initiate an oAuth flow via an Auth Provider

I use the Metadata API and the Apex wrapper to create an AuthProvider and NamedCredential after the installation of my managed package app. MetadataService.NamedCredential cred = new MetadataService....
3
votes
1answer
235 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 ...
2
votes
2answers
337 views

sfdx force:source:pull -> Entity of type 'AuthProvider' named '' cannot be found

I am trying to do a sfdx force:source:pull from a scratch org where I defined and authenticated a Named Credential and Auth Provider (OAuth2 Named Principal). I get: • RetrieveFailed - Entity of ...
2
votes
2answers
38 views

How can i mass update NamedCredentials?

I need to update endpoint for 50 records on NamedCredential object. I tried different scenarios but nothing seems to be working.. 1 - Endpoint is not allowed to filter in SOQL and NamedCredential is ...
5
votes
1answer
561 views

AWS Signature Version 4 Using Named Credentials

Anyone tried Summer '19 Named Credentials using AWS Signature Version 4 successfully? Trying again to use External Services and first step is the Credentials. I created an IAM user with the ...
1
vote
0answers
37 views

salesforce managed authentication provider scope

If I create a salesforce managed authentication provider following the steps here: https://help.salesforce.com/articleView?id=sso_provider_global_auth.htm&type=5. I don't want to create a ...
1
vote
0answers
45 views

Password lost from named credential in unlocked package

I have created an unlocked package. The unlocked package contains named credential. The unlock package process creation when failed when there was no in the file. So, I had to add actualPassword in ...
3
votes
1answer
106 views

Canvas app inside managed package that connects to configurable endpoint

Our customers have versions of our Java web app installed in their data center. I want to build a managed packaged Salesforce App that is able to connect to those web app instances using Salesforce ...
3
votes
2answers
191 views

How can I trigger the Oauth authentication flow for my apex-created Named Credential? [duplicate]

I am trying to callout to the Salesforce Metadata service (ApexMDAPI) using Named Credentials. Using Named Credentials with the Apex Wrapper My goal is to use this credential with configuration in a ...
10
votes
1answer
135 views

Did Summer 19 break NamedCredentials using Auth. Provider in Sandboxes

This weekend some of our sandboxes was upgraded to summer 19. before that we were able to query consumer secret from the Auth. Provider used in the named credentials. After the summer release we are ...
0
votes
1answer
122 views

Apex call-out 404 not found error on Developer console while it works perfectly when the request is sent through postman

This is the request, I've added the URL to named credentials. What am I doing wrong!! Http http = new Http(); HttpRequest request = new HttpRequest(); request.setEndpoint('Callout:AppointmentTest/...
3
votes
1answer
727 views

Connect to Salesforce production REST API from Sandbox using Named Credentials

Background I would like to connect to the REST API of a production org, from a sandbox org. Configuration so far: Production Org has a Connected App Sandbox Org has a Auth. Provider Sandbox Org has ...
2
votes
1answer
256 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
0answers
39 views

Named Credential, Outbound Message in Managed Package

I am creating managed package, which contains Outbound Message and Named Credential (callout url's). what would be the best approach to handle them in managed package because if I add them to package ...
4
votes
0answers
75 views

Prevent modifications to Named Credential in Managed Package?

The background of my question is described in Managed package upgrade fails as Named Credential seems to have modified. The upgrade of a managed packaged failed with a modification error on a ...
3
votes
1answer
72 views

Managed package upgrade fails as Named Credential seems to have modified

But the Named Credential hasn't changed between current and new version. So this Known Issue doesn't apply: https://success.salesforce.com/issues_view?id=a1p3A000000mCFtQAM&title=cannot-modify-...
0
votes
1answer
405 views

Named credential for gotoWebinar app (oauth v2.0)

Is it possible? I'm trying to do it but had some errors My steps where: 1) Create the app in the Developer Center. On the Application URL I left the suggestion https://api.getgo.com (I guess this ...
2
votes
1answer
69 views

Third party wants to call Salesforce.Can we use named credentials in this case

i have a use case where Some code has been written in salesforce and Third party wants to call it.They are calling using rest like this. https://xxx.com/services/oauth2/token?grant_type=password&...
0
votes
0answers
59 views

Having comma in HTTP endpoint using Named Credential causes exception

We have special requirement from customer that url parameter is specified like this: "www.example.com,timeoutSec=120", where www.example.com is defined using named credential. We receive following ...
5
votes
2answers
840 views

Refresh Token using Salesforce Named Credentials and Auth Provider

I am performing a rest callout to a 3rd party service. Authentication is set up with a named credential (Named Principal, OAuth2) using an Open ID Connect-authentication provider which uses WSO2 ...
2
votes
0answers
100 views

External Services flow parameter null

I am trying to use an External Service to make an API call with a flow, and have configured a Named Credential, an External Service with swagger schema, and a flow with the resulting apex action, as ...
0
votes
2answers
369 views

How is named credentials & auth provider with connected app used? Can i have scenario where it is needed?

I have seen people use auth. providers that has client secret and id of connected app and authenticated using named credentials. The named credentials stores the oauth refresh token but I am not ...
0
votes
1answer
45 views

Storing Credentials - Regharding appExchange product

We are developing AppExchange product where we need to communicate with different third party systems.For Instance , we are getting services from 5 different third party system,a user can have 5 ...
2
votes
1answer
519 views

Doesn't a Named Credential handle OAuth2?

Reading this doc from Salesforce, it was my understanding that a named credential handled authenticating when using it to make a callout. I'm going to go out on a limb and say that it probably does, I'...
2
votes
0answers
93 views

How can I update a User Record from a custom AuthProviderPlugin's getUserInfo() method?

I am trying to integrate Salesforce with Jira using a Named Credential and oAuth 2.0. The Named Credential requires a Custom Auth. Provider which requires an AuthProviderPluginClass. The ...
0
votes
1answer
74 views

Can we use Named Credentials with this Weird API?

In order to do something, we need to make call outs to an external server where the URL takes the format: http://www.example.com/path/{external_id}/doSomething?api-key={api-key} The external-id ...
5
votes
0answers
483 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 /> * @...
3
votes
1answer
372 views

What fields deploy with NamedCredential?

I have a callout where we use a Named Credential and it looks something like the following: public class MyClass { public MyClass() { inputHttpHeaders_x = new Map<String, String>...
0
votes
1answer
61 views

Named Credentials and/or You have uncommitted work pending. Please commit or rollback before calling out

Process_data is called via trigger. This code is working with the exception of when I do the actuall http callout I get the Please commit or rollback before callout out. Based on similar post the ...
9
votes
1answer
1k views

Named Credentials and support for the OAuth2 Client Credentials Grant Type and alternatives

I have a requirement to authenticate to an external API for callouts using the OAuth2 Client Credentials Grant (This was helpful in referencing the different grant types for me). I would like to use ...