Class: OmniAuth::Strategies::GitBook

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/gitbook.rb

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



39
40
41
42
43
44
45
# File 'lib/omniauth/strategies/gitbook.rb', line 39

def authorize_params
  super.tap do |params|
    %w[response_type].each do |v|
      params[v.to_sym] = 'code'
    end
  end
end

#booksObject



35
36
37
# File 'lib/omniauth/strategies/gitbook.rb', line 35

def books
  @books ||= access_token.get('books').parsed
end

#raw_infoObject



31
32
33
# File 'lib/omniauth/strategies/gitbook.rb', line 31

def raw_info
  @raw_info ||= access_token.get('account').parsed
end

#request_phaseObject



47
48
49
# File 'lib/omniauth/strategies/gitbook.rb', line 47

def request_phase
  super
end