mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Обновлены роуты для oAuth2 запросов по последней спеке
This commit is contained in:
@ -9,17 +9,17 @@ use yii\codeception\BasePage;
|
||||
class OauthRoute extends BasePage {
|
||||
|
||||
public function validate($queryParams) {
|
||||
$this->route = ['oauth/validate'];
|
||||
$this->route = '/oauth2/v1/validate';
|
||||
$this->actor->sendGET($this->getUrl($queryParams));
|
||||
}
|
||||
|
||||
public function complete($queryParams = [], $postParams = []) {
|
||||
$this->route = ['oauth/complete'];
|
||||
$this->route = '/oauth2/v1/complete';
|
||||
$this->actor->sendPOST($this->getUrl($queryParams), $postParams);
|
||||
}
|
||||
|
||||
public function issueToken($postParams = []) {
|
||||
$this->route = ['oauth/issue-token'];
|
||||
$this->route = '/oauth2/v1/token';
|
||||
$this->actor->sendPOST($this->getUrl(), $postParams);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user