This project is not covered by Drupal’s security advisory policy.
Github OAuth 2 client plugin for Drupal Authman
Composer is required for managing dependencies.
Usage Example
/** @var \Drupal\authman\AuthmanInstance\AuthmanOauthFactoryInterface $factory */
$factory = \Drupal::service('authman.oauth');
$authmanInstance = $factory->get('id_of_instance');
try {
$response = $authmanInstance->authenticatedRequest('GET', 'https://api.github.com/user/repos');
$successJson = \json_decode((string) $response->getBody());
}
catch (\GuzzleHttp\Exception\GuzzleException $e) {
$errorJson = \json_decode((string) $e->getResponse()->getBody());
}
Supporting organizations:
Project information
- Project categories: Integrations
- Ecosystem: Authman
- Created by dpi on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
