Skip to content

ImpactFlow/oauth-client-php

Repository files navigation

Oauth Client for Client Credentials Grant Types.

Written to consume Impactflow Internal Oauth Server.

Usage example

Get Token

$tokenRequest = new \ImpactOauthClient\TokenRequest('TestClient', 'TestSecret');
$tokenRequest->setUri('https://oauth-provider/token');
$oauthClient = new ImpactOauthClient\Client(new GuzzleHttp\Client(['verify' => false]));
$token = $oauthClient->requestToken($tokenRequest);

Validate

$resourceRequest = new \ImpactOauthClient\ResourceRequest();
$resourceRequest->setAccessToken('MyLongToken');
$resourceRequest->setUri('https://oauth-provider/resource');
$token = $oauthClient->validateToken($resourceRequest);

About

A PHP client for ImpactFlow's OAuth service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages