1 | <?php |
||
17 | class Main |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Implements hook "route.list" |
||
22 | * @param array $routes |
||
23 | */ |
||
24 | public function hookRouteList(array &$routes) |
||
33 | |||
34 | /** |
||
35 | * Returns a provider |
||
36 | * @param string $id |
||
37 | * @return array |
||
38 | */ |
||
39 | public function getProvider($id) |
||
43 | |||
44 | /** |
||
45 | * Returns an array of providers |
||
46 | * @param array $options |
||
47 | * @return array |
||
48 | */ |
||
49 | public function getProviders(array $options = array()) |
||
53 | |||
54 | /** |
||
55 | * Does main authorization process |
||
56 | * @param array $provider |
||
57 | * @param array $options |
||
58 | * @return mixed |
||
59 | */ |
||
60 | public function authorize(array $provider, array $options) |
||
64 | |||
65 | /** |
||
66 | * Returns the Oauth model instance |
||
67 | * @return \gplcart\modules\oauth\models\Oauth |
||
68 | */ |
||
69 | public function getModel() |
||
75 | |||
76 | /** |
||
77 | * Returns JWT helper class instance |
||
78 | * @return \gplcart\modules\oauth\helpers\Jwt |
||
79 | */ |
||
80 | public function getJwtHelper() |
||
86 | } |
||
87 |