简体   繁体   English

PCF应用程式到应用程式Oauth 2 grant_type ='client_credentials'和范围uaa.resources。 本地测试

[英]PCF App to App Oauth 2 grant_type = 'client_credentials' and scope uaa.resources. Local testing

I have created an app on PCF for Oauth 2 with grant_type = 'client_credentials' and scope uaa.resources . 我已经在PCF上为Oauth 2创建了一个应用,具有grant_type = 'client_credentials'和作用域uaa.resources How do I test it in local without calling the actual URLs? 如何在不调用实际URL的情况下在本地进行测试?

It can be tested in 2 ways: 可以通过两种方式对其进行测试:

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

Once you get the token, pass it in the endpoint and you will be able to hit services and will be able to see json object. 获得令牌后,将其传递到端点,您将能够使用服务并能够看到json对象。

(Eurekha can also be used to test) (Eurekha也可以用来测试)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Oauth 2.0 与 grant_type=client_credentials? - Oauth 2.0 with grant_type=client_credentials? Spring Boot 2 Spring-Security 5 OAuth2 支持 client_credentials grant_type - Spring Boot 2 Spring-Security 5 OAuth2 support for client_credentials grant_type 身份验证流程中grant_type = client_credentials和grant_type = password之间的区别? - Difference between grant_type=client_credentials and grant_type=password in Authentication Flow? 如何在 Spring Boot Oauth2 授权服务器中 grant_type=client_credentials 时抛出错误凭据的任何异常 - How to throw any Exceptions for wrong credentials when grant_type=client_credentials in Spring Boot Oauth2 Authorization Server 使用授权类型“ client_credentials”时,OAuth2身份验证失败 - OAuth2 Authentication fails when using grant type “client_credentials” Spring OAuth2 客户端授权类型=密码示例 - Spring OAuth2 Client grant_type=password example 如何为我的OAuth2客户端实施client_credentials授予 - How do I implement the client_credentials grant for my OAuth2 Client Spring boot Oauth2 grant_type 密码总是返回 invalid_grant Bad Credentials - Spring boot Oauth2 grant_type password always return invalid_grant Bad Credentials Spring-Security-OAuth2中的grant_type - grant_type in Spring-Security-OAuth2 Spring Security oauth 2使用grant_type“ password”在TokenEndPoint上禁用客户端身份验证 - Spring Security oauth 2 Disable Client authentification on TokenEndPoint with grant_type “password”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM