GitHub.php 685 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * This file is part of the ForkBB <https://github.com/forkbb>.
  4. *
  5. * @copyright (c) Visman <mio.visman@yandex.ru, https://github.com/MioVisman>
  6. * @license The MIT License (MIT)
  7. */
  8. declare(strict_types=1);
  9. namespace ForkBB\Models\Provider\Driver;
  10. use ForkBB\Models\Provider\Driver;
  11. use RuntimeException;
  12. class GitHub extends Driver
  13. {
  14. protected string $originalName = 'github';
  15. protected string $authURL = 'https://github.com/login/oauth/authorize';
  16. protected string $tokenURL = 'https://github.com/login/oauth/access_token';
  17. protected string $userURL = 'https://api.github.com/user';
  18. protected string $scope = 'read:user';
  19. }