This file to proccess Oauth2 connects for backpack.
Author: | Tung Thai <Tung.ThaiDuc@nashtechglobal.com> |
Copyright: | 2020 Tung Thai |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 96 lines (3 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
auth:: (2 methods):
complete_data()
is_logged_oauth2()
complete_data(\core_badges\oauth2\client $client, $redirecturl) X-Ref |
To complete data after login. param: client $client object. param: string $redirecturl the url redirect. |
is_logged_oauth2($externalbackpackid, $userid) X-Ref |
Check user has been logged the backpack site. param: int $externalbackpackid ID of external backpack. param: int $userid ID of user. return: bool |