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