7

The Phoenix application I'm supporting has OAuth authentication using two different authentication servers. Mysteriously, only in my development environment they have begun exhibiting unexpected behaviour.

The code uses the OAuth2 hex package for authentication.

When an attempt is made to get a token via OAuth2.Client.get_token/1, an error is returned with a tuple rather than a string for the reason. The value of the tuple is {:option, :server_only, :honor_cipher_order}. I haven't been able to find out why this is happening nor what the tuple means.

Any help would be appreciated.

Keith Pitty
  • 1,068
  • 1
  • 7
  • 20

2 Answers2

5

Discovered that this was caused by https://github.com/benoitc/hackney/issues/591 following an upgrade on my machine to Erlang 22.1.

Keith Pitty
  • 1,068
  • 1
  • 7
  • 20
5

Without having to downgrade your erlang version, try:

mix deps.update hackney

btomtom5
  • 654
  • 6
  • 13