简体   繁体   English

元组 {:option, :server_only, :honor_cipher_order} 由于错误原因从 OAuth2 package 返回

[英]Tuple {:option, :server_only, :honor_cipher_order} being returned for error reason from OAuth2 package

The Phoenix application I'm supporting has OAuth authentication using two different authentication servers.我支持的 Phoenix 应用程序使用两个不同的身份验证服务器进行 OAuth 身份验证。 Mysteriously, only in my development environment they have begun exhibiting unexpected behaviour.神秘的是,只有在我的开发环境中,它们才开始表现出意想不到的行为。

The code uses the OAuth2 hex package for authentication.该代码使用OAuth2 十六进制 package进行身份验证。

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.当尝试通过OAuth2.Client.get_token/1获取令牌时,将返回一个错误,原因是元组而不是字符串。 The value of the tuple is {:option, :server_only, :honor_cipher_order} .元组的值为{: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.任何帮助,将不胜感激。

Discovered that this was caused by https://github.com/benoitc/hackney/issues/591 following an upgrade on my machine to Erlang 22.1.发现这是由https://github.com/benoitc/hackney/issues/591在我的机器上升级到 Erlang 22.1 引起的。

Without having to downgrade your erlang version, try:无需降级您的 erlang 版本,请尝试:

mix deps.update hackney

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM