2018年3月7日星期三

ScribeJava 5.3.0 发布,简单的 OAuth Java 库


Linuxeden 开源社区 --

ScribeJava 5.3.0 已发布,ScribeJava 是一个简单的 Java 实现的 OAuth/OAuth2 库。

示例代码:

OAuthService service = new ServiceBuilder()
          .apiKey(YOUR_API_KEY)
          .apiSecret(YOUR_API_SECRET)
          .build(LinkedInApi20.instance());

5.3.0 的 更新内容 主要是修复和添加各种 API:

  • fix Salesforce API (thanks to http://ift.tt/2G3u6NG)
  • remove ‘final’ from methods in OAuth[10a|20]Service to allow mocking it
  • fix Pinterest API (thanks to http://ift.tt/2Fq4BoI)
  • add Yahoo2 API (thanks to http://ift.tt/2G313K3)
  • fix Tumblr urls, convert to https (thanks to http://ift.tt/2FoFxP4)
  • fix: allow spaces in scope param in OAuth2Accesstoken response
  • add required param version to VK ВКонтакте (http://vk.com/) urls

源码下载:https://github.com/scribejava/scribejava/releases/tag/scribejava-5.3.0

使用

<dependency>
    <groupId>com.github.scribejava</groupId>
    <artifactId>scribejava-apis</artifactId>
    <version>5.3.0</version>
</dependency>

只使用核心类

<dependency>
    <groupId>com.github.scribejava</groupId>
    <artifactId>scribejava-core</artifactId>
    <version>5.3.0</version>
</dependency>

转自 http://ift.tt/2G5ilGz

The post ScribeJava 5.3.0 发布,简单的 OAuth Java 库 appeared first on Linuxeden开源社区.

http://ift.tt/2FrYX5i

没有评论:

发表评论