Sure thing, this is what it looks like:
GET /auth/github/callback
[debug] Processing with PowAssent.Phoenix.AuthorizationController.callback/2
Parameters: %{“code” => “13eec5f249e194d7085a”, “provider” => “github”, “state” => “9b20d1c24ade88cff3ee6fb38e1bc5e06daea3f33bf6b53”}
Pipelines: [:browser]
warning: This request will NOT be verified for valid SSL certificate
(assent) lib/assent/http_adapter/httpc.ex:22: Assent.HTTPAdapter.Httpc.request/5
(assent) lib/assent/strategy.ex:42: Assent.Strategy.request/5
(assent) lib/assent/strategies/oauth2.ex:222: Assent.Strategy.OAuth2.get_access_token/2
(assent) lib/assent/strategies/oauth2.ex:119: Assent.Strategy.OAuth2.callback/3
(assent) lib/assent/strategies/oauth2/base.ex:69: Assent.Strategy.OAuth2.Base.callback/3
(pow_assent) lib/pow_assent/plug.ex:74: PowAssent.Plug.callback/4
(pow_assent) lib/pow_assent/phoenix/controllers/authorization_controller.ex:44: PowAssent.Phoenix.AuthorizationController.process_callback/2
(pow) lib/pow/phoenix/controllers/controller.ex:99: Pow.Phoenix.Controller.action/3
(pow_assent) lib/pow_assent/phoenix/controllers/authorization_controller.ex:1: PowAssent.Phoenix.AuthorizationController.action/2
(pow_assent) lib/pow_assent/phoenix/controllers/authorization_controller.ex:1: PowAssent.Phoenix.AuthorizationController.phoenix_controller_pipeline/2
(phoenix) lib/phoenix/router.ex:288: Phoenix.Router.call/2
(my_app) lib/my_app_web/endpoint.ex:1: MyAppWeb.Endpoint.plug_builder_call/2
(my_app) lib/plug/debugger.ex:122: MyAppWeb.Endpoint.“call (overridable 3)”/2
(my_app) lib/my_app_web/endpoint.ex:1: MyAppWeb.Endpoint.call/2
(phoenix) lib/phoenix/endpoint/cowboy2_handler.ex:42: Phoenix.Endpoint.Cowboy2Handler.init/4
(cowboy) /Users/me/my_app/deps/cowboy/src/cowboy_handler.erl:41: :cowboy_handler.execute/2
(cowboy) /Users/me/my_app/deps/cowboy/src/cowboy_stream_h.erl:320: :cowboy_stream_h.execute/3
warning: This request will NOT be verified for valid SSL certificate
(assent) lib/assent/http_adapter/httpc.ex:22: Assent.HTTPAdapter.Httpc.request/5
(assent) lib/assent/strategy.ex:42: Assent.Strategy.request/5
(assent) lib/assent/strategies/oauth2.ex:256: Assent.Strategy.OAuth2.get/4
(assent) lib/assent/strategies/oauth2.ex:266: Assent.Strategy.OAuth2.get_user/3
(assent) lib/assent/strategies/github.ex:57: Assent.Strategy.Github.get_user/3
(assent) lib/assent/strategies/oauth2.ex:237: Assent.Strategy.OAuth2.fetch_user/3
(assent) lib/assent/strategies/oauth2/base.ex:69: Assent.Strategy.OAuth2.Base.callback/3
(pow_assent) lib/pow_assent/plug.ex:74: PowAssent.Plug.callback/4
(pow_assent) lib/pow_assent/phoenix/controllers/authorization_controller.ex:44: PowAssent.Phoenix.AuthorizationController.process_callback/2
(pow) lib/pow/phoenix/controllers/controller.ex:99: Pow.Phoenix.Controller.action/3
(pow_assent) lib/pow_assent/phoenix/controllers/authorization_controller.ex:1: PowAssent.Phoenix.AuthorizationController.action/2
(pow_assent) lib/pow_assent/phoenix/controllers/authorization_controller.ex:1: PowAssent.Phoenix.AuthorizationController.phoenix_controller_pipeline/2
(phoenix) lib/phoenix/router.ex:288: Phoenix.Router.call/2
(my_app) lib/my_app_web/endpoint.ex:1: MyAppWeb.Endpoint.plug_builder_call/2
(my_app) lib/plug/debugger.ex:122: MyAppWeb.Endpoint.“call (overridable 3)”/2
(my_app) lib/my_app_web/endpoint.ex:1: MyAppWeb.Endpoint.call/2
(phoenix) lib/phoenix/endpoint/cowboy2_handler.ex:42: Phoenix.Endpoint.Cowboy2Handler.init/4
warning: This request will NOT be verified for valid SSL certificate
(assent) lib/assent/http_adapter/httpc.ex:22: Assent.HTTPAdapter.Httpc.request/5
(assent) lib/assent/strategy.ex:42: Assent.Strategy.request/5
(assent) lib/assent/strategies/github.ex:70: Assent.Strategy.Github.get_email/4
(assent) lib/assent/strategies/oauth2.ex:237: Assent.Strategy.OAuth2.fetch_user/3
(assent) lib/assent/strategies/oauth2/base.ex:69: Assent.Strategy.OAuth2.Base.callback/3
(pow_assent) lib/pow_assent/plug.ex:74: PowAssent.Plug.callback/4
(pow_assent) lib/pow_assent/phoenix/controllers/authorization_controller.ex:44: PowAssent.Phoenix.AuthorizationController.process_callback/2
(pow) lib/pow/phoenix/controllers/controller.ex:99: Pow.Phoenix.Controller.action/3
(pow_assent) lib/pow_assent/phoenix/controllers/authorization_controller.ex:1: PowAssent.Phoenix.AuthorizationController.action/2
(pow_assent) lib/pow_assent/phoenix/controllers/authorization_controller.ex:1: PowAssent.Phoenix.AuthorizationController.phoenix_controller_pipeline/2
(phoenix) lib/phoenix/router.ex:288: Phoenix.Router.call/2
(my_app) lib/my_app_web/endpoint.ex:1: MyAppWeb.Endpoint.plug_builder_call/2
(my_app) lib/plug/debugger.ex:122: MyAppWeb.Endpoint.“call (overridable 3)”/2
(my_app) lib/my_app_web/endpoint.ex:1: MyAppWeb.Endpoint.call/2
(phoenix) lib/phoenix/endpoint/cowboy2_handler.ex:42: Phoenix.Endpoint.Cowboy2Handler.init/4
(cowboy) /Users/me/my_app/deps/cowboy/src/cowboy_handler.erl:41: :cowboy_handler.execute/2
(cowboy) /Users/me/my_app/deps/cowboy/src/cowboy_stream_h.erl:320: :cowboy_stream_h.execute/3
[debug] QUERY OK source=“user_identities” db=0.9ms decode=1.4ms queue=1.2ms idle=7355.3ms
SELECT u1.“id”, u1.“password_hash”, u1.“email”, u1.“inserted_at”, u1.“updated_at” FROM “user_identities” AS u0 LEFT OUTER JOIN “users” AS u1 ON u1.“id” = u0.“user_id” WHERE ((u0.“provider” = $1) AND (u0.“uid” = $2)) [“github”, “236820”]
[debug] QUERY OK db=0.2ms idle=7438.4ms
begin []
[debug] QUERY ERROR db=8.8ms
INSERT INTO “users” (“email”,“inserted_at”,“updated_at”) VALUES ($1,$2,$3) RETURNING “id” [“person@example.com”, ~N[2019-12-30 14:54:31], ~N[2019-12-30 14:54:31]]
[debug] QUERY OK db=0.1ms
rollback []
[info] Sent 302 in 2557ms
[info] GET /auth/github/add-user-id
[debug] Processing with PowAssent.Phoenix.RegistrationController.add_user_id/2
Parameters: %{“provider” => “github”}
Pipelines: [:browser]
[info] Sent 500 in 59ms
[error] #PID<0.496.0> running MyAppWeb.Endpoint (connection #PID<0.464.0>, stream id 8) terminated
Server: localhost:4000 (http)
Request: GET /auth/github/add-user-id
** (exit) an exception was raised:
** (UndefinedFunctionError) function MyAppWeb.PowAssent.RegistrationView.render/2 is undefined (module MyAppWeb.PowAssent.RegistrationView is not available)
MyAppWeb.PowAssent.RegistrationView.render(“add_user_id.html”, %{action: “/auth/github/create”, changeset: #Ecto.Changeset<action: nil, changes: %{}, errors: [password_hash: {“can’t be blank”, [validation: :required]}, password: {“can’t be blank”, [validation: :required]}, email: {“can’t be blank”, [validation: :required]}], data: #MyApp.Users.User<>, valid?: false>, conn: %Plug.Conn{adapter: {Plug.Cowboy.Conn, :…}, assigns: %{action: “/auth/github/create”, changeset: #Ecto.Changeset<action: nil, changes: %{}, errors: [password_hash: {“can’t be blank”, [validation: :required]}, password: {“can’t be blank”, [validation: :required]}, email: {“can’t be blank”, [validation: :required]}], data: #MyApp.Users.User<>, valid?: false>, current_user: nil, layout: {MyAppWeb.LayoutView, “app.html”}}, before_send: [#Function<0.61503622/1 in Plug.CSRFProtection.call/2>, #Function<2.10523259/1 in Phoenix.Controller.fetch_flash/2>, #Function<0.92191472/1 in Plug.Session.before_send/2>, #Function<0.40842786/1 in Plug.Telemetry.call/2>, #Function<0.105594227/1 in Phoenix.LiveReloader.before_send_inject_reloader/2>], body_params: %{}, cookies: …