From 1d34eec44bc642f3fd9cb89066646db4a6befa2a Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sun, 13 Oct 2019 22:05:39 +0400 Subject: [PATCH] feat: added stackoverflow class --- src/Auth/OAuth/Google.php | 16 +++++++--------- src/Auth/OAuth/Stackoverflow.php | 0 2 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 src/Auth/OAuth/Stackoverflow.php diff --git a/src/Auth/OAuth/Google.php b/src/Auth/OAuth/Google.php index 42f4357bd7..e28ec68ab4 100644 --- a/src/Auth/OAuth/Google.php +++ b/src/Auth/OAuth/Google.php @@ -5,15 +5,13 @@ namespace Auth\OAuth; use Auth\OAuth; // Reference Material -// https://developers.google.com/oauthplayground/ -// https://developers.google.com/identity/protocols/OAuth2 -// https://developers.google.com/identity/protocols/OAuth2WebServer -class Google extends OAuth +// https://api.stackexchange.com/docs/authentication +class Stackoverflow extends OAuth { - /** - * @var string - */ - protected $version = 'v4'; + // /** + // * @var string + // */ + // protected $version = 'v4'; /** * @var array */ @@ -24,7 +22,7 @@ class Google extends OAuth */ public function getName(): string { - return 'google'; + return 'stackoverflow'; } /** diff --git a/src/Auth/OAuth/Stackoverflow.php b/src/Auth/OAuth/Stackoverflow.php new file mode 100644 index 0000000000..e69de29bb2