ameliabooking
/
src
/
Infrastructure
/
Services
/
Authentication
/
AbstractSocialAuthenticationService.php
AbstractSocialAuthenticationService.php
1 year ago
StarterSocialAuthenticationService.php
1 year ago
AbstractSocialAuthenticationService.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaBooking\Infrastructure\Services\Authentication; |
| 4 | |
| 5 | use AmeliaBooking\Infrastructure\Common\Container; |
| 6 | |
| 7 | abstract class AbstractSocialAuthenticationService |
| 8 | { |
| 9 | /** @var Container $container */ |
| 10 | protected $container; |
| 11 | /** |
| 12 | * Exchange Google Authorization Code for Access Token. |
| 13 | */ |
| 14 | abstract public function getGoogleUserProfile($accessToken); |
| 15 | |
| 16 | /** |
| 17 | * Exchange Facebook Authorization Code for Access Token. |
| 18 | */ |
| 19 | abstract public function getFacebookUserProfile($code, $redirectUrl); |
| 20 | } |
| 21 |