Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.
## Steps

Let’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"```