1
我是Oauth的新手,我使用Spring Oauth2与xml 配置一起使用。从
http://www.beingjavaguys.com/2014/10/spring-security-oauth2-integration.html
Spring oauth2授权提供商
所以下面的URL所取出的参考,以获得令牌是
http://localhost:8080/SpringRestSecurityOauth/oauth/token?grant_type=password&client_id=restapp&client_secret=restapp&username=beingjavaguys&[email protected]
它给人的令牌reseponse。 所以在请求url中,client_id
在xml文件中被硬编码。我想在运行时发送clientId,grantType。 这里需要注意哪些事情。