2016-09-01 10:31:43 +03:00
|
|
|
<?php
|
|
|
|
namespace tests\codeception\api\_pages;
|
|
|
|
|
|
|
|
class AuthserverRoute extends BasePage {
|
|
|
|
|
|
|
|
public function authenticate($params) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendPOST('/authserver/authentication/authenticate', $params);
|
2016-09-01 10:31:43 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public function refresh($params) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendPOST('/authserver/authentication/refresh', $params);
|
2016-09-01 10:31:43 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public function validate($params) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendPOST('/authserver/authentication/validate', $params);
|
2016-09-01 10:31:43 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public function invalidate($params) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendPOST('/authserver/authentication/invalidate', $params);
|
2016-09-01 10:31:43 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public function signout($params) {
|
2017-10-01 03:24:23 +03:00
|
|
|
$this->getActor()->sendPOST('/authserver/authentication/signout', $params);
|
2016-09-01 10:31:43 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|