search for: user_accounts_oauth_token

Displaying 1 result from an estimated 1 matches for "user_accounts_oauth_token".

2010 Sep 17
0
ruby's oauth2 grant_type
..._accounts_oauth(access_token, signed_in_resource) if @user.persisted? && @user.errors.empty? sign_in @user set_oauth_flash_message :notice, :success redirect_to after_oauth_success_path_for(@user) #=> redirects to user_root_path or root_path else session[:user_accounts_oauth_token] = access_token.token render_for_auth #=> renders sign up view by default end end end and from User model class User < ActiveRecord::Base devise :database_authenticatable, :oauthable def self.find_for_accounts_oauth(access_token, signed_in_resource=nil) data = ActiveSu...