From 3ac7bfe57702730558b42256179503ef38589581 Mon Sep 17 00:00:00 2001 From: Vladislav Bezmaternih Date: Fri, 19 Sep 2025 11:56:34 +0300 Subject: [PATCH 1/3] vk: change deprecated oauth endpoints --- vk/vk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vk/vk.go b/vk/vk.go index bd8e15948..e1684817b 100644 --- a/vk/vk.go +++ b/vk/vk.go @@ -11,6 +11,6 @@ import ( // Endpoint is VK's OAuth 2.0 endpoint. var Endpoint = oauth2.Endpoint{ - AuthURL: "https://oauth.vk.com/authorize", - TokenURL: "https://oauth.vk.com/access_token", + AuthURL: "https://oauth.vk.ru/authorize", + TokenURL: "https://oauth.vk.ru/access_token", } From 70590b18a534215922eb42642fb258fde8befe22 Mon Sep 17 00:00:00 2001 From: Vladislav Bezmaternih Date: Mon, 22 Sep 2025 22:09:47 +0300 Subject: [PATCH 2/3] Edit: vk.com to vk.ru in comment --- vk/vk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vk/vk.go b/vk/vk.go index e1684817b..24b42921b 100644 --- a/vk/vk.go +++ b/vk/vk.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Package vk provides constants for using OAuth2 to access VK.com. +// Package vk provides constants for using OAuth2 to access VK.ru. package vk // import "golang.org/x/oauth2/vk" import ( From 97b4ecd209e32ac2537883aff47b71ccf81f77ba Mon Sep 17 00:00:00 2001 From: Vladislav Bezmaternih Date: Mon, 22 Sep 2025 22:21:40 +0300 Subject: [PATCH 3/3] Edit: vk.com to vk.ru in endpoints --- endpoints/endpoints.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoints/endpoints.go b/endpoints/endpoints.go index 874b12888..a70db048d 100644 --- a/endpoints/endpoints.go +++ b/endpoints/endpoints.go @@ -328,8 +328,8 @@ var Uber = oauth2.Endpoint{ // Vk is the endpoint for Vk. var Vk = oauth2.Endpoint{ - AuthURL: "https://oauth.vk.com/authorize", - TokenURL: "https://oauth.vk.com/access_token", + AuthURL: "https://oauth.vk.ru/authorize", + TokenURL: "https://oauth.vk.ru/access_token", } // Withings is the endpoint for Withings.