library oauth2-validation
The library provides a uniform API for validation of OAuth2 access tokens of various platforms. That is using the library you can check if the access token you receive from the client is valid for a specific user of a platform.
kolyunya/oauth2-validation
The library provides a uniform API for validation of OAuth2 access tokens of various platforms. That is using the library you can check if the access token you receive from the client is valid for a specific user of a platform.
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
OAuth validation
Description
The library provides a uniform API for validation of OAuth2 access tokens of various platforms. That is using the library you can check if the access token you receive from the client is valid for a specific user of a platform., (*1)
- Facebook
- Google
- Vkontakte
Usage example
$userId = "User's Google ID";
$userToken = "Users's access token to your application";
$clientId = "Your Google application ID";
$googleClient = new GoogleClient($clientId);
$authenticated = $googleClient->validate($userId, $userToken);
if ($authenticated) {
// User provided valid authentication credentials
} else {
// User provided invalid authentication credentials
}
Build status
, (*2)
dev-master
9999999-dev
https://github.com/Kolyunya/oauth2-validation
The library provides a uniform API for validation of OAuth2 access tokens of various platforms. That is using the library you can check if the access token you receive from the client is valid for a specific user of a platform.
Sources
Download
GNU GPL v3.0
The Development Requires
authentication
oauth
validation
oauth2
access-token