Skip to content

Commit

Permalink
Fixed oauth controller to use port in URI building
Browse files Browse the repository at this point in the history
  • Loading branch information
Ary Borenszweig committed Apr 18, 2017
1 parent 1e16d58 commit 562876c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/controllers/oauth_client_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ defmodule Ask.OAuthClientController do

error = if token == nil do
provider = Ask.Channel.provider(provider_name)
url = %URI{scheme: conn.scheme |> Atom.to_string, host: conn.host, path: conn.request_path} |> URI.to_string
url = %URI{scheme: conn.scheme |> Atom.to_string, host: conn.host, port: conn.port, path: conn.request_path} |> URI.to_string
access_token = provider.oauth2_authorize(code, url, base_url)

if access_token.other_params && access_token.other_params["error"] do
Expand Down

0 comments on commit 562876c

Please sign in to comment.