【发布时间】:2016-04-07 21:59:50
【问题描述】:
我已经开始学习 Spring Security (Oauth2)。我有一个受 Spring Oauth2 保护的 REST API 服务。我想要做的是,我想将授权服务器和资源服务器分开,例如,
并且 资源 http://server1:8080/RESTTest/api/users/?access_token=2cf682c6-2900-47dc-a468-441fcee0dc18
我想要的是,
授权:http://Server1:8080/authorizationserver /oauth/token/grant_type=client_credentials&client_id=clientt&client_secret=secret
资源: http://server2:8080/RESTTest/api/users/?access_token=2cf682c6-2900-47dc-a468-441fcee0dc18
我正在使用 JDBCTokenstore。我不确定如何将其分开。有人能帮我吗。
谢谢,
【问题讨论】:
-
你找到方法了吗?我需要做同样的事情,现在我找到了这个hascode.com/2016/03/…
标签: java spring oauth-2.0 spring-security-oauth2