Class: OmniAuth::Strategies::Amtd
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Amtd
- Defined in:
- lib/omniauth/strategies/td_ameritrade.rb
Instance Method Summary collapse
Instance Method Details
#callback_url ⇒ Object
34 35 36 |
# File 'lib/omniauth/strategies/td_ameritrade.rb', line 34 def callback_url full_host + script_name + callback_path end |
#client ⇒ Object
25 26 27 28 |
# File 'lib/omniauth/strategies/td_ameritrade.rb', line 25 def client combined_client_id = "#{.client_id}@AMER.OAUTHAP" ::OAuth2::Client.new(combined_client_id, .client_secret, deep_symbolize(.)) end |
#raw_info ⇒ Object
30 31 32 |
# File 'lib/omniauth/strategies/td_ameritrade.rb', line 30 def raw_info @raw_info ||= access_token.get("/v1/accounts").parsed end |