【问题标题】:PCF App to App Oauth 2 grant_type = 'client_credentials' and scope uaa.resources. Local testingPCF App to App Oauth 2 grant_type = 'client_credentials' 和范围 uaa.resources。本地测试
【发布时间】:2018-11-17 19:40:50
【问题描述】:

我在 PCF 上为 Oauth 2 创建了一个应用程序,其中 grant_type = 'client_credentials' 和范围 uaa.resources。如何在不调用实际 URL 的情况下在本地测试它?

【问题讨论】:

    标签: java oauth oauth-2.0 cloud spring-security-oauth2


    【解决方案1】:

    可以通过两种方式进行测试:

    1. 使用 Postman Oauth 2.0 Flow
    2. 使用 jwt.io

    获得令牌后,将其传递到端点,您将能够访问服务并能够看到 json 对象。

    (Eurekha也可以用来测试)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-04
      • 1970-01-01
      • 2020-05-26
      • 1970-01-01
      • 2016-07-01
      • 1970-01-01
      相关资源
      最近更新 更多