Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Another Authlogic Vkontakte

tag: v0.1.0

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 aavkontakte.gemspec
Octocat-spinner-32 init.rb * clean shoulda dependencies May 20, 2011
README.rdoc

aavkontakte

Another authlogic vkontakte authorization

Install

gem install aavkontakte

  • Environment

In environment.rb:

config.gem 'aavkontakte', :version => '=0.1.0'

VK_APP_ID = 'vk_app_id' VK_APP_PASSWORD = 'vk_app_password' VK_APP_COOKIE = 'vk_app_#{VK_APP_ID}'

  • Migrations

TODO: migrations

  • Layout

In the body section: <%= init_vkontakte %>

  • Javascripts

After first start your application, it's copying vkontakte.js to your javascripts directory or if it doesn't exist.

  • Link

put link somewhere, where you want <%= vkontakte_login_link “Войти через vkontakte” %>

  • User session

def create

@user_session = UserSession.new(params[:status] ? cookies : params[:user_session])
...

That's all

Contributing to aavkontakte

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet

  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it

  • Fork the project

  • Start a feature/bugfix branch

  • Commit and push until you are happy with your contribution

  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Copyright

Copyright © 2011 Dmitry Vorotilin. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.