Vk.com login (vkontakte)

Repository: https://github.com/discourse/discourse-vk-auth

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

  1. Create a new application (or use existing one) at https://vk.com/apps?act=manage. (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:

11 Likes

We have carried too much pain over the years with the plugin I think the best thing for us to do here is just make an official plugin from @stereobooster’s fork, make sure it supports all the fancy features @david added like associating an exiting login. @pmusaraj will take care of this and update the OP once done.

With 500 million users, VK is even bigger than Twitter. Might as well make this official.

7 Likes

Smart move :wink:

T H A N K S!

2 Likes

Any updates soon yet?

Hi @Dmitry_Krasnoperov, this was delayed while I created some documentation, which took me a lot longer than planned.

@pmusaraj if you are still happy to take this, the documentation can now be found here. Let me know if there’s anything missing.

6 Likes

Thanks David, I’m still happy to take this, will work on it shortly.

6 Likes

@Dmitry_Krasnoperov please try the plugin above and let me know if you run into any issues. I tested it locally and briefly on a live site, and it works well both for new logins and for matching existing accounts (if the account has an email).

On a technical note, I started with a fork of @stereobooster’s version, but switched to a separate plugin along the way, because the new ManagedAuthenticator abstraction made most of the initial plugin redundant.

7 Likes

Glad to hear it :slight_smile: Let me know if you have any feedback on using it, or on the documentation.

2 Likes

It worked quite smoothly, and the documentation was great too. Thanks!

3 Likes

It works great for me.
Thanks

3 Likes

Hi!
Not work for me.

In your screenshot, the N in the discourse-vk-auth columns means that the plugin isn’t enabled. You need to click on the settings button, enable the plugin and go through the steps detailed in the OP.

2 Likes

As you can see, there is no green circle at left of VK plugin, which means it’s not installed properly. And I can’t enable it, because when I press “Settings” I open another settings, not regards VK.

Here is contents of app.yml:

 ## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-akismet.git
#          - git clone https://github.com/discourse/all-the-plugins.git

          - git clone https://github.com/discourse/discourse-voting.git
          - git clone https://github.com/discourse/discourse-topic-status-filter.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/discourse/discourse-checklist.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-canned-replies.git
#          - git clone https://github.com/discourse/discourse-code-review.git
          - git clone https://github.com/discourse/discourse-category-banners.git
          - git clone https://github.com/discourse/discourse-hamburger-theme-selector.git
          - git clone https://github.com/discourse/discourse-vk-auth

You can type in search: vk

To access the settings of this plugin.

2 Likes

Oh, nice, thank you. Now it works

2 Likes