VK.com login for Discourse
Caution: there are no tests, use at your own risk!
To install in docker, add the following to your app.yml in the plugins section:
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
- git https://github.com/stereobooster/discourse-vk-login.git
- cp discourse-vk-login/db/migrate/* db/migrate/
and rebuild docker via
cd /var/discourse
./launcher rebuild app
Set vk_client_id
and vk_client_secret
settings in the users section.
Just two easy steps. From your main discourse do:
cd plugins
git clone https://github.com/stereobooster/discourse-vk-login.git
cd ..
export RAILS_ENV=production # set to productions
cp discourse-vk-login/db/migrate/* db/migrate/ # copy migrations
rake db:migrate # run migrations
rake assets:precompile # precompile assets
- Fix share button
- Fix plugin settings
- Do not show button if there are no VK API keys
- Add tests
MIT
Examples of code: