diff options
author | Logan Hunt <logan.hunt@usu.edu> | 2023-01-31 17:01:02 -0700 |
---|---|---|
committer | Logan Hunt <logan.hunt@usu.edu> | 2023-01-31 17:01:02 -0700 |
commit | f05daabe0d5eed26d18579e6c17a3631d48be30d (patch) | |
tree | 39ad9ffa62bd90f6378105f33eef19e1ebcef7f3 /lib/chessh/web | |
parent | 387ac72d1bdf44f882f3f1ae23b9415884234cbe (diff) | |
download | chessh-f05daabe0d5eed26d18579e6c17a3631d48be30d.tar.gz chessh-f05daabe0d5eed26d18579e6c17a3631d48be30d.zip |
Incorrect server redirection uri fix
Diffstat (limited to 'lib/chessh/web')
-rw-r--r-- | lib/chessh/web/web.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chessh/web/web.ex b/lib/chessh/web/web.ex index 067a27c..7b2f696 100644 --- a/lib/chessh/web/web.ex +++ b/lib/chessh/web/web.ex @@ -32,7 +32,7 @@ defmodule Chessh.Web.Endpoint do case :httpc.request( :post, {String.to_charlist(discord_login_url), [], 'application/x-www-form-urlencoded', - 'scope=#{discord_scope}&client_id=#{client_id}&client_secret=#{client_secret}&code=#{req_token}&grant_type=authorization_code&redirect_uri=#{redirect_uri}'}, + 'scope=#{discord_scope}&client_id=#{client_id}&client_secret=#{client_secret}&code=#{req_token}&grant_type=authorization_code&redirect_uri=http://127.0.0.1:3000/api/oauth/redirect'}, [], [] ) do @@ -214,7 +214,7 @@ defmodule Chessh.Web.Endpoint do :discord_client_secret, :discord_user_api_url, :discord_user_agent, - :client_redirect_after_successful_sign_in + :server_redirect_uri ], fn key -> Application.get_env(:chessh, Web)[key] end ) |