Discourse VK Authentication (vkontakte)

:warning: VK Authentication no longer works, so this plugin is deprecated. You may like to try the community contributed VK ID OAuth 2.1 Authentication for Discourse plugin instead.

:discourse2: Summary Discourse VK Authentication allows users to login to your forum using VK.
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-vk-auth
:open_book: Install Guide How to install plugins in Discourse

After installing the plugin you can go to vk.com and:

  1. Create a new application (or use existing one) at VK | Welcome!. (choose “Website” under Platform in the form for a new application.)
  2. Go to the application settings and note the app ID and Secure key.
  3. In your Discourse instance, go to Site Settings, filter by “VK” and enter the app ID and the Secure key.
  4. Check the “vk auth enabled” checkbox, and you’re done!

You should now see the button to login via VK:

14 个赞

现在您需要指定“受信任的重定向 URL”

说明:用户在点击“以…身份登录”按钮后,浏览器将重定向到的 URL。
如果您使用的是 authorization Connect.redirectAuth 方案,请务必填写地址。

请告诉我该填什么 :heart_hands:

1 个赞

需要指定此 URL:
https://example.com/auth/vkontakte/callback

example.com 中,这是您的域名。

2 个赞

VKontakte 切换至 vk.ru 域名

VKontakte 正在切换至 vk.ru 域名 — 现在所有 API 集成和授权将仅通过它可用。

为确保您的服务正常运行,请在 9 月 30 日前更改其域名 — 例如:

vk.ru/dev 而不是 vk.com/dev
oauth.vk.ru 而不是 oauth.vk.com
api.vk.ru 而不是 api.vk.com

如果您有任何疑问,请联系支持:dev.vk.com/ru/support

感谢告知!我看到 vk.com 网站似乎仍然可以访问。您的意思是它将在某个时候停止工作吗?它将在何时停止工作?

看起来插件需要更新才能解决此更改。

1 个赞

俄语官方通知,附截图。

请将其复制/粘贴到此处的回复中,以便为我们翻译?

1 个赞

VKontakte 将迁移到 vk.ru 域名 — 现在所有 API 集成和授权仅通过此域名可用。

  为确保您的服务正常运行,请在 9 月 30 日之前更改其域名 — 例如:
  • vk.ru/dev 而不是 vk.com/dev
  • oauth.vk.ru 而不是 oauth.vk.com
  • api.vk.ru 而不是 api.vk.com

  如有任何疑问,请访问支持中心:dev.vk.com/ru/support
1 个赞

谢谢!截止日期似乎是9月30日,但现在已经是10月30日了。vk.com域名何时将停止工作?

1 个赞

该域名并未停止工作,这对 API 和应用程序很重要。他们可能随时停止支持。他们于 9 月 5 日发出通知,要求在 9 月 30 日之前更改所有内容。它仍在工作,但随时可能停止。

1 个赞

VK 在俄罗斯相当于 Facebook,而 Yandex 则相当于 Google,是主要的搜索引擎和 IT 巨头。如果您考虑添加 Yandex 即时授权,对于俄罗斯、独联体国家和世界各地的所有俄语用户来说,都将非常方便。

1 个赞

我们已更新
并已迁移至新域名
workspace.vk.ru

We have been updated
and moved to a new domain
workspace.vk.ru

开始了。他们很快就会关闭.com

2 个赞

您可以编辑插件,测试其是否正常工作,然后提交拉取请求吗?

1 个赞

我明天再试试。只在本地,我现在没有在线论坛。

1 个赞

完成

1 个赞

请在此处单独粘贴 PR 的链接?

1 个赞

谢谢。我们的插件依赖于 omniauth-vkontakte,我看到他们最近也做了这个更改:Replace vk.com with vk.ru (#92) · mamantoha/omniauth-vkontakte@98cf241 · GitHub

为了让插件真正从 vk.com 切换到 vk.ru,插件还需要更新 omniauth-vkontakto 的版本以包含此提交,即更新到 1.9.0 版本。我已将其添加到您的 PR 中,但实际上,我没有任何正在通过 VK 进行身份验证的活动站点。您有吗?您能否测试 gem 升级,看看它是否会导致任何问题?

2 个赞

我稍后会测试它,当论坛上线时。也许下周。然后,我将尝试为 Yandex 制作一个单独的插件。

2 个赞

GitHub - kaktaknet/discourse-vkid-oauth: 🔐 VK ID Authentication for Discourse. OAuth 2.1 authentication plugin with VK ID, OK.ru, and Mail.ru support. 它有效,我已经仔细检查过了。

1 个赞