Skip to content

Commit

Permalink
add debug statements for #57
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Apr 29, 2020
1 parent 2e60531 commit 6801da1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/auth_web/controllers/auth_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ defmodule AuthWeb.AuthController do
All other failure conditions return a 0 (zero) which results in a 401.
"""
def get_client_secret_from_state(state) do
IO.inspect(state, label: "state:94")
query = URI.decode_query(state)
IO.inspect(query, label: "query")
IO.inspect(query, label: "query:96")
client_id = Map.get(query, "auth_client_id")
IO.inspect(client_id, label: "client_id")
case not is_nil(client_id) do
Expand Down
2 changes: 1 addition & 1 deletion lib/auth_web/controllers/page_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule AuthWeb.PageController do
end

def append_client_id(ref, client_id) do
ref <> "&client_id=" <> client_id
ref <> "?auth_client_id=" <> client_id
end

def get_referer(conn) do
Expand Down

0 comments on commit 6801da1

Please sign in to comment.