2015-09-16 21:29:10 +02:00
|
|
|
<?php
|
|
|
|
|
2021-10-11 16:10:47 +02:00
|
|
|
interface OAuth2Controller
|
|
|
|
{
|
2015-09-16 21:29:10 +02:00
|
|
|
/**
|
2021-10-11 16:10:47 +02:00
|
|
|
* Send user to a third-party service to authorize before being redirected.
|
2015-09-16 21:29:10 +02:00
|
|
|
*/
|
|
|
|
public function authorizeAction();
|
|
|
|
|
|
|
|
/**
|
2021-10-11 16:10:47 +02:00
|
|
|
* Clear the previously saved request token from the preferences.
|
2015-09-16 21:29:10 +02:00
|
|
|
*/
|
|
|
|
public function deauthorizeAction();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when user successfully completes third-party authorization
|
2021-10-11 16:10:47 +02:00
|
|
|
* Store the returned request token for future requests.
|
2015-09-16 21:29:10 +02:00
|
|
|
*/
|
|
|
|
public function redirectAction();
|
2021-10-11 16:10:47 +02:00
|
|
|
}
|