Download the PHP package codeinc/google-oauth2-middleware without Composer
On this page you can find all versions of the php package codeinc/google-oauth2-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codeinc/google-oauth2-middleware
More information about codeinc/google-oauth2-middleware
Files in codeinc/google-oauth2-middleware
Package google-oauth2-middleware
Short Description A PSR-15 middleware managing Google OAuth2 authentication using JSON web tokens
License MIT
Homepage https://github.com/CodeIncHQ/GoogleOAuth2Middleware
Informations about the package google-oauth2-middleware
Google OAuth 2 Middleware
GoogleOAuth2Middleware
is a PSR-15 middleware written in PHP 7 intended to manage Google OAuth2 authentication using JSON web tokens or the PHP session. The interactions with Google are made using the Google API PHP client. The JSON web tokens are generated and read by the Firebase JWT implementation.
The authentication informations (SessionStorageDriver
.
Once the user is authenticated, either when receiving an auth code from Google or using the auth cookie, the user informations are made available in an attribute of the PSR-7 request the called auth
(by default).
You can disconnect the current user by sending a PSR-7 response implementing LogoutResponseInterface
.
Usage
Installation
This library is available through Packagist and can be installed using Composer:
License
This library is published under the MIT license (see the LICENSE
file).
All versions of google-oauth2-middleware with dependencies
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
psr/http-server-handler Version ^1.0
hansott/psr7-cookies Version ^1.0
google/apiclient Version ^2.0
firebase/php-jwt Version ^5.0
codeinc/psr7-responses Version ^2
codeinc/url Version ^1.4