Class: OmniAuth::Strategies::HackCentral
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::HackCentral
- Defined in:
- lib/omniauth/strategies/hackcentral.rb
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/omniauth/strategies/hackcentral.rb', line 19 def super.tap do |params| %w[scope client_options].each do |v| if request.params[v] params[v.to_sym] = request.params[v] end end end end |
#callback_url ⇒ Object
29 30 31 |
# File 'lib/omniauth/strategies/hackcentral.rb', line 29 def callback_url [:redirect_uri] || super end |
#raw_info ⇒ Object
48 49 50 |
# File 'lib/omniauth/strategies/hackcentral.rb', line 48 def raw_info @raw_info ||= access_token.get("/api/v1/user").parsed end |
#request_phase ⇒ Object
15 16 17 |
# File 'lib/omniauth/strategies/hackcentral.rb', line 15 def request_phase super end |