Skip to content

Commit

Permalink
use elixir_auth_google 1.1, #1 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonLab committed Feb 17, 2020
1 parent 3c065c8 commit 72d883c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/auth_mvp_web/controllers/auth_url_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule AuthMvpWeb.AuthUrlController do

def index(conn, _params) do
referer = get_referer(conn)
google_url = ElixirAuthGoogle.generate_oauth_url(conn) <> "&state=#{referer}"
google_url = ElixirAuthGoogle.generate_oauth_url(conn, referer)
github_url = ElixirAuthGithub.login_url(%{scope: ["user:email"], state: referer})

urls = [%{url: google_url, type: "google"}, %{url: github_url, type: "github"}]
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ defmodule AuthMvp.MixProject do
{:jason, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
{:cors_plug, "~> 2.0"},
{:elixir_auth_google, "~> 1.0"},
{:elixir_auth_google, "~> 1.1"},
{:elixir_auth_github, "~> 1.1"}
]
end
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"ecto": {:hex, :ecto, "3.3.3", "0830bf3aebcbf3d8c1a1811cd581773b6866886c012f52c0f027031fa96a0b53", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "12e368e3c2a2938d7776defaabdae40e82900fc4d8d66120ec1e01dfd8b93c3a"},
"ecto_sql": {:hex, :ecto_sql, "3.3.4", "aa18af12eb875fbcda2f75e608b3bd534ebf020fc4f6448e4672fcdcbb081244", [:mix], [{:db_connection, "~> 2.2", [hex: :db_connection, repo: "hexpm", optional: false]}, {:ecto, "~> 3.4 or ~> 3.3.3", [hex: :ecto, repo: "hexpm", optional: false]}, {:myxql, "~> 0.3.0", [hex: :myxql, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.15.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "5eccbdbf92e3c6f213007a82d5dbba4cd9bb659d1a21331f89f408e4c0efd7a8"},
"elixir_auth_github": {:hex, :elixir_auth_github, "1.1.0", "7cc0e88395d41e3062ba06acfab6990172e66017ac0d367b9130ac20bed255b3", [:mix], [{:httpoison, "~> 1.6.2", [hex: :httpoison, repo: "hexpm", optional: false]}, {:poison, "~> 4.0.1", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm", "b0a72250186d46ce59bf947addfb087904a1ad14fece59126af83f497c0aec2b"},
"elixir_auth_google": {:hex, :elixir_auth_google, "1.0.3", "e05668195ab895d36acb4def62fd1b75116303ed6a223e8b83d2a023782dd5ea", [:mix], [{:httpoison, "~> 1.6.2", [hex: :httpoison, repo: "hexpm", optional: false]}, {:poison, "~> 4.0.1", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm", "12fff0e11b1c70c24adf537e5cf16a060c08a68f8eb2893b9e13af17359a0c3f"},
"elixir_auth_google": {:hex, :elixir_auth_google, "1.1.0", "f7b4df39e6c9d8864992de9dc1d7b10566927d6e678eecec6790485021b128b5", [:mix], [{:httpoison, "~> 1.6.2", [hex: :httpoison, repo: "hexpm", optional: false]}, {:poison, "~> 4.0.1", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm", "2b99212d14bb992f126b866fb4674deedd2c6f9d270aec383e82c8065371ac60"},
"file_system": {:hex, :file_system, "0.2.8", "f632bd287927a1eed2b718f22af727c5aeaccc9a98d8c2bd7bff709e851dc986", [:mix], [], "hexpm", "97a3b6f8d63ef53bd0113070102db2ce05352ecf0d25390eb8d747c2bde98bca"},
"gettext": {:hex, :gettext, "0.17.4", "f13088e1ec10ce01665cf25f5ff779e7df3f2dc71b37084976cf89d1aa124d5c", [:mix], [], "hexpm", "3c75b5ea8288e2ee7ea503ff9e30dfe4d07ad3c054576a6e60040e79a801e14d"},
"hackney": {:hex, :hackney, "1.15.2", "07e33c794f8f8964ee86cebec1a8ed88db5070e52e904b8f12209773c1036085", [:rebar3], [{:certifi, "2.5.1", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "6.0.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.5", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm", "e0100f8ef7d1124222c11ad362c857d3df7cb5f4204054f9f0f4a728666591fc"},
Expand Down

0 comments on commit 72d883c

Please sign in to comment.