class OmniAuth::Strategies::Linear

Public Instance Methods

authorize_params() click to toggle source
Calls superclass method
# File lib/omniauth/strategies/linear.rb, line 22
def authorize_params
  super.tap do |params|
    %w[client_options].each do |v|
      if request.params[v]
        params[v.to_sym] = request.params[v]
      end
    end
  end
end
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