Reputation: 257
I'm looking to build a Spring Boot REST API for an Android application. Some of user specific resources should be protected by 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.
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.
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.
So my question is - does any of You guys/girls have some links to guides that does this?
Thanks
Upvotes: 1
Views: 1931
Reputation: 136
Hope these will help:
Also You can go with JWT Auth tokens:
For more samples on Spring boot, You can refer following:
Best of luck.
Upvotes: 3