PHPackages                             dmt-software/salesforce-oauth-middleware - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. dmt-software/salesforce-oauth-middleware

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

dmt-software/salesforce-oauth-middleware
========================================

Salesforce OAuth 2.0 middleware for REST API calls

v1.0.0(7y ago)03MITPHP

Since May 25Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dmt-software/salesforce-oauth-middleware)[ Packagist](https://packagist.org/packages/dmt-software/salesforce-oauth-middleware)[ RSS](/packages/dmt-software-salesforce-oauth-middleware/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Salesforce-OAuth-Middleware
===========================

[](#salesforce-oauth-middleware)

[![Build Status](https://camo.githubusercontent.com/203c3c606d705723fc452edaa0f9b9a2647288dbf01e4bfea4a5550040bf0f14/68747470733a2f2f7472617669732d63692e6f72672f646d742d736f6674776172652f73616c6573666f7263652d6f617574682d6d6964646c65776172652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dmt-software/salesforce-oauth-middleware)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/80ca011c60b8b0e2511764ccc668d379e76db6167879f30a58aec9abbb4fc057/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646d742d736f6674776172652f73616c6573666f7263652d6f617574682d6d6964646c65776172652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dmt-software/salesforce-oauth-middleware/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/46d60d8bb74197dd7156cb10a335d9445274f9ecb595b9c1deba915433767c47/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646d742d736f6674776172652f73616c6573666f7263652d6f617574682d6d6964646c65776172652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dmt-software/salesforce-oauth-middleware/?branch=master)

This authorization middleware uses the OAuth `grant_type` [password](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm)to authenticate and authorize a request to the Salesforce REST API.

Install
-------

[](#install)

`composer require dmt-software/salesforce-oauth-middleware`

Usage
-----

[](#usage)

```
