From 70b30ab527375b0a76e225ae9fd22bf7500f679f Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 16 Jun 2013 10:18:04 -0700 Subject: [PATCH] Add Google support to new registration flow Summary: Ref T1536. Adds Google support. Test Plan: Registered and logged in with Google. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T1536 Differential Revision: https://secure.phabricator.com/D6167 --- src/__phutil_library_map__.php | 2 + .../PhabricatorAuthProviderOAuthGoogle.php | 47 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 src/applications/auth/provider/PhabricatorAuthProviderOAuthGoogle.php diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 4ffdd03a2f..4b623be68a 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -821,6 +821,7 @@ phutil_register_library_map(array( 'PhabricatorAuthProviderOAuthDisqus' => 'applications/auth/provider/PhabricatorAuthProviderOAuthDisqus.php', 'PhabricatorAuthProviderOAuthFacebook' => 'applications/auth/provider/PhabricatorAuthProviderOAuthFacebook.php', 'PhabricatorAuthProviderOAuthGitHub' => 'applications/auth/provider/PhabricatorAuthProviderOAuthGitHub.php', + 'PhabricatorAuthProviderOAuthGoogle' => 'applications/auth/provider/PhabricatorAuthProviderOAuthGoogle.php', 'PhabricatorAuthProviderPassword' => 'applications/auth/provider/PhabricatorAuthProviderPassword.php', 'PhabricatorAuthRegisterController' => 'applications/auth/controller/PhabricatorAuthRegisterController.php', 'PhabricatorAuthStartController' => 'applications/auth/controller/PhabricatorAuthStartController.php', @@ -2683,6 +2684,7 @@ phutil_register_library_map(array( 'PhabricatorAuthProviderOAuthDisqus' => 'PhabricatorAuthProviderOAuth', 'PhabricatorAuthProviderOAuthFacebook' => 'PhabricatorAuthProviderOAuth', 'PhabricatorAuthProviderOAuthGitHub' => 'PhabricatorAuthProviderOAuth', + 'PhabricatorAuthProviderOAuthGoogle' => 'PhabricatorAuthProviderOAuth', 'PhabricatorAuthProviderPassword' => 'PhabricatorAuthProvider', 'PhabricatorAuthRegisterController' => 'PhabricatorAuthController', 'PhabricatorAuthStartController' => 'PhabricatorAuthController', diff --git a/src/applications/auth/provider/PhabricatorAuthProviderOAuthGoogle.php b/src/applications/auth/provider/PhabricatorAuthProviderOAuthGoogle.php new file mode 100644 index 0000000000..78682a5f4a --- /dev/null +++ b/src/applications/auth/provider/PhabricatorAuthProviderOAuthGoogle.php @@ -0,0 +1,47 @@ +