Sha256: ee499e8a97ea5c31be2b532e0a19f0057bd9b6865e374f53321dec0972df4fe3

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

require 'omniauth-oauth2'
require 'multi_json'

module OmniAuth
  module Strategies
    class Dash < OmniAuth::Strategies::OAuth2
      option :name, 'dash'
      
      option :client_options, {
        :site => 'https://dash.by/',
        :authorize_url => 'https://dash.by/api/auth/authorize',
        :token_url => 'https://dash.by/api/auth/token'
      }
      
      def callback_url
        options[:callback_url] || super
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-dash-0.0.2 lib/omniauth/strategies/dash.rb