Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a way to set or clean server parameters #7

merged 2 commits into from Jan 24, 2020


Copy link

@svycka svycka commented Jan 24, 2020

public function loginWithCredentials(string $usernameOrEmail, string $password)
    $I = $this;
    $I->amHttpAuthenticated('android', '');
    $I->sendPOST('/oauth2/token', [
        'username' => $usernameOrEmail,
        'password' => $password,
        'grant_type' => 'password',
    $accessToken = $I->grabDataFromResponseByJsonPath('$.access_token');
    // I would like to remove HTTP auth here but there is no way how to do it now
    // but now I will be able to reset server params with $I->setServerParameters([]);

@Naktibalda Naktibalda merged commit 0b0c03e into Codeception:master Jan 24, 2020
@svycka svycka deleted the patch-1 branch January 24, 2020 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants