1 | <?php |
||
26 | class AuthProvider implements AuthInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var EntityInterface $identity |
||
30 | */ |
||
31 | protected $identity; |
||
32 | |||
33 | /** |
||
34 | * @var \Hybrid_Auth $hybridauth |
||
35 | */ |
||
36 | protected $hybridauth; |
||
37 | |||
38 | /** |
||
39 | * @var \Hybrid_Provider_Adapter $authAdapter |
||
40 | */ |
||
41 | protected $authAdapter; |
||
42 | |||
43 | /** |
||
44 | * the same name as was mentioned in hybridauth config section providers |
||
45 | * @var string |
||
46 | */ |
||
47 | protected $providerName; |
||
48 | |||
49 | public function __construct($providerName) |
||
57 | |||
58 | /** |
||
59 | * @return \Hybrid_Auth |
||
60 | */ |
||
61 | public function getHybridauth() |
||
69 | |||
70 | /** |
||
71 | * @param \Hybrid_Auth $hybridauth |
||
72 | */ |
||
73 | public function setHybridauth($hybridauth) |
||
77 | |||
78 | /** |
||
79 | * @param EntityInterface $identity |
||
80 | */ |
||
81 | public function setIdentity($identity) |
||
85 | |||
86 | /** |
||
87 | * @return EntityInterface $user |
||
88 | */ |
||
89 | public function getIdentity() |
||
93 | |||
94 | /** |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getProviderName() |
||
101 | |||
102 | /** |
||
103 | * @param string $providerName |
||
104 | */ |
||
105 | public function setProviderName($providerName) |
||
109 | |||
110 | /** |
||
111 | * @return \Hybrid_Provider_Adapter |
||
112 | * @throws \Exception |
||
113 | */ |
||
114 | public function getAuthAdapter() |
||
127 | |||
128 | /** |
||
129 | * @param \Hybrid_Provider_Adapter $authAdapter |
||
130 | */ |
||
131 | public function setAuthAdapter($authAdapter) |
||
135 | |||
136 | /** |
||
137 | * @param \Hybrid_User_Profile $data |
||
138 | * @param \Application\Users\Row $user |
||
139 | * @return void |
||
140 | */ |
||
141 | public function registration($data, $user) |
||
155 | |||
156 | /** |
||
157 | * @return void |
||
158 | */ |
||
159 | public function authProcess() |
||
183 | |||
184 | /** |
||
185 | * @return array |
||
186 | * @throws \Application\Exception |
||
187 | */ |
||
188 | public function getOptions() |
||
192 | |||
193 | /** |
||
194 | * @return array |
||
195 | */ |
||
196 | public function getAvailableProviders() |
||
200 | |||
201 | /** |
||
202 | * @param $auth |
||
203 | * @return mixed |
||
204 | */ |
||
205 | public function alreadyRegisteredLogic($auth) |
||
216 | |||
217 | /** |
||
218 | * @return \Hybrid_User_Profile |
||
219 | */ |
||
220 | public function getProfile() |
||
224 | } |
||
225 |