# oauth2-resource-owner-client-credentials **Repository Path**: bianmaba/oauth2-resource-owner-client-credentials ## Basic Information - **Project Name**: oauth2-resource-owner-client-credentials - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2018-01-18 - **Last Updated**: 2022-06-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 说明: 本示例使用客户端模式(client credentials),适用于自己的服务间的API对接 1.启动authorization-server 2.启动resource-server 3.启动web-application 测试1.访问:http://localhost:8082/user/1 通过ClientUserController中的Oauth2RestTemplate调用authorization-server的资源:http://localhost:8080/resource/user/1, web-application会通过Oauth2RestTemplate自动获取access_token(会自动传递clientid信息给authorization-server) 测试2.访问:http://localhost:8082/order/1 通过ClientUserController中的Oauth2RestTemplate调用resource-server的资源:http://localhost:8082/order/user/1, web-application会通过Oauth2RestTemplate从authorization-server自动获取access_token(会自动传递clientid信息给authorization-server)