schwarz / ueberauth_bnet

Ueberauth Strategy for Battle.net Login
MIT License
4 stars 6 forks source link

connect_timeout error in the callback phase #1

Closed kplattret closed 4 years ago

kplattret commented 4 years ago

Hi @schwarz and thank you for putting this strategy together, that's super helpful! I'm trying to implement it in a project but I keep getting a connect_timeout error during the callback phase and can't quite figure out what is going wrong.

The authorisation request seems to be fine but the subsequent access token request consistently returns this error (from the conn struct):

assigns: %{
    ueberauth_failure: %Ueberauth.Failure{
      errors: [
        %Ueberauth.Failure.Error{
          message: :connect_timeout,
          message_key: "OAuth2"
        }
      ],
      provider: :bnet,
      strategy: Ueberauth.Strategy.Bnet
    }
  }

Do you have any idea what could be going wrong here? I can see that the code in this package hasn't been update in a couple of years – could the API URLs be outdated?

kplattret commented 4 years ago

I actually found the issue so I'll submit a pull request directly. 🙂