janko / rodauth-omniauth

OmniAuth login and registration for Rodauth authentication framework
MIT License
48 stars 3 forks source link

Version dependency problems #8

Closed Tripple-A closed 1 year ago

Tripple-A commented 1 year ago

Hi, When trying to use the omniauth-google_oauth2 gem as stated in the documentation, along with the rodauth-omniauth gem. The following errors occur due to version dependencies of omniauth

Bundler could not find compatible versions for gem "omniauth":
  In snapshot (Gemfile.lock):
    omniauth (= 1.9.2)

  In Gemfile:
    omniauth-google_oauth2 (~> 0.1.5) was resolved to 0.1.5, which depends on
      omniauth (~> 1.0)

    rodauth-omniauth was resolved to 0.3.1, which depends on
      omniauth (~> 2.0)

A more compatible gem is this. If you would like to effect this change in the documentation, I don't mind updating it and creating a PR for it. Thanks

janko commented 1 year ago

Yes, if the docs don't already mention that rodauth-omniauth requires OmniAuth 2.0, it would be good to add it there, thanks!

janko commented 1 year ago

Updated in https://github.com/janko/rodauth-omniauth/pull/9.