如何使用数据库,Spring启动和Restful Web服务进行基本身份验证?

时间:2017-01-28 16:54:57

标签: spring spring-boot spring-security basic-authentication restful-authentication

我使用 Spring-boot,Spring Data JPA,基本身份验证和RESTFul webservices

完成了服务器端应用程序

当我从客户端应用程序(AngularJS)进行身份验证(登录 - http://localhost:8080/server-side/login或注销 - http://localhost:8080/server-side/logout时,它正在按预期工作。

但如果我为登录http://localhost:8080/server-side/login提供了错误的凭据,我的浏览器会要求输入登录凭据

但我希望它必须由我的应用程序处理而不是我的浏览器。

我按照教程http://websystique.com/spring-security/secure-spring-rest-api-using-basic-authentication/

进行了操作

0 个答案:

没有答案