Download the PHP package dmt-software/salesforce-oauth-middleware without Composer
On this page you can find all versions of the php package dmt-software/salesforce-oauth-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dmt-software/salesforce-oauth-middleware
More information about dmt-software/salesforce-oauth-middleware
Files in dmt-software/salesforce-oauth-middleware
Package salesforce-oauth-middleware
Short Description Salesforce OAuth 2.0 middleware for REST API calls
License MIT
Informations about the package salesforce-oauth-middleware
Salesforce-OAuth-Middleware
This authorization middleware uses the OAuth grant_type
password
to authenticate and authorize a request to the Salesforce REST API.
Install
composer require dmt-software/salesforce-oauth-middleware
Usage
Cache
To re-use an access token this middleware can be configured with a PSR-16 cache implementation.
NOTE: Currently Salesforce does not provide an expiration time or refresh token when grant_type
password is used.
Cached access tokens will be recycled every hour (when handled by this middleware).
This might change later to better suit implementations (I'm open for suggestions).
All versions of salesforce-oauth-middleware with dependencies
stevenmaguire/oauth2-salesforce Version ^2.0
psr/simple-cache Version ^1.0