[英]How do I make a HTTP GET request to a Kerberos protected site using Elixir (or Erlang)?
Essentially I would like to do this ( Python ) but in Elixir: 本质上,我想这样做( Python ),但在Elixir中:
import requests
from requests_kerberos import HTTPKerberosAuth, OPTIONAL
kerberos_auth = HTTPKerberosAuth(mutual_authentication=OPTIONAL)
r = requests.get("http://example.org", auth=kerberos_auth)
I know I can just do : 我知道我可以做到 :
HTTPotion.get "http://example.org"
But I cannot find an example (with HTTPotion or any other Elixir library) that supports kerberos negotiation for Elixir (or Erlang) 但是我找不到一个示例(使用HTTPotion或任何其他Elixir库)来支持Elixir(或Erlang)的kerberos协商。
Is crafting a command line call of curl the only path forward? 编写curl的命令行调用是前进的唯一途径吗?
This library claims to support SPNEGO, which is what is required for kerberos based http. 该库声称支持SPNEGO,这是基于kerberos的http所必需的。 I have no idea how well it actually works. 我不知道它的实际效果如何。
https://github.com/mikma/egssapi https://github.com/mikma/egssapi
It's pretty old, but SPNEGO and kerberos API's haven't changed much in the last 7 years. 它已经很老了,但是SPNEGO和kerberos API在过去7年中变化不大。
As a general rule, unless the underlying library driving the web connection is libcurl, SPNEGO is not well supported in most languages. 通常,除非驱动Web连接的基础库是libcurl,否则大多数语言都不能很好地支持SPNEGO。 Java and C are pretty much it when it comes to robust working kerberos implementations; 就健壮的kerberos实现而言,Java和C差不多了。 the easier it is for the language to interact with those libraries, the more likely kerberos support will be available. 语言与这些库进行交互的越容易,就越有可能使用kerberos支持。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.