Skip to content

Commit

Permalink
Adds callback_url method to fix omniauth/omniauth-oauth2#81
Browse files Browse the repository at this point in the history
  • Loading branch information
johankok committed Aug 22, 2018
1 parent c46f6dd commit 06e0e50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/omniauth/strategies/timber_cantina.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class TimberCantina < OmniAuth::Strategies::OAuth2
}
end

def callback_url
full_host + script_name + callback_path
end

def raw_info
@raw_info ||= access_token.get('/api/v1/me.json').parsed
end
Expand Down

0 comments on commit 06e0e50

Please sign in to comment.