dwyl / auth

🚪 🔐 UX-focussed Turnkey Authentication Solution for Web Apps/APIs (Documented, Tested & Maintained)
https://authdemo.fly.dev
GNU General Public License v2.0
135 stars 9 forks source link

Setup auth.dwyl.com subdomain #177

Closed nelsonic closed 2 years ago

nelsonic commented 2 years ago

Relates to #172 / #173

nelsonic commented 2 years ago

Configured the subdomain on Cloudflare: auth dwyl com-cloudflare-dns-config

Looks good: https://auth.dwyl.com/ image

But not yet fully working. image

Log: image

2022-02-07T09:39:10Z app[ba4a82f7] cdg [info]Server: auth.dwyl.com:80 (http)
2022-02-07T09:39:10Z app[ba4a82f7] cdg [info]Request: GET /auth/github/callback?code=code&state=https%3A%2F%2Fauth.dwyl.com%2Fprofile%3Fauth_client_id=id
2022-02-07T09:39:10Z app[ba4a82f7] cdg [info]** (exit) an exception was raised:
2022-02-07T09:39:10Z app[ba4a82f7] cdg [info]    ** (UndefinedFunctionError) function Mix.env/0 is undefined (module Mix is not available)
2022-02-07T09:39:10Z app[ba4a82f7] cdg [info]        Mix.env()
2022-02-07T09:39:10Z app[ba4a82f7] cdg [info]        (elixir_auth_github 1.6.0) lib/elixir_auth_github.ex:18: ElixirAuthGithub.inject_poison/0
2022-02-07T09:39:10Z app[ba4a82f7] cdg [info]        (elixir_auth_github 1.6.0) lib/elixir_auth_github.ex:65: ElixirAuthGithub.github_auth/1
2022-02-07T09:39:10Z app[ba4a82f7] cdg [info]        (auth 1.6.5) lib/auth_web/controllers/auth_controller.ex:136: AuthWeb.AuthController.github_handler/2
2022-02-07T09:39:10Z app[ba4a82f7] cdg [info]        (auth 1.6.5) lib/auth_web/controllers/auth_controller.ex:1: AuthWeb.AuthController.action/2
2022-02-07T09:39:10Z app[ba4a82f7] cdg [info]        (auth 1.6.5) lib/auth_web/controllers/auth_controller.ex:1: AuthWeb.AuthController.phoenix_controller_pipeline/2
2022-02-07T09:39:10Z app[ba4a82f7] cdg [info]        (phoenix 1.6.5) lib/phoenix/router.ex:355: Phoenix.Router.__call__/2
2022-02-07T09:39:10Z app[ba4a82f7] cdg [info]        (auth 1.6.5) lib/auth_web/endpoint.ex:1: AuthWeb.Endpoint.plug_builder_call/2

GOTO GitHub Auth Mix.env() Issue: https://github.com/dwyl/elixir-auth-github/issues/51 Cloudflare setup is complete. ✅