Class: OmniAuth::Strategies::Eventbrite
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::Eventbrite
- Defined in:
- lib/omniauth/strategies/eventbrite.rb
Constant Summary collapse
- DEFAULT_RESPONSE_TYPE =
'code'- DEFAULT_GRANT =
'authorization_code'
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
24 25 26 27 28 29 |
# File 'lib/omniauth/strategies/eventbrite.rb', line 24 def super.tap do |params| params[:response_type] ||= DEFAULT_RESPONSE_TYPE params[:client_id] = client.id end end |
#raw_info ⇒ Object
54 55 56 |
# File 'lib/omniauth/strategies/eventbrite.rb', line 54 def raw_info @raw_info ||= access_token.get('/json/user_get').parsed['user'] end |
#request_phase ⇒ Object
18 19 20 21 22 |
# File 'lib/omniauth/strategies/eventbrite.rb', line 18 def request_phase [:response_type] ||= DEFAULT_RESPONSE_TYPE [:client_id] = client.id super end |
#token_params ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/omniauth/strategies/eventbrite.rb', line 31 def token_params super.tap do |params| params[:grant_type] ||= DEFAULT_GRANT params[:client_id] = client.id params[:client_secret] = client.secret end end |