1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 ScribeJava 5.3.0 发布,简单的 OAuth Java 库 下载

Discussion in '软件资讯' started by 漂亮的石头, 2018-03-08.

  1. 漂亮的石头

    漂亮的石头 版主 Staff Member

    Joined:
    2012-02-10
    Messages:
    488,399
    Likes Received:
    48
    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 https://github.com/jhorowitz-firedrum)


    • remove 'final' from methods in OAuth[10a|20]Service to allow mocking it


    • fix Pinterest API (thanks to https://github.com/sschwieb)


    • add Yahoo2 API (thanks to https://github.com/javatestcase)


    • fix Tumblr urls, convert to https (thanks to https://github.com/highthunder)


    • 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>
    ScribeJava 5.3.0 发布,简单的 OAuth Java 库下载地址
     
Loading...