首页 文章

使用Spring实现OAuth2服务器

提问于
浏览
0

我需要使用Spring实现Authorization服务器 .

我正在使用这个教程:http://websystique.com/spring-security/secure-spring-rest-api-using-oauth2/

但是作者将所需的资源和服务器放在同一个应用程序中 .

我需要的是一个Auth服务器来保存用户,autenticate和给令牌,资源必须在其他一些应用程序中,这样用户就可以获得一个令牌并在我的所有应用程序中使用它 .

如何更改上面的代码来实现这一目标?

1 回答

  • 0

    在本教程中,您使用Web服务来测试身份验证,而不是使用"localhost"尝试连接到网络计算机的另一台服务器的IP . 代替GET http://localhost:8080/SpringSecurityOAuth2Example/user/使用http:// Server_IP :8080 / SpringSecurityOAuth2Example / user /

相关问题