Class: OmniAuth::Strategies::GitBook
- Inherits:
-
OAuth2
- Object
- OAuth2
- OmniAuth::Strategies::GitBook
- Defined in:
- lib/omniauth/strategies/gitbook.rb
Instance Method Summary collapse
Instance Method Details
#authorize_params ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/omniauth/strategies/gitbook.rb', line 39 def super.tap do |params| %w[response_type].each do |v| params[v.to_sym] = 'code' end end end |
#books ⇒ Object
35 36 37 |
# File 'lib/omniauth/strategies/gitbook.rb', line 35 def books @books ||= access_token.get('books').parsed end |
#raw_info ⇒ Object
31 32 33 |
# File 'lib/omniauth/strategies/gitbook.rb', line 31 def raw_info @raw_info ||= access_token.get('account').parsed end |
#request_phase ⇒ Object
47 48 49 |
# File 'lib/omniauth/strategies/gitbook.rb', line 47 def request_phase super end |