Module: AuthlogicConnect::Oauth::Variables

Included in:
Process
Defined in:
lib/authlogic_connect/oauth/variables.rb

Instance Method Summary collapse

Instance Method Details

#oauth_consumerObject



22
23
24
# File 'lib/authlogic_connect/oauth/variables.rb', line 22

def oauth_consumer
  oauth_token.consumer
end

#oauth_keyObject



9
10
11
12
# File 'lib/authlogic_connect/oauth/variables.rb', line 9

def oauth_key
  return nil unless auth_controller
  oauth_version == 1.0 ? auth_params[:oauth_token] : auth_params[:code]
end

#oauth_providerObject



18
19
20
# File 'lib/authlogic_connect/oauth/variables.rb', line 18

def oauth_provider
  auth_session[:oauth_provider] || "facebook"
end

#oauth_responseObject

These are just helper variables



5
6
7
# File 'lib/authlogic_connect/oauth/variables.rb', line 5

def oauth_response
  auth_params && oauth_key
end

#oauth_tokenObject



26
27
28
# File 'lib/authlogic_connect/oauth/variables.rb', line 26

def oauth_token
  AuthlogicConnect.token(oauth_provider)
end

#oauth_versionObject



14
15
16
# File 'lib/authlogic_connect/oauth/variables.rb', line 14

def oauth_version
  oauth_token.oauth_version
end