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