Sha256: 83435d145d3a04d5bab3bf2db69aacb8375ad401d9c75322a425c18bc126ee69

Contents?: true

Size: 610 Bytes

Versions: 2

Compression:

Stored size: 610 Bytes

Contents

require 'omniauth-oauth2'
require 'multi_json'

module OmniAuth
  module Strategies
    class Pls < OmniAuth::Strategies::OAuth2
      option :name, 'pls'

      option :client_options, {
        site: 'https://www.myletterservice.org',
        authorize_url: '/oauth/authorize',
        token_url: '/oauth/token'
      }

      uid { raw_info['id'] }

      info do
        {}
      end

      extra do
        { 'raw_info' => raw_info }
      end

      def raw_info
        @raw_info ||= {}
      end

      def request_phase
        options.request_params ||= {}
        super
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omniauth-pls-0.0.2 lib/omniauth/strategies/pls.rb
omniauth-pls-0.0.1 lib/omniauth/strategies/pls.rb