Download the PHP package ahoicloud/oauth2-client without Composer
On this page you can find all versions of the php package ahoicloud/oauth2-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ahoicloud/oauth2-client
More information about ahoicloud/oauth2-client
Files in ahoicloud/oauth2-client
Package oauth2-client
Short Description Ahoi OAuth 2.0 Client Provider for The PHP League OAuth2-Client
License MIT
Informations about the package oauth2-client
Ahoi Provider for OAuth 2.0 Client
This package provides Ahoi OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
Installation
To install, use composer:
Usage
Usage is the same as The League's OAuth client, using \FVJM\OAuth2\Client\Provider\Ahoi
as the provider.
Authorization Code Flow
Managing Scopes
When creating your Ahoi authorization URL, you can specify the state and scopes your application may authorize.
If neither are defined, the provider will utilize internal defaults.
At the time of authoring this documentation, the following scopes are available.
- profile
- offline_acccess
Refreshing a Token
Client Credentials Grant
When your application is acting on its own behalf to access resources it controls/owns in a service provider, it may use the client credentials grant type. This is best used when the credentials for your application are stored privately and never exposed (e.g. through the web browser, etc.) to end-users. This grant type functions similarly to the resource owner password credentials grant type, but it does not request a user's username or password. It uses only the client ID and secret issued to your client by the service provider.
Testing
Credits
License
The MIT License (MIT). Please see License File for more information.