VK ID OAuth 2.1 Authentication for Discourse

:information_source: Summary OAuth 2.1 authentication plugin with VK ID
:hammer_and_wrench: Repository Link https://github.com/kaktaknet/discourse-vkid-oauth
:open_book: Install Guide How to install plugins in Discourse

Features

:locked_with_key: VK ID Authentication for Discourse. OAuth 2.1 authentication plugin with VK ID.

Configuration

Application registered at id.vk.ru

Summary

:gear: Configuration

Create VK ID Application

  1. Go to VK ID Console
  2. Click “Create Application”
  3. Choose “Website” platform

Configure OAuth

Redirect URI:

https://your-discourse-site.com/auth/vkid/callback

Scopes:

  • :white_check_mark: vkid.personal_info (required)
  • :white_check_mark: email (recommended)
  • :white_check_mark: phone (optional)

PKCE: :white_check_mark: Must be enabled

Settings

Discourse Settings

Navigate to: Admin → Settings → Login

Setting Value Description
vkid_enabled :white_check_mark: Enable VK ID authentication
vkid_client_id 123456 App ID from VK ID console
vkid_client_secret •••••• Secret key from VK ID
vkid_scope vkid.personal_info email phone OAuth scopes
Screen

1 Like

Thanks, when you get a chance, can you describe the difference between this plugin and Discourse VK Authentication (vkontakte)?

1 Like

The old plugin worked with the old version of VK authorization. The old version of authorization methods and API are completely broken. The old plugin is not working and is outdated.

It’s not even about the domain changing from .com to .ru; the method itself was different. An application was created for authorization, and a VK group (similar to a Facebook group) was added to the application. The system was different, and now it’s completely gone. The old applications are blocked. Now everything is concentrated on id.vk.ru.

2 Likes

Thanks for putting up this plugin!

None of our customers are using this authentication provider, and I am not aware of any open source sites either.

I’ved added the deprecated tag to Discourse VK Authentication (vkontakte) and we may remove it, given that it no longer works. And will add a link to this plugin topic.

2 Likes