Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/VKID/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,23 @@ class Provider extends AbstractProvider
*/
protected function getAuthUrl($state)
{
return $this->buildAuthUrlFromBase('https://id.vk.com/authorize', $state);
return $this->buildAuthUrlFromBase('https://id.vk.ru/authorize', $state);
}

/**
* {@inheritdoc}
*/
protected function getTokenUrl()
{
return 'https://id.vk.com/oauth2/auth';
return 'https://id.vk.ru/oauth2/auth';
}

/**
* {@inheritdoc}
*/
protected function getUserByToken($token)
{
$response = $this->getHttpClient()->post('https://id.vk.com/oauth2/user_info', [
$response = $this->getHttpClient()->post('https://id.vk.ru/oauth2/user_info', [
RequestOptions::HEADERS => ['Accept' => 'application/json'],
RequestOptions::FORM_PARAMS => [
'access_token' => $token['access_token'],
Expand Down
4 changes: 2 additions & 2 deletions src/VKID/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ composer require socialiteproviders/vkid

## Register an application

Add new application at [vk.com](https://id.vk.com/about/business/go).
Add new application at [vk.ru](https://id.vk.ru/about/business/go).

## Installation & Basic Usage

Expand Down Expand Up @@ -69,4 +69,4 @@ return Socialite::driver('vkid')->redirect();

### Reference

- [VK ID Reference](https://id.vk.com/about/business/go/docs/ru/vkid/latest/methods)
- [VK ID Reference](https://id.vk.ru/about/business/go/docs/ru/vkid/latest/methods)
8 changes: 4 additions & 4 deletions src/VKontakte/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ class Provider extends AbstractProvider
/**
* Last API version.
*/
public const VERSION = '5.131';
public const VERSION = '5.199';

protected function getAuthUrl($state): string
{
return $this->buildAuthUrlFromBase('https://oauth.vk.com/authorize', $state);
return $this->buildAuthUrlFromBase('https://oauth.vk.ru/authorize', $state);
}

protected function getTokenUrl(): string
{
return 'https://oauth.vk.com/access_token';
return 'https://oauth.vk.ru/access_token';
}

/**
Expand All @@ -45,7 +45,7 @@ protected function getUserByToken($token)
$token = $token['access_token'];
}

$response = $this->getHttpClient()->get('https://api.vk.com/method/users.get', [
$response = $this->getHttpClient()->get('https://api.vk.ru/method/users.get', [
RequestOptions::QUERY => [
'access_token' => $token,
'fields' => implode(',', $this->fields),
Expand Down
4 changes: 2 additions & 2 deletions src/VKontakte/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ composer require socialiteproviders/vkontakte

## Register an application

Add new application at [vk.com](https://vk.com/editapp?act=create).
Add new application at [vk.ru](https://vk.ru/editapp?act=create).

## Installation & Basic Usage

Expand Down Expand Up @@ -71,4 +71,4 @@ return Socialite::driver('vkontakte')->redirect();

### Reference

- [Vk.com API Reference](https://vk.com/dev/methods)
- [vk.ru API Reference](https://vk.ru/dev/methods)