简体   繁体   English

使用Spring Security保护Android应用程序的Rest API

[英]Securing rest API for android application using spring security

I am new to android and spring security. 我是Android和Spring Security的新手。 Could you please provide me and example where spring security framework is used. 您能否提供给我和使用Spring安全框架的示例。

My requirement once the user is authenticated he will be sent token and he needs to use that token for subsequent calls. 我的要求是,一旦用户通过身份验证,便会向他发送令牌,并且他需要将该令牌用于后续呼叫。

I strongly recommend you to follow this tutorial. 我强烈建议您遵循本教程。

http://technicalrex.com/2015/02/20/stateless-authentication-with-spring-security-and-jwt http://technicalrex.com/2015/02/20/stateless-authentication-with-spring-security-and-jwt

I was able to implement this token authentication in my company with only a bit of experience setting Spring Security platforms. 我仅凭少量设置Spring Security平台的经验就能在公司中实现此令牌认证。

It follows the JWT standard and it's very easy to understand. 它遵循JWT标准,非常容易理解。 I hope this would help you!! 希望对您有帮助!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM