简体   繁体   English

OAuth2保护的具有本地用户数据库和身份验证的Spring Boot REST Api

[英]OAuth2 protected Spring Boot REST Api with local user database and authentication

I'm looking to build a Spring Boot REST API for an Android application. 我正在寻找为Android应用程序构建Spring Boot REST API。 Some of user specific resources should be protected by OAuth2. 某些用户特定资源应受OAuth2保护。

My problem is - I don't wan't to use the social logins for my user authentication. 我的问题是-我不想使用社交登录信息进行用户身份验证。 I wan't to have my own user database (SQL) with my own user registration, that allows the user to login using username/password. 我不会使用自己的用户注册来拥有自己的用户数据库(SQL),该数据库允许用户使用用户名/密码登录。

I'm new to the Spring Boot world - but have been looking on quite a few examples online, and I can see that Spring has a lot of useful libraries for user handling and OAuth. 我是Spring Boot领域的新手,但是一直在网上查看许多示例,并且我可以看到Spring具有许多用于用户处理和OAuth的有用库。

But I can't seem to find some good examples that describes the proces of creating an Authentication Server that uses a local user database, and at the same time has an open user registration API. 但是我似乎找不到一些好的示例来描述创建使用本地用户数据库并同时具有开放用户注册API的身份验证服务器的过程。

So my question is - does any of You guys/girls have some links to guides that does this? 所以我的问题是-你们中的任何女孩/女孩是否都具有指向这样做的指南的链接?

Thanks 谢谢

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

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