1 | <?php |
||
11 | class SocialAuthenticationController extends AuthenticationController |
||
12 | { |
||
13 | /** |
||
14 | * Redirect the user to the provider authentication page. |
||
15 | * |
||
16 | * @param string $provider |
||
17 | * |
||
18 | * @return \Illuminate\Http\Response |
||
19 | */ |
||
20 | public function redirectToProvider(string $provider) |
||
24 | |||
25 | /** |
||
26 | * Obtain the user information from Provider. |
||
27 | * |
||
28 | * @param string $provider |
||
29 | * |
||
30 | * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse |
||
31 | */ |
||
32 | public function handleProviderCallback(string $provider) |
||
62 | |||
63 | /** |
||
64 | * Get local user for the given provider. |
||
65 | * |
||
66 | * @param string $provider |
||
67 | * @param int $providerUserId |
||
68 | * |
||
69 | * @return \Illuminate\Database\Eloquent\Model|null |
||
70 | */ |
||
71 | protected function getLocalUser(string $provider, int $providerUserId) |
||
77 | |||
78 | /** |
||
79 | * Create local user for the given provider. |
||
80 | * |
||
81 | * @param string $provider |
||
82 | * @param array $attributes |
||
83 | * |
||
84 | * @return \Illuminate\Database\Eloquent\Model|null |
||
85 | */ |
||
86 | protected function createLocalUser(string $provider, array $attributes) |
||
111 | } |
||
112 |
This check looks
TODO
comments that have been left in the code.``TODO``s show that something is left unfinished and should be attended to.