Skip to content

Commit

Permalink
fix oauth declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
mose committed Jan 4, 2016
1 parent f972520 commit 4400514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/web.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Web < Common
helpers do
def oauth_client
@_client ||= OAuth2::Client.new(
settings.configdata['oauth2_auth']['application_key'],
settings.configdata['oauth2_auth']['application_id'],
settings.configdata['oauth2_auth']['secret'],
:site => settings.configdata['oauth2_auth']['host']
)
Expand Down Expand Up @@ -57,7 +57,7 @@ def redirect_uri
when 'oauth2'

get '/login' do
logger.info redirect_uri
logger.info oauth_client
redirect oauth_client.auth_code.authorize_url(:redirect_uri => redirect_uri)
end

Expand Down

0 comments on commit 4400514

Please sign in to comment.