Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to use "oauth2" (version 2.0.0) #66

Closed
Exadra37 opened this issue Apr 17, 2020 · 1 comment
Closed

Failed to use "oauth2" (version 2.0.0) #66

Exadra37 opened this issue Apr 17, 2020 · 1 comment

Comments

@Exadra37
Copy link

Thanks for your work on this library :)

I am currently implementing several strategies and this one is the second, but is conflicting with the Github one:

mix deps.get
Resolving Hex dependencies...

Failed to use "oauth2" (version 2.0.0) because
  ueberauth_github (version 0.8.0) requires ~> 1.0 or ~> 2.0
  ueberauth_gitlab (version 0.1.0) requires ~> 0.8.2
  mix.lock specifies 2.0.0

** (Mix) Hex dependency resolution failed, change the version requirements of your dependencies or unlock them (by using mix deps.update or mix deps.unlock). If you are unable to resolve the conflicts you can try overriding with {:dependency, "~> 1.0", override: true}

And adding {:oauth2, "~> 2.0", override: true} to mix.exs solves the conflict, but then I get this error on an Authentication:

 %{
  current_user: nil,
  ueberauth_failure: %Ueberauth.Failure{
    errors: [
      %Ueberauth.Failure.Error{
        message: "An undefined error occured",
        message_key: "OAuth2"
      }
    ],
    provider: :gitlab,
    strategy: Ueberauth.Strategy.Gitlab
  }
}
@Exadra37
Copy link
Author

Closing as this is not the correct repo for the issue. Got confused because the names are the same in Github. So the correct repo is https://github.com/gballet/ueberauth_gitlab, and as you can see only the developer is different, but I noticed the slight difference in names from https://hexdocs.pm/ueberauth_gitlab/api-reference.html for gballet when compared with yours https://hexdocs.pm/ueberauth_gitlab_strategy/api-reference.html.

Anyway I am trying to use now your repo, but also running in issues, but will be a matter for another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant