Vk.com login (vkontakte)


(Sam Saffron) #12

Would you like to take over this plugin? I made the OP wiki, feel free to edit in your github link and add screenshots for share button.


(stereobooster) #13

I want to stabilize/test code before it will become default. I implemented
code which almost the same as Facebooks code. Do you think this is good
idea to add VkontakteUserInfo model?


(Sam Saffron) #14

Yes, but a bit tricky to introduce via a plugin


(stereobooster) #15

Managed to add model. But can’t add custom sharing source. Plugin settings not filtered, even I can see settings button in plugin section. Still fighting


(Dmitry Krasnoperov) #17

How to install it?
Please help!


(Joshua Rosenfeld) #18

Check out @techAPJ’s #howto:


(Dmitry Krasnoperov) #19

Which is the latest and approved version?




#20

(Alex S) #21

I create a plugin based on GitHub - stereobooster/discourse-vk-login: 🚨 [deprecated] VK.com login for Discourse and have it installed. What’s strange is it has some unrelated fields(marked in red), see attachment. Anyone know why?


(Bliketto) #22

plugin GitHub - stereobooster/discourse-vk-login: 🚨 [deprecated] VK.com login for Discourse not working for me
./launcher rebuild app failed

FAILED

Pups::ExecError: cd /var/www/discourse/plugins && git https://github.com/stereobooster/discourse-vk-login.git failed with return #<Process::Status: pid 318 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home/plugins", "cmd"=>["git clone https://github.com/discourse/docker_manager.git", "git clone https://github.com/discourse/discourse-staff-notes.git", "git clone https://github.com/discourse/discourse-cakeday.git", "git clone https://github.com/discourse/discourse-oauth2-basic.git", "git clone https://github.com/discourse/discourse-tagging.git", "git clone https://github.com/tgxworld/discourse-narrative-bot.git", "git clone https://github.com/discourse/discourse-solved.git", "git clone https://github.com/discourse/discourse-canned-replies.git", "git https://github.com/stereobooster/discourse-vk-login.git", "cp discourse-vk-login/db/migrate/* db/migrate/"]}
d86e88e523b0bd41d1f14c5b4bf5c6252abcbcc823d9d3067fea965680b36b4e
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

(Sam Saffron) #23

There is not enough in that log to tell what happened


(Bliketto) #24

Sam, please help, log - http://pastebin.com/ewwBNkYD


(Sam Saffron) #25
Cloning into 'discourse-vk-login'...
I, [2017-01-30T14:11:59.054447 #13]  INFO -- :
I, [2017-01-30T14:11:59.055569 #13]  INFO -- : > cd /var/www/discourse/plugins && cp discourse-vk-login/db/migrate/* db/migrate/
cp: cannot create regular file 'db/migrate/': No such file or directory

Don’t know where these instructions came from but adding migrations via a plugin seems a bit of a worry to me. Regardless if it is doing so it should try to copy the migrations into /var/www/discourse/db/migrate as opposed to /var/www/discourse/plugins/db/migrate


(Kamil) #26

Hi Sam!

Should i use that plugin? Does it work correct now? There was no updates last 11 months.


(Sam Saffron) #27

You can try it out, why not?


#28

The same thing is for me - the plugin cannot be installed.
Installation manual at GitHub - stereobooster/discourse-vk-login: 🚨 [deprecated] VK.com login for Discourse is wrong (
(besides missing “clone” in “git clone” command)


#29

with this folder also doesn’t work,
if completely remove cp to migrate then plugin works in someway but it fails to substitute email, username and name, instead it substitutes user id into name/username fields.


#30

I’m sorry for bothering but @sam, @stereobooster could you comment how to use VK plugin properly?

There’re two question:

  1. Is it necessary to install migrations? If so then how, as the mentioned in github’s README cmd doesn’t work:
    cp discourse-vk-login/db/migrate/* db/migrate/
  2. Currently after success signup via VK and returning to Discourse in the form creating new user no user name and alias are substituted into fields. Instead of them vk’s user id is substituted into that fields. Is it possible to fix?

(Sam Saffron) #31

I am reverting this to the original plugin I had.

If anyone wants to improve my original version

  • Do a PR for Discourse to add the auth table into the official discourse migrations.
  • Write some tests
  • Offer longer term support on the work, @stereobooster has been missing :frowning:

#32

I’m sorry I don’t fully understand - what is the original plugin?
Could you you which one is the safest one to use currently?
I understand that it’s WIP and not finished and never was claimed to be. But I personally don’t know Ruby so I can’t work on it right now but I need very much VK integration… I’ve installed GitHub - stereobooster/discourse-vk-login: 🚨 [deprecated] VK.com login for Discourse (without migrations) but I wonder whether it’s safe to use.