2016-02-14 20:50:10 +03:00
|
|
|
<?php
|
|
|
|
namespace tests\codeception\api\_pages;
|
|
|
|
|
|
|
|
class OauthRoute extends BasePage {
|
|
|
|
|
|
|
|
public function validate($queryParams) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendGET('/oauth2/v1/validate', $queryParams);
|
2016-02-14 20:50:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public function complete($queryParams = [], $postParams = []) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendPOST('/oauth2/v1/complete?' . http_build_query($queryParams), $postParams);
|
2016-02-14 20:50:10 +03:00
|
|
|
}
|
|
|
|
|
2016-02-23 00:49:46 +03:00
|
|
|
public function issueToken($postParams = []) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendPOST('/oauth2/v1/token', $postParams);
|
2016-02-23 00:49:46 +03:00
|
|
|
}
|
|
|
|
|
2016-02-14 20:50:10 +03:00
|
|
|
}
|