Questions tagged [namedcredentials]

The tag has no usage guidance.

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

How to add nonce & state to OpenID based Named Credential

I'm working on an integration using a named credential with an OpenID auth. provider. I'm getting a nonce_is_missing response when running the authentication flow (during save of the named credential)....
0
votes
0answers
31 views

Payment Gateway Authentication

I am trying to setup B2B Commerce Payments to use a Cyber Source Payment Gateway that I have already implemented but am having issues with the authentication. The Cyber Source API that my Payment ...
0
votes
0answers
15 views

Long response time on refreshing access token leads to error [closed]

We created an integration with a third party API. We are using OAuth through named credentials and we have several components that communicate with the API. We are using the Apex HTTP Callout ...
0
votes
0answers
19 views

How can i create ExternalDataUserAuth for Google integration

I have created Named credentials with Identity type per User and OAuth 2.0 Protocol. Everything works fine if I go step by step in the Settings -> Authentication Settings for External Systems -> ...
-2
votes
0answers
30 views

Webservice or 3rd Party Integration Credentials in Production/Sandbox environment

Was wondering if there was a way to either use the UI or SOQL query to find the credentials being used by Webservices to access the Production/Sandbox environment. I'm not sure if there is a straight ...
-1
votes
2answers
41 views

Best Practices for Storing API Key?

I have a Lightning Web Component that makes a fetch() request straight from the component's JavaScript. For testing and development I've simply stored the API key as a variable, but I'd like to back ...
0
votes
0answers
21 views

Named credential now working when deployed to production org via package [duplicate]

When testing in the scratch org environments everything goes fine, but after creating a package and installing it in a environment that is close to production, callouts are not working, and the ...
0
votes
1answer
32 views

Calling Tooling API via Named Credential and refresh tokens

I am using Named Credential to call Tooling API. I'm seeing this warning on Named Credential and keep losing access to it. Keep getting Invalid Session Id error every few hours. "The ...
0
votes
0answers
37 views

How to set up Named Credentials for NiCE inContact Central API?

As the title says, I'm trying to figure out how to set up a Named Credential for the inContact API. I've been searching for specific documentation or examples, but no luck yet. I've currently got the ...
2
votes
1answer
49 views

oAuth: implementing Client Credentials flow for calling out to a 3rd party API

GOAL: Retrieve an access token from a 3rd party service so as to make a call with this token to 3rd party API. This is the quote from the doc. The ExternalApp API is accessible using an Oauth2 JWT ...
0
votes
1answer
183 views

Should Named Credentials be used to store an API Callout Bearer Token?

Problem I have a straightforward REST API callout in apex. request.setEndpoint('https://api.websitename.com'); request.setMethod('GET'); request.setHeader('Authorization','Bearer ...
0
votes
0answers
34 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 ...
1
vote
1answer
21 views

Basic GET request not working with name credential

I have a GET request I want to manage but Authorization Header is not working if I retrieve username and password from Named Credential. String username = '{!$Credential.UserName}'; String password = '...
1
vote
0answers
35 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 ...
0
votes
0answers
52 views

How to find out 'Authentication Status' of specific Named Credential for current user?

Is there any way we can query for and check the Authentication Status of a Named Credential for the current logged in user? I found we can query for Named Credential sObject, as well as ...
1
vote
1answer
56 views

Using JWT As authentication Protocol in Named Credentials for External Service

As a part of my project work, I need to connect to Azure Logic App via External Service in Salesforce. I know the prerequisite is to create Named Credentials first. I have chosen following in setting ...
0
votes
0answers
17 views

Org-level authentication towards an external service via Resource Owner Password Flow [duplicate]

Named credentials are a very useful tool to protect company-wide and personal credentials and as far as I know, Salesforce offers first class support to interpolate them in headers and body. I have to ...
0
votes
1answer
105 views

Error 404 when using named credentials

I am actually using named credentials to do a callout to another salesforce instance. The following code works well in my sandbox : HttpRequest req = new HttpRequest(); req.setEndpoint('callout:...
2
votes
1answer
54 views

How to use Named credentials with a 2 step password and access token authentication system?

The third party system that I am trying to connect to has following authentication mechanism: Step 1: We have been provided with a X-Api-User and X-Api-Secret to be included in header. Other header ...
5
votes
0answers
78 views

Identity Hash failure when getting keyId [closed]

I'm receiving this error below, but it starts coincidentally after applying the update Summer'21. IdentityHash failure when getting keyId: 02G1H0000005AOD of type CREDENTIAL for Context Org: ...
0
votes
0answers
36 views

Is there a way to write an external script on devops platform(Azure devops) to update named credentials to original values post sandbox refresh?

To revert named credentials back to original values ,As per documentation we can use Apex Wrapper Salesforce Metadata API for updating Named Credentials post sandbox refresh . But Metadata related ...
0
votes
1answer
394 views

System.CalloutException: The URI is invalid

I'm doing a simple HTTP callout in Apex using a Named Credential with Username/Password authentication, but I'm getting a System.CalloutException: The URI is invalid. What could be the cause here? ...
3
votes
0answers
258 views

Faced the issue with creating/editing Named Credentials [closed]

Let's say there is need to create new or edit existing Named Credentials entry. But every time I get an error like 'Something went wrong getting your credentials. Try again, or contact Salesforce ...
0
votes
1answer
46 views

Is this better to store system-defined credentials in a middleware layer or in custom settings?

For an outbound integration from Salesforce to External System, is this better to store system-defined credentials in a middleware layer or in Custom Settings or in Static Resource? Is this secure to ...
0
votes
0answers
13 views

Access Named Credential using C#

Is it possible to access the Named Credential using C#? We have an integration with the other system where the external system will be consuming our custom API and someone from our team suggest to use ...
1
vote
0answers
109 views

SFDX - CI - Named Credentials and environments

We have a repository with metadata in source format, and we use sfdx and ci job to deploy, some metadata (Named Credentials for this instance) contains some values that are env/org dependant. For the ...
2
votes
0answers
69 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('...
0
votes
0answers
40 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
1answer
70 views

Automatically Login via SSO Connected App

I'm trying to teach myself IAM areas I'm weak on. I have 2 dev ed orgs.Org A - is the IDP Org B - is the SP I have created the SSO settings in Org B to use Org A as the IDP.In Org A, I have created ...
4
votes
0answers
89 views

JWT Token Exchange setup in Named Credentials for outbound callout

Trying to integrate with okta api from Salesforce that supports JWT Token exchange. I was able to successfully get the access token with the below code but I am blocked on how to use named credentials ...
0
votes
0answers
53 views

External Data Source Named Principal - Will an OAuth 2.0 Auth Provider eventually require another login?

I am setting up an External Data Source to OData, using a Named Credential that is set up as "Microsoft Access Control Service" to call Azure Active Directory. The External Data Source is ...
0
votes
0answers
48 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
22 views

Use of Named-Credentials for storing Access Token of multiple users [duplicate]

We have an AppExchange App which needs to fetch data from an external application via API Calls. OAuth is setup in the external application. API calls need to happen in the context of individual user ...
0
votes
0answers
37 views

Using Named Credentials Instead Custom Settings [duplicate]

For integration with Box I have process where I make callout to Box and get token in return. Currently the settings are stored in metadata and I'm checking if I can use instead Named Credentials. But ...
1
vote
2answers
442 views

How to create Named Principal Named Credentials, for Salesforce itself, as an Identity User

The background to this is that we have Apex code using the Pardot API. Soon, the authentication for that will need to use a Salesforce session id. So, we created a Connected App, Auth. Provider, and ...
0
votes
0answers
69 views

Create a Named Credential programmatically

Salesforce newbie here. I've successfully created a Named Credential manually in my local scratch org. Now, I'm having a hard time to create the same Named Credential programmatically. Does anyone can ...
0
votes
1answer
159 views

Marketing Cloud Transactional Message API: scope_mismatch error when using refresh and offline_access scopes

I am integrating with the Marketing Cloud Transactional Message API: Transactional Messaging API I am setting up a Named Credential in Salesforce to connect to the Marketing Cloud API, and I have ...
0
votes
1answer
98 views

Named Credential auto-generate aws sig4 not working for s3 'versions'

Main issue: I get a signature mismatch error (403 forbidden) when trying to hit the REST api for s3 using the versions action (ListObjectVersions). It seems to me that this may be an error with how ...
0
votes
0answers
47 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
2answers
762 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 ...
0
votes
0answers
58 views

Include API key as a URL query parameter via a Named Credential [duplicate]

HttpRequest req = new HttpRequest(); req.setEndpoint('callout:Google/maps/api/place/findplacefromtext/json?'); req.setHeader('key', '{!$Credential.Password}'); req.setMethod('GET'); ...
0
votes
1answer
429 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 ...
1
vote
1answer
729 views

Using Named Credentials to send API key in Authorization header

I'm trying to make use of Salesforce Named Credentials to securely store the API Key and call endpoint accordingly. I tried to pass a custom API Key to an endpoint as below. HttpRequest req = new ...
1
vote
0answers
293 views

How to access a Named Credential as a Guest User?

I want a Site Guest User to be able to hit a page that uses Apex to do an API call. However, if I create a Named Credential of type 'Named Principal', then that credential is simply missing from the ...
0
votes
1answer
151 views

How can I write a post install script in apex that creates named credentials?

I would like to understand: If we can write a post install script to create a named credential that is required to be able to view a certain report in the managed package(the report feature that I am ...
0
votes
1answer
328 views

Build pre-signed AWS S3 URLs with Named Credentials [duplicate]

I'm building an integration with S3 and I want to create a pre-signed URL so I can access S3 from SF with a single user. I use the method below to generate a URL: public static string getSignedURL(...
10
votes
1answer
1k 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 ...
1
vote
1answer
223 views

How to access OAuth Token stored in NamedCredential using Apex for use in other third party application

I'd like to use the native Salesforce Auth. Provider and Named Credential capabilities to allow a Salesforce user to follow the OAuth flow to authenticate against a 3rd party service, and then later ...
1
vote
0answers
57 views

Per User Authentication for External Service

As part of my use case, I need to integrate different external sources from Salesforce . All the authentication has to be per-user and this whole thing needs to be part of managed package. Now the few ...
0
votes
0answers
44 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 ...