Skip to content

Commit

Permalink
Fix compatibility with omniauth-oauth2 v1.4+
Browse files Browse the repository at this point in the history
  • Loading branch information
pjg committed Jul 3, 2017
1 parent ebcb8f4 commit 97e76d6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/omniauth/strategies/drip.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
require 'omniauth-oauth2'
require "omniauth/strategies/oauth2"

module OmniAuth
module Strategies
class Drip < OmniAuth::Strategies::OAuth2

option :name, 'drip'

option :access_token_options, {
Expand Down Expand Up @@ -38,6 +37,10 @@ def user_info
def raw_info
@raw_info ||= JSON.parse(access_token.get("/v2/accounts").body)
end

def callback_url
full_host + script_name + callback_path
end
end
end
end
Expand Down

0 comments on commit 97e76d6

Please sign in to comment.