class OmniAuth::Strategies::Linear
Public Instance Methods
callback_url()
click to toggle source
# File lib/omniauth/strategies/linear.rb, line 62 def callback_url full_host + script_name + callback_path end
me()
click to toggle source
# File lib/omniauth/strategies/linear.rb, line 42 def me @me ||= begin client = Graphlient::Client.new(options.client_options.site, headers: { 'Authorization' => "Bearer #{access_token.token}" }, ) response = client.query <<~GRAPHQL query { viewer { id name email } } GRAPHQL response.data end end
raw_info()
click to toggle source
# File lib/omniauth/strategies/linear.rb, line 38 def raw_info @raw_info ||= {} end
request_phase()
click to toggle source
Calls superclass method
# File lib/omniauth/strategies/linear.rb, line 18 def request_phase super end