accounts/tests/codeception/api/_pages/AuthserverRoute.php

27 lines
759 B
PHP
Raw Normal View History

<?php
namespace tests\codeception\api\_pages;
class AuthserverRoute extends BasePage {
public function authenticate($params) {
$this->getActor()->sendPOST('/authserver/authentication/authenticate', $params);
}
public function refresh($params) {
$this->getActor()->sendPOST('/authserver/authentication/refresh', $params);
}
public function validate($params) {
$this->getActor()->sendPOST('/authserver/authentication/validate', $params);
}
public function invalidate($params) {
$this->getActor()->sendPOST('/authserver/authentication/invalidate', $params);
}
public function signout($params) {
$this->getActor()->sendPOST('/authserver/authentication/signout', $params);
}
}