Class: OmniAuth::Strategies::Sialog
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Sialog
- Defined in:
- lib/omniauth/strategies/sialog.rb
Overview
Sialog
Instance Method Summary collapse
Instance Method Details
#basic_auth_header ⇒ Object
39 40 41 |
# File 'lib/omniauth/strategies/sialog.rb', line 39 def basic_auth_header 'Basic ' + Base64.strict_encode64("#{[:client_id]}:#{[:client_secret]}") end |
#build_access_token ⇒ Object
34 35 36 37 |
# File 'lib/omniauth/strategies/sialog.rb', line 34 def build_access_token .token_params[:headers] = { Authorization: basic_auth_header } super end |
#callback_url ⇒ Object
30 31 32 |
# File 'lib/omniauth/strategies/sialog.rb', line 30 def callback_url full_host + script_name + callback_path end |
#raw_info ⇒ Object
26 27 28 |
# File 'lib/omniauth/strategies/sialog.rb', line 26 def raw_info @raw_info ||= access_token.get('/api/v1/user.json').parsed end |