Download the PHP package groton-school/oauth2-blackbaudsky without Composer
On this page you can find all versions of the php package groton-school/oauth2-blackbaudsky. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download groton-school/oauth2-blackbaudsky
More information about groton-school/oauth2-blackbaudsky
Files in groton-school/oauth2-blackbaudsky
Package oauth2-blackbaudsky
Short Description This package provides Blackbaud SKY OAuth 2.0 support for the PHP League's OAuth 2.0 Client
License MIT
Informations about the package oauth2-blackbaudsky
Blackbaud SKY API OAuth 2.0 Client
This package provides Blackbaud SKY OAuth 2.0 support for the PHP League's OAuth 2.0 Client
See this example for usage.
This package is compliant with PSR-1, PSR-2, PSR-4, and PSR-7. If you notice compliance oversights, please send a patch via pull request. If you're interesting in contributing to this library, please take a look at our contributing guidelines.
Requirements
The following versions of PHP are supported.
- PHP 5.6
- PHP 7.0
- PHP 7.1
- PHP 7.2
- PHP 7.3
- PHP 7.4
- PHP 8.0
Usage
Refer to this project for example usage.
Authorization Code Grant
The following example uses the out-of-the-box GenericProvider
provided by this library. If you're looking for a specific provider (i.e. Facebook, Google, GitHub, etc.), take a look at our list of provider client libraries. HINT: You're probably looking for a specific provider.
The authorization code grant type is the most common grant type used when authenticating users with a third-party service. This grant type utilizes a client (this library), a server (the service provider), and a resource owner (the user with credentials to a protected—or owned—resource) to request access to resources owned by the user. This is often referred to as 3-legged OAuth, since there are three parties involved.
The following example illustrates this using Brent Shaffer's demo OAuth 2.0 application named Lock'd In. When running this code, you will be redirected to Lock'd In, where you'll be prompted to authorize the client to make requests to a resource on your behalf.
Now, you don't really have an account on Lock'd In, but for the sake of this example, imagine that you are already logged in on Lock'd In when you are redirected there.
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.
This example uses Brent Shaffer's demo OAuth 2.0 application named Lock'd In. See authorization code example above, for more details.
Using a proxy
It is possible to use a proxy to debug HTTP calls made to a provider. All you need to do is set the proxy
and verify
options when creating your Provider instance. Make sure you enable SSL proxying in your proxy.
Install
Via Composer
License
The MIT License (MIT). Please see License File for more information.
All versions of oauth2-blackbaudsky with dependencies
league/oauth2-client Version ^2.6
guzzlehttp/guzzle Version ^7.4
battis/data-utilities Version ^1.2