Sha256: bc14229c063fe6ec933764389960fbf4133c96b0439c27f16fbb2bcb6d055ec8

Contents?: true

Size: 381 Bytes

Versions: 1

Compression:

Stored size: 381 Bytes

Contents

require 'omniauth-oauth2'

module OmniAuth
  module Strategies
    class Heroku < OmniAuth::Strategies::OAuth2
      BaseAuthUrl = ENV["HEROKU_AUTH_URL"] || "https://id.heroku.com"

      option :client_options, {
        :site => BaseAuthUrl,
        :authorize_url => "#{BaseAuthUrl}/oauth/authorize",
        :token_url => "#{BaseAuthUrl}/oauth/token"
      }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
omniauth-heroku-0.1.1 lib/omniauth/strategies/heroku.rb