OAuth1 package

xuanbao · · 682 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>tldr: See <a href="https://github.com/dghubble/oauth1">https://github.com/dghubble/oauth1</a> for OAuth1. It has a design similar to <a href="https://github.com/golang/oauth2">https://github.com/golang/oauth2</a>.</p> <p>Earlier this year, I hunted for an oauth1 package that provided a standard http.Client to handle authentication and had a design similar to Google&#39;s <a href="https://github.com/golang/oauth2">oauth2</a> package. An <a href="https://www.reddit.com/r/golang/comments/2ky01u/is_there_an_idiomatic_oauth_1_library/">earlier post</a> captures another redditor&#39;s dissatisfaction with existing packages.</p> <p>A few months ago I ended up writing such an oauth1 package for the Twitter and Digits Go APIs. I&#39;ve been using it for a while and recently improved its quality and test coverage to the point that I&#39;d like to share it. If you have any feedback or find any bugs, I&#39;d love to hear about it. Thanks!</p> <hr/>**评论:**<br/><br/>: <pre><p>[deleted]</p></pre>dghubble: <pre><p>Yes, mrjones did have a major rewrite a month ago. Still, I prefer the smaller API, structure, and better coverage of this implementation. Also authorization flow can be directly wrapped by an vanilla interface.</p> <p>I&#39;m unaware of a real world provider which still allows repeated key values or RSA signatures. In either case, I&#39;m open to adding support if a use case is found.</p> <p>I should allow the base round tripper to be configured as oauth2 does. I&#39;ll take that as an issue. Thanks.</p></pre>: <pre><p>[deleted]</p></pre>dghubble: <pre><p>Alright, an RSA signer will be added to support them.</p> <p>Looks like Xero public applications are already supported, while the private and partner apps use RSA.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

682 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传