This is the OmniAuth strategy for authenticating to QQ connect. To use it, you'll need to sign up for an OAuth2 Application Key and Secret on the QQ Open SNS Page.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install omniauth-qq-connect
use OmniAuth::Builder do provider :qq_connect, ENV['QQ_CONNECT_APP_KEY'], ENV['QQ_CONNECT_APP_SECRET'] end
Notice you only allow send the auth request from host(w/o port) list of application.
You can configure several options(currently only one), which you pass in to the provider method via a Hash:
scope: A comma-separated list of permissions you want to request from the
user. See the official docs for a full list of available permissions:
use OmniAuth::Builder do provider :qq_connect, ENV['QQ_CONNECT_API_KEY'], ENV['QQ_CONNECT_API_SECRET'], scope: "get_user_info,add_share" end
git checkout -b my-new-feature)
git commit -am 'Added some feature')
git push origin my-new-feature)