1 | <?php |
||
10 | class SocialAuthController extends BaseController |
||
11 | { |
||
12 | protected $driver; |
||
13 | |||
14 | protected $scopes; |
||
15 | |||
16 | protected $extras; |
||
17 | |||
18 | public function __construct() |
||
28 | |||
29 | /** |
||
30 | * Redirect the user to the social providers auth page. |
||
31 | * |
||
32 | * @return mixed |
||
33 | */ |
||
34 | public function login() |
||
45 | |||
46 | /** |
||
47 | * Use the returned user to register (if needed) and login. |
||
48 | * |
||
49 | * @param \Illuminate\Http\Request $request |
||
50 | * |
||
51 | * @return mixed |
||
52 | */ |
||
53 | public function callback(Request $request) |
||
68 | |||
69 | /** |
||
70 | * Create a new user from a social user. |
||
71 | * |
||
72 | * @param $socialUser |
||
73 | * |
||
74 | * @return mixed |
||
75 | */ |
||
76 | private function register($socialUser) |
||
95 | |||
96 | /** |
||
97 | * Log the user out. |
||
98 | * |
||
99 | * @return mixed |
||
100 | */ |
||
101 | public function logout() |
||
108 | } |