diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-08-14 17:15:36 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-08-14 17:16:00 -0400 |
commit | 0ea555bbc78597645cf024a5ba14bfd8149f512a (patch) | |
tree | 2208e22ec3189f1e9190504b75de1c18aaacebc3 | |
parent | d13a1788f0517f3ecb87d1ecedf24833cf3b403a (diff) | |
download | forums-0ea555bbc78597645cf024a5ba14bfd8149f512a.tar forums-0ea555bbc78597645cf024a5ba14bfd8149f512a.tar.gz forums-0ea555bbc78597645cf024a5ba14bfd8149f512a.tar.bz2 forums-0ea555bbc78597645cf024a5ba14bfd8149f512a.tar.xz forums-0ea555bbc78597645cf024a5ba14bfd8149f512a.zip |
[feature/oauth] Update auth provider interface
PHPBB3-11673
-rw-r--r-- | phpBB/phpbb/auth/provider/interface.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/phpBB/phpbb/auth/provider/interface.php b/phpBB/phpbb/auth/provider/interface.php index 4abbd75055..480ee4301b 100644 --- a/phpBB/phpbb/auth/provider/interface.php +++ b/phpBB/phpbb/auth/provider/interface.php @@ -168,6 +168,26 @@ interface phpbb_auth_provider_interface public function link_account(array $link_data); /** + * Returns an array of data necessary to build the ucp_auth_link page + * + * @return array|null If this function is not implemented on an auth + * provider then it returns null. If it is implemented + * it will return an array of up to four elements of + * which only 'TEMPLATE_FILE'. If 'BLOCK_VAR_NAME' is + * present then 'BLOCK_VARS' must also be present in + * the array. The fourth element 'VARS' is also + * optional. The array, with all four elements present + * looks like the following: + * array( + * 'TEMPLATE_FILE' => string, + * 'BLOCK_VAR_NAME' => string, + * 'BLOCK_VARS' => array(...), + * 'VARS' => array(...), + * ) + */ + public function get_auth_link_data(); + + /** * Unlinks an external account from a phpBB account. * * @param array $link_data Any data needed to unlink a phpBB account |