Download the PHP package oliverschloebe/oauth2-steadyhq without Composer
On this page you can find all versions of the php package oliverschloebe/oauth2-steadyhq. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oliverschloebe/oauth2-steadyhq
More information about oliverschloebe/oauth2-steadyhq
Files in oliverschloebe/oauth2-steadyhq
Package oauth2-steadyhq
Short Description Steady OAuth 2.0 package for the PHP League's OAuth 2.0 Client
License MIT
Informations about the package oauth2-steadyhq
Steady Provider for OAuth 2.0 Client
This package provides Steady OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Installation
Steady API
https://developers.steadyhq.com/#oauth-2-0
Usage
Register your apps on steadyhq.com to get clientId
and clientSecret
.
OAuth2 Authentication Flow
Refreshing a Token
Once your application is authorized, you can refresh an expired token using a refresh token rather than going through the entire process of obtaining a brand new token. To do so, simply reuse this refresh token from your data store to request a refresh.
Sending authenticated API requests
The Steady OAuth 2.0 provider provides a way to get an authenticated API request for the service, using the access token; it returns an object conforming to Psr\Http\Message\RequestInterface
.
Sending non-authenticated API requests
Send a non-authenticated API request to public endpoints of the Steady API; it returns an object conforming to Psr\Http\Message\RequestInterface
.
Using a proxy
It is possible to use a proxy to debug HTTP calls made to Steady. All you need to do is set the proxy and verify options when creating your Steady OAuth2 instance. Make sure to enable SSL proxying in your proxy.
Requirements
PHP 8.0 or higher.
Testing
License
The MIT License (MIT). Please see License File for more information.