Closed AlanMcCann closed 7 years ago
@AlanMcCann have you resolved this?
I have had a blocking bug in ueberauth that has stopped from getting back to this.
Thanks for the update @AlanMcCann, do you have an Issue on the Ueberauth repo I can peek at?
@doomspork Any help is appreciated - https://github.com/ueberauth/ueberauth/issues/43
I'm getting the same error but, I am not using uberauth..
I'm currently not running the sweeper and still getting this error. I'll try and reproduce in a clean repo and link it.
The error I'm getting:
** (exit) an exception was raised:
** (UndefinedFunctionError) function GuardianDb.before_encode_and_sign/3 is undefined (module GuardianDb is not available)
GuardianDb.before_encode_and_sign(%Admin{__meta__: }, nil, %{"aud" => "Admin:1", "exp" => 1487366827, "iat" => 1484774827, "iss" => "MyApp", "jti" => "_my_jti_", "pem" => %{}, "sub" => "Admin:1", "typ" => "access"})
(guardian) lib/guardian.ex:86: Guardian.encode_and_sign/3
(guardian) lib/guardian/plug.ex:117: Guardian.Plug.sign_in/4
(my_app) web/models/auth.ex:53: MyApp.Auth.build_authorization_payload/2
(my_app) web/models/auth.ex:5: MyApp.Auth.browser_login/2
(my_app) web/controllers/session_controller.ex:17: MyApp.SessionController.create/2
(my_app) web/controllers/session_controller.ex:1: MyApp.SessionController.action/2
(my_app) web/controllers/session_controller.ex:1: MyApp.SessionController.phoenix_controller_pipeline/2
I was able to solve this by adding guardian_db
and distillery
to my applications list. I could have sworn I had tried this previously but I guess not.
I created a example repo with steps to reproduce and the solution. I hope this helps @AlanMcCann *Example Reposistory: https://github.com/st23am/test_guardian_db_issue_29
Ah ha @st23am! Good catch. @AlanMcCann can you try adding guardian_db
to your applications list and see if that resolves the issue for you?
@doomspork Do you think the docs/README could be clarified for this? Would be happy to throw up a PR.
That would be a good idea @ybur-yug 👍
This should be resolved as of #44
did you manage to solve? give me the resolution please
@anasilva65 Did you see the docs added in #44
Mix server works fine for me whether in dev or prod environments.
However, when I create a release and execute it, I get the following error. I'm likely missing a config variable - ie. this is likely not a bug.
I have attached my app.ex and config.exs below (App name obfuscated)