Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kostastepetes/salesforce-oauth-jwt-access-token-postman
π OAuth 2.0 JWT Bearer Flow for Server-to-Server Integration. Sometimes you want to authorize servers to access data without interactively logging in each time the servers exchange information. This flow uses a certificate to sign the JWT request. However, this flow does require prior approval of the client app.
https://github.com/kostastepetes/salesforce-oauth-jwt-access-token-postman
access-token jwt-authentication oauth2 postman salesforce
Last synced: 6 days ago
JSON representation
π OAuth 2.0 JWT Bearer Flow for Server-to-Server Integration. Sometimes you want to authorize servers to access data without interactively logging in each time the servers exchange information. This flow uses a certificate to sign the JWT request. However, this flow does require prior approval of the client app.
- Host: GitHub
- URL: https://github.com/kostastepetes/salesforce-oauth-jwt-access-token-postman
- Owner: kostastepetes
- Created: 2024-01-22T12:35:32.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-22T12:41:34.000Z (10 months ago)
- Last Synced: 2024-01-22T16:13:10.063Z (10 months ago)
- Topics: access-token, jwt-authentication, oauth2, postman, salesforce
- Language: JavaScript
- Homepage: https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_jwt_flow.htm&type=5
- Size: 389 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OAuth 2.0 JWT Bearer Flow for Server-to-Server Integration
OAuth 2.0 JWT Bearer Flow for Server-to-Server Integration. Sometimes you want to authorize servers to access data without interactively logging in each time the servers exchange information. This flow uses a certificate to sign the JWT request. However, this flow does require prior approval of the client app.
## StepsLetβs go over each step of this authorization flow.
- Create a JWT
- Request Access Token
- Salesforce Grants Access Token
- Access Protected Data## What to do next?
After retrieving the Access Token through Postman you can use it with any of the REST APIs of Salesforce.
For example: Create a Record
```curl https://MyDomainName.my.salesforce.com/services/data/v60.0/sobjects/Account/ -H "Authorization: Bearer token" -H "Content-Type: application/json" -d "@newaccount.json"```