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 Likes

Now you need to specify “Trusted Redirect URL”

image

Description: URL to which the browser will be redirected
user after clicking the “Login as” button.
It is important to indicate the address if you are using the scheme
authorization Connect.redirectAuth.

Please tell me what to write here :heart_hands:

1 Like

Need to specify this url:
https://example.com/auth/vkontakte/callback

in example.com your domain name

2 Likes

VKontakte switches to vk.ru domain

VKontakte is switching to the vk.ru domain — now all API integrations and authorizations will only be available through it.

To ensure that your services work correctly, change their domains by September 30 — for example:

vk.ru/dev instead of vk.com/dev
oauth.vk.ru instead of oauth.vk.com
api.vk.ru instead of api.vk.com

If you have any questions, please contact Support: dev.vk.com/ru/support

Thanks for informing us! I see the vk.com website still appears to be up. Are you saying that it will stop working at some point? When will it stop working?

Looks like the plugin is going to need an update to address this change.

1 Like

Official notification in Russian, screenshot attached.

Can you copy/paste that into a reply here, so it is translated for us?

1 Like

VKontakte is switching to the vk.ru domain — all API integrations and authorizations will now only be available through it.

  To ensure your services work correctly, change their domains by September 30 — for example:
  • vk.ru/dev instead of vk.com/dev
  • oauth.vk.ru instead of oauth.vk.com
  • api.vk.ru instead of api.vk.com

  For all questions, visit Support: dev.vk.com/ru/support
1 Like

Thank you! The deadline appears to be September 30 but now we are at October 30. When will the vk.com domain stop working?

1 Like

The domain has not stopped working, which is important for APIs and applications. They may discontinue support at any time. They gave notice on September 5 that everything had to be changed by September 30. It is still working, but may stop at any time.

1 Like

VK in Russia is analogous to Facebook, while Yandex is analogous to Google, a major search engine and IT giant. If you were to consider adding Instant authorization for Yandex, it would be very convenient for all Russian-speaking users in Russia, the CIS, and around the world.

1 Like

Мы обновились
и переехали на новый домен
workspace.vk.ru

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

It’s started. They’ll shut down .com soon.

2 Likes

Can you edit the plugin, test that it is working and then make a pull request?

1 Like

I’ll try tomorrow. Only locally, I don’t have an online forum right now.

1 Like

Done

1 Like

Can you paste a link to the pr here on its own line?

1 Like

Thanks. Our plugin relies on omniauth-vkontakte, and I can see they made this change recently as well: Replace vk.com with vk.ru (#92) · mamantoha/omniauth-vkontakte@98cf241 · GitHub

In order for the plugin to actually switch from vk.com to vk.ru, the plugin also needs to update the version of omniauth-vkontakto to include that commit, i.e. to be on version 1.9.0. I added this to your PR, but in practice, I don’t have any active sites running authentication via VK. Do you have one? Can you test the gem upgrade to see if it causes any issues?

2 Likes

I’ll test it a little later, when the forum is online. Maybe next week. Then I’ll try to make a separate plugin for Yandex.

2 Likes

GitHub - kaktaknet/discourse-vkid-oauth: 🔐 VK ID Authentication for Discourse. OAuth 2.1 authentication plugin with VK ID, OK.ru, and Mail.ru support. It works, I double-checked it.

1 Like