mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Реализована логика oAuth авторизации приложений, добавлен Redis, удалены лишние тесты, пофикшены старые.
This commit is contained in:
21
tests/codeception/api/_pages/OauthRoute.php
Normal file
21
tests/codeception/api/_pages/OauthRoute.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace tests\codeception\api\_pages;
|
||||
|
||||
use yii\codeception\BasePage;
|
||||
|
||||
/**
|
||||
* @property \tests\codeception\api\FunctionalTester $actor
|
||||
*/
|
||||
class OauthRoute extends BasePage {
|
||||
|
||||
public function validate($queryParams) {
|
||||
$this->route = ['oauth/validate'];
|
||||
$this->actor->sendGET($this->getUrl($queryParams));
|
||||
}
|
||||
|
||||
public function complete($queryParams = [], $postParams = []) {
|
||||
$this->route = ['oauth/complete'];
|
||||
$this->actor->sendPOST($this->getUrl($queryParams), $postParams);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user