Questions tagged [accesstoken]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
31 views

scratch org connection vs oAuth access token

Sometimes I wonder, with the scratch org, even if I use it after 2 days, it still allows to perform certain operations or login(with session id). But same thing if we followed with oAuth, it doesn't ...
0
votes
1answer
18 views

I need to pass content in Body for a POST request in Web Activity in Azure Data Factor

I want to generate a access token for salesforce using Azure data factory Web Activity. But I am getting error of grant type invalid or not supported. URL:https://login.salesforce.com/services/oauth2/...
1
vote
1answer
27 views

Marketing Cloud - accessing REST API in a child business unit [duplicate]

I'm attempting to access a Child Business Unit using an Installed Package created in the Parent Business Unit. I am POSTing this payload { grant_type: 'client_credentials', client_id: {{ Parent ...
1
vote
0answers
28 views

Use token and call Marketing Cloud APIs from C# via FuelSDK API

I would like to call "{authEndPoint}/v2/token" to get the token and then call the REST api to trigger the email. We are using FuelSDK reference file for salesforce connection. Please help. ...
0
votes
1answer
36 views

SSJS HTTP.Post - Why are the contents of the Response Array in string format?

I am using the SSJS Core Library HTTP.Post function to retrieve an SFMC authentication token. I have followed ssjs boilerplate from Zuzanna here: https://gist.github.com/zuzannamj/...
1
vote
1answer
68 views

How does a Named Credential with a custom Auth. Provider check token validity?

When using a custom OAuth 2.0 provider as an extension of AuthProviderPluginClass for a Named Credential how does Salesforce check whether the current token is valid before attempting to request a new ...
5
votes
0answers
70 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 ...
0
votes
1answer
22 views

Is there a way in salesforce using soql where we can get documents owned by other users but not necessarily shared to me?

I want to collect all the documents owned by each User in Salesforce account. I have created accessToken with User A's email, where User A is a System Admin with property PermissionsModifyAllData and ...
0
votes
1answer
27 views

Validate Salesforce Access Token via custom backend app

The usecase is very simple I have a client app SPA in Angular(APTTUS eCommerce) using Salesforce Login for User SignIn. I need to call a backend API(custom c# application) from the SPA to fetch data ...
0
votes
0answers
44 views

Issues with Dataextension

While working with data extension to import data from SFMC into my application, facing some of the issues mentioned below. Is there a way to get the count of records per data extension using API in C#...
0
votes
1answer
21 views

Token request sends a redirect instead of token or error

I have trial Enterprise account and I can successfully obtain a token with the below curl. curl -v https://eu31.salesforce.com/services/oauth2/token -d "grant_type=password" -d "client_id=...
0
votes
0answers
19 views

Android Mobile SDK - Is access token refresh handled by the SDK?

When logging in to an Android app using the mobile SDK, what happens when the access and/or refresh tokens expire? Do rest client calls begin to fail at that point? Or is there some kind of automatic ...
1
vote
2answers
54 views

BLOB is not a valid UTF-8 string for the Contentversion of einstein_platform.pem file

In Einstein Playground app developed by the Salesforce Lab, I have uploaded the einstein platform service private key file named einstein_platform.pem to complete my einstein platform service setup. ...
0
votes
0answers
54 views

Connect to Workbench using accesToken instead of login/password

Is there a way to construct an URL that redirect to workbench without need of connection when I have an access Token for the org? I see that frontdoor.jsp can be used to directly connect to our SO ...
0
votes
0answers
20 views

Unable to get BEARER token from Salesforce

I am trying to get bearer key from Salesforce via postman. we have done all the connected app setting with Oauth enabling and user access. Upon using the POST method in postman URL like https://...
1
vote
1answer
645 views

Salesforce connecting to a JWT service via Named Credentials - JWT Token Exchange

Use Case I would like to prepare a demo for a client where we can from Salesforce access a third-party API. The authentication protocol for the external third-party API is SF will issue a JWT and ...
0
votes
0answers
107 views

salesforce get token using jQuery ajax method

I have just intigrated the salseforce api using curl in php and its working fine but now i have to using the same thing with ajax so no curl is used here below is my code var param = { grant_type: "...
1
vote
0answers
18 views

Salesforce login using Access Token [duplicate]

I am having Refresh Token to generate Access Tokens in Salesforce and by using api calls I can successfully retrieve data using Postman... But my problem is I am automating one of the scenarios in ...
0
votes
1answer
143 views

What unit is the Marketing Cloud access_token expires_in value using?

When I send a request to this endpoint, https://my-subdomain-info.auth.marketingcloudapis.com/v2/token, This information comes back: "access_token": (I removed the token from this post.) "...
0
votes
1answer
66 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
0answers
29 views

Authenticate to send a GET request to a lighting page [duplicate]

i would like to ask if it is possible to get a token that allows you to receive the html of a lightning or visualforce page given the url. The REST api token doesnt seem to work. For example get the /...
0
votes
0answers
59 views

error=redirect_uri_mismatch Oauth2

I having trouble to create the Refresh Token. I want to give it to a third party, So it can use it to get an access token and send us data using an exposing web service that I created. I tried to do ...
0
votes
0answers
21 views

SFDC SDK 7.3 OAuth Compliance for Biometric Login Implementation

SFDC SDK 7.2 is already in use to implement an App with Biometric Login. Upon authorization grant from Auth Server(SFDC), Access Token is to be used to login to the app and biometric login is ...
2
votes
1answer
64 views

How can I use REST API through OAuth?

For test purposes, I'm trying to use some customer's REST API on Salesforce. I don't have any API-consuming code yet (I'm just using CURL, OAuthDebugger, et similia). I've tried the following this ...
0
votes
1answer
196 views

invalid_grant: expired access/refresh token with refresh token included in JSForce

I am trying to build a server that will populate Salesforce through a front end website using Express JS with JSForce library. However, every time the access token expired, it does not refresh by ...
1
vote
1answer
322 views

Token Introspection endpoint, “invalid client credentials”

I'm working with a connected app which is using the JWT Bearer Token flow for API access. Generating access tokens and using them for API calls is working fine. When I use the Token Introspection to ...
4
votes
1answer
810 views

Specifying an expiration date/time when creating a JWT

I have a connected app that I would like to connect to using a JWT flow using a bearer token. Using anonymous Apex I have: // The consumer key for a connected app of mine String iss = '<MY ...
2
votes
3answers
280 views

What method to use in a batch apex in order to get authentication token from a remote server?

I have a batch class that uses query locator to send data into the client's server. however, it must first authenticate and get access token and send that along with the data with all consecutive post ...
0
votes
3answers
381 views

Exchange SAML Assertion for an access token

I was going throught the salesforce documentation for the SAML Assertion Flow and I did not understand the following point. Can someone please explain this: To exchange a SAML assertion for an ...
2
votes
2answers
135 views

Calling REST APIs based on a session established via a community login

I'm currently dealing with an authentication issue with two different Salesforce REST API endpoints. We are trying to consume the API from inside a Visualforce page in a Salesforce community. To do ...
3
votes
0answers
110 views

Recovering SFDX scratch org connection

I know that it is possible (whilst you have a working connection) to explicitly set a password for a scratch org user. However, I hadn't done this. Is there a way to recover access to a scratch org ...