mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/oauth] Add method to return necessary data for auth_link
PHPBB3-11673
This commit is contained in:
parent
deb62d51fe
commit
0b80aaf217
2 changed files with 18 additions and 1 deletions
|
@ -21,7 +21,16 @@ class ucp_auth_link
|
|||
|
||||
public function main($id, $mode)
|
||||
{
|
||||
global $template, $phpbb_container;
|
||||
global $config, $request, $template, $phpbb_container;
|
||||
|
||||
$auth_provider = $phpbb_container->get('auth.provider.' . $config['auth_method']);
|
||||
|
||||
// confirm that the auth provider supports this page
|
||||
$provider_data = $auth_provider->get_auth_link_data();
|
||||
if ($provider_data === null)
|
||||
{
|
||||
// does not support this page, throw error?
|
||||
}
|
||||
|
||||
$error = array();
|
||||
$s_hidden_fields = array();
|
||||
|
|
|
@ -62,6 +62,14 @@ abstract class phpbb_auth_provider_base implements phpbb_auth_provider_interface
|
|||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function get_auth_link_data()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue