Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
def oauth_account
client ='your-api-key', 'your-secret-key', @@config)
pin = params[:oauth_verifier]
if pin
atoken, asecret = client.authorize_from_request(session[:rtoken], session[:rsecret], pin)
LinkedinOauthSetting.create!(:asecret => asecret, :atoken => atoken, :user_id =>
redirect_to "/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment