Using ExOauth2Provider with Phx.Gen.Auth

Hello again everybody,

I was wondering if anybody here has had success using https://github.com/danschultzer/ex_oauth2_provider with https://github.com/aaronrenner/phx_gen_auth.

I spent 30 minutes today giving it a go but I have this mysterious error: MyAppWeb.PhoenixOauth2Provider.ApplicationController.init/1 is undefined (module not available) and I have other work to do so I’m leaving it for now.

I see in this tutorial: https://dreamconception.com/tech/phoenix-full-fledged-api-in-five-minutes/ that Pow works well with the Oauth2 lib and I’m hoping somebody here has similar success with phx_gen_auth and I can just steal your knowledge :slight_smile:

2 Likes

You might look at this https://github.com/danschultzer/phoenix_oauth2_provider/issues/37

1 Like

Thanks very much for the info.

I have decided to use a different technology for a disparate OAuth2 server because I need OpenID Connect.