API calls to Salesforce from standalone application
We plan to have an application on an internal server that fetches data from one source, manipulates it, sends it to Salesforce using Rest APIs.
I have some questions:
Do I need to have a connected app?
If so, what is the callback url? I have taken a few trailheads and understand that the callback URL is used for human interaction but this is all automated and I'm not sure that there is a URL as such.
api connected-apps
add a comment |
We plan to have an application on an internal server that fetches data from one source, manipulates it, sends it to Salesforce using Rest APIs.
I have some questions:
Do I need to have a connected app?
If so, what is the callback url? I have taken a few trailheads and understand that the callback URL is used for human interaction but this is all automated and I'm not sure that there is a URL as such.
api connected-apps
If you are planning to use REST APIs then Yes, you will need a connected app.
– Jayant Das
yesterday
Yes it is REST. (updating post)
– SeanGorman
yesterday
The callback URL is used to provide you with an OAuth token. It will be specific to your local application. OAuth does not need to involve user interaction. The JWT flow, for example, does not.
– David Reed
yesterday
add a comment |
We plan to have an application on an internal server that fetches data from one source, manipulates it, sends it to Salesforce using Rest APIs.
I have some questions:
Do I need to have a connected app?
If so, what is the callback url? I have taken a few trailheads and understand that the callback URL is used for human interaction but this is all automated and I'm not sure that there is a URL as such.
api connected-apps
We plan to have an application on an internal server that fetches data from one source, manipulates it, sends it to Salesforce using Rest APIs.
I have some questions:
Do I need to have a connected app?
If so, what is the callback url? I have taken a few trailheads and understand that the callback URL is used for human interaction but this is all automated and I'm not sure that there is a URL as such.
api connected-apps
api connected-apps
edited yesterday
asked yesterday
SeanGorman
590318
590318
If you are planning to use REST APIs then Yes, you will need a connected app.
– Jayant Das
yesterday
Yes it is REST. (updating post)
– SeanGorman
yesterday
The callback URL is used to provide you with an OAuth token. It will be specific to your local application. OAuth does not need to involve user interaction. The JWT flow, for example, does not.
– David Reed
yesterday
add a comment |
If you are planning to use REST APIs then Yes, you will need a connected app.
– Jayant Das
yesterday
Yes it is REST. (updating post)
– SeanGorman
yesterday
The callback URL is used to provide you with an OAuth token. It will be specific to your local application. OAuth does not need to involve user interaction. The JWT flow, for example, does not.
– David Reed
yesterday
If you are planning to use REST APIs then Yes, you will need a connected app.
– Jayant Das
yesterday
If you are planning to use REST APIs then Yes, you will need a connected app.
– Jayant Das
yesterday
Yes it is REST. (updating post)
– SeanGorman
yesterday
Yes it is REST. (updating post)
– SeanGorman
yesterday
The callback URL is used to provide you with an OAuth token. It will be specific to your local application. OAuth does not need to involve user interaction. The JWT flow, for example, does not.
– David Reed
yesterday
The callback URL is used to provide you with an OAuth token. It will be specific to your local application. OAuth does not need to involve user interaction. The JWT flow, for example, does not.
– David Reed
yesterday
add a comment |
1 Answer
1
active
oldest
votes
Do I need to have a connected app?
Yes. If you are using REST API to integrate with Salesforce, then you will need a Connected App.
If so, what is the callback url? I have taken a few trailheads and understand that the callback URL is used for human interaction but this is all automated and I'm not sure that there is a URL as such.
Callback URL is the URL where you want the access token code to be sent to after successful authentication. It can be any URL or even a localhost URL on a specific port. There is not necessarily a human interaction required here. You just need a URL where you can receive the token after the authentication. So if you are authenticating using an API, you can always specify a callback URL pointing back to your application which can programmatically accept the incoming token.
Notice this from the Digging Deeper into OAuth 2.0 in Salesforce documentation (emphasis mine):
Apps that use OAuth can also directly authenticate and access Salesforce resources without a user’s presence.
This is how it is defined here on the documentation:
Enter a Callback URL. Depending on which OAuth flow you use, this is typically the URL that a user’s browser is redirected to after successful authentication. As this URL is used for some OAuth flows to pass an access token, the URL must use secure HTTP (HTTPS) or a custom URI scheme. Separate multiple callback URLs with line breaks.
The callback URL field has a limit of 2000 characters, cumulatively. If you enter several URLs and they exceed this limit, configure another connected app to manage more callback URLs.
You should go through the documentation to get more details on the setup for Connected Apps. Good places to start are:
- Connected Apps
- Defining Connected Apps
- Digging Deeper into OAuth 2.0 in Salesforce
Thanks for this. I have read 'most' of these resources but the emphasis seems geared towards human interacted processes.
– SeanGorman
yesterday
1
I agree. I have struggled on this topic for a long time until I knew what it was.
– Jayant Das
yesterday
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "459"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f245498%2fapi-calls-to-salesforce-from-standalone-application%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Do I need to have a connected app?
Yes. If you are using REST API to integrate with Salesforce, then you will need a Connected App.
If so, what is the callback url? I have taken a few trailheads and understand that the callback URL is used for human interaction but this is all automated and I'm not sure that there is a URL as such.
Callback URL is the URL where you want the access token code to be sent to after successful authentication. It can be any URL or even a localhost URL on a specific port. There is not necessarily a human interaction required here. You just need a URL where you can receive the token after the authentication. So if you are authenticating using an API, you can always specify a callback URL pointing back to your application which can programmatically accept the incoming token.
Notice this from the Digging Deeper into OAuth 2.0 in Salesforce documentation (emphasis mine):
Apps that use OAuth can also directly authenticate and access Salesforce resources without a user’s presence.
This is how it is defined here on the documentation:
Enter a Callback URL. Depending on which OAuth flow you use, this is typically the URL that a user’s browser is redirected to after successful authentication. As this URL is used for some OAuth flows to pass an access token, the URL must use secure HTTP (HTTPS) or a custom URI scheme. Separate multiple callback URLs with line breaks.
The callback URL field has a limit of 2000 characters, cumulatively. If you enter several URLs and they exceed this limit, configure another connected app to manage more callback URLs.
You should go through the documentation to get more details on the setup for Connected Apps. Good places to start are:
- Connected Apps
- Defining Connected Apps
- Digging Deeper into OAuth 2.0 in Salesforce
Thanks for this. I have read 'most' of these resources but the emphasis seems geared towards human interacted processes.
– SeanGorman
yesterday
1
I agree. I have struggled on this topic for a long time until I knew what it was.
– Jayant Das
yesterday
add a comment |
Do I need to have a connected app?
Yes. If you are using REST API to integrate with Salesforce, then you will need a Connected App.
If so, what is the callback url? I have taken a few trailheads and understand that the callback URL is used for human interaction but this is all automated and I'm not sure that there is a URL as such.
Callback URL is the URL where you want the access token code to be sent to after successful authentication. It can be any URL or even a localhost URL on a specific port. There is not necessarily a human interaction required here. You just need a URL where you can receive the token after the authentication. So if you are authenticating using an API, you can always specify a callback URL pointing back to your application which can programmatically accept the incoming token.
Notice this from the Digging Deeper into OAuth 2.0 in Salesforce documentation (emphasis mine):
Apps that use OAuth can also directly authenticate and access Salesforce resources without a user’s presence.
This is how it is defined here on the documentation:
Enter a Callback URL. Depending on which OAuth flow you use, this is typically the URL that a user’s browser is redirected to after successful authentication. As this URL is used for some OAuth flows to pass an access token, the URL must use secure HTTP (HTTPS) or a custom URI scheme. Separate multiple callback URLs with line breaks.
The callback URL field has a limit of 2000 characters, cumulatively. If you enter several URLs and they exceed this limit, configure another connected app to manage more callback URLs.
You should go through the documentation to get more details on the setup for Connected Apps. Good places to start are:
- Connected Apps
- Defining Connected Apps
- Digging Deeper into OAuth 2.0 in Salesforce
Thanks for this. I have read 'most' of these resources but the emphasis seems geared towards human interacted processes.
– SeanGorman
yesterday
1
I agree. I have struggled on this topic for a long time until I knew what it was.
– Jayant Das
yesterday
add a comment |
Do I need to have a connected app?
Yes. If you are using REST API to integrate with Salesforce, then you will need a Connected App.
If so, what is the callback url? I have taken a few trailheads and understand that the callback URL is used for human interaction but this is all automated and I'm not sure that there is a URL as such.
Callback URL is the URL where you want the access token code to be sent to after successful authentication. It can be any URL or even a localhost URL on a specific port. There is not necessarily a human interaction required here. You just need a URL where you can receive the token after the authentication. So if you are authenticating using an API, you can always specify a callback URL pointing back to your application which can programmatically accept the incoming token.
Notice this from the Digging Deeper into OAuth 2.0 in Salesforce documentation (emphasis mine):
Apps that use OAuth can also directly authenticate and access Salesforce resources without a user’s presence.
This is how it is defined here on the documentation:
Enter a Callback URL. Depending on which OAuth flow you use, this is typically the URL that a user’s browser is redirected to after successful authentication. As this URL is used for some OAuth flows to pass an access token, the URL must use secure HTTP (HTTPS) or a custom URI scheme. Separate multiple callback URLs with line breaks.
The callback URL field has a limit of 2000 characters, cumulatively. If you enter several URLs and they exceed this limit, configure another connected app to manage more callback URLs.
You should go through the documentation to get more details on the setup for Connected Apps. Good places to start are:
- Connected Apps
- Defining Connected Apps
- Digging Deeper into OAuth 2.0 in Salesforce
Do I need to have a connected app?
Yes. If you are using REST API to integrate with Salesforce, then you will need a Connected App.
If so, what is the callback url? I have taken a few trailheads and understand that the callback URL is used for human interaction but this is all automated and I'm not sure that there is a URL as such.
Callback URL is the URL where you want the access token code to be sent to after successful authentication. It can be any URL or even a localhost URL on a specific port. There is not necessarily a human interaction required here. You just need a URL where you can receive the token after the authentication. So if you are authenticating using an API, you can always specify a callback URL pointing back to your application which can programmatically accept the incoming token.
Notice this from the Digging Deeper into OAuth 2.0 in Salesforce documentation (emphasis mine):
Apps that use OAuth can also directly authenticate and access Salesforce resources without a user’s presence.
This is how it is defined here on the documentation:
Enter a Callback URL. Depending on which OAuth flow you use, this is typically the URL that a user’s browser is redirected to after successful authentication. As this URL is used for some OAuth flows to pass an access token, the URL must use secure HTTP (HTTPS) or a custom URI scheme. Separate multiple callback URLs with line breaks.
The callback URL field has a limit of 2000 characters, cumulatively. If you enter several URLs and they exceed this limit, configure another connected app to manage more callback URLs.
You should go through the documentation to get more details on the setup for Connected Apps. Good places to start are:
- Connected Apps
- Defining Connected Apps
- Digging Deeper into OAuth 2.0 in Salesforce
edited yesterday
answered yesterday
Jayant Das
12.4k2723
12.4k2723
Thanks for this. I have read 'most' of these resources but the emphasis seems geared towards human interacted processes.
– SeanGorman
yesterday
1
I agree. I have struggled on this topic for a long time until I knew what it was.
– Jayant Das
yesterday
add a comment |
Thanks for this. I have read 'most' of these resources but the emphasis seems geared towards human interacted processes.
– SeanGorman
yesterday
1
I agree. I have struggled on this topic for a long time until I knew what it was.
– Jayant Das
yesterday
Thanks for this. I have read 'most' of these resources but the emphasis seems geared towards human interacted processes.
– SeanGorman
yesterday
Thanks for this. I have read 'most' of these resources but the emphasis seems geared towards human interacted processes.
– SeanGorman
yesterday
1
1
I agree. I have struggled on this topic for a long time until I knew what it was.
– Jayant Das
yesterday
I agree. I have struggled on this topic for a long time until I knew what it was.
– Jayant Das
yesterday
add a comment |
Thanks for contributing an answer to Salesforce Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f245498%2fapi-calls-to-salesforce-from-standalone-application%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If you are planning to use REST APIs then Yes, you will need a connected app.
– Jayant Das
yesterday
Yes it is REST. (updating post)
– SeanGorman
yesterday
The callback URL is used to provide you with an OAuth token. It will be specific to your local application. OAuth does not need to involve user interaction. The JWT flow, for example, does not.
– David Reed
yesterday