Class: OmniAuth::Strategies::Htc

Inherits:
Object
  • Object
show all
Includes:
OmniAuth::Strategy
Defined in:
lib/omniauth/strategies/htc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



23
24
25
# File 'lib/omniauth/strategies/htc.rb', line 23

def access_token
  @access_token
end

#expires_inObject

Returns the value of attribute expires_in.



23
24
25
# File 'lib/omniauth/strategies/htc.rb', line 23

def expires_in
  @expires_in
end

Instance Method Details

#callback_phaseObject



46
47
48
49
# File 'lib/omniauth/strategies/htc.rb', line 46

def callback_phase
  fetch_access_token request.params["code"]
  super
end

#request_phaseObject



42
43
44
# File 'lib/omniauth/strategies/htc.rb', line 42

def request_phase
  redirect sso_auth_uri.to_s
end