java - Spring Boot Rest - User Login and Registration with database and LDAP -


i'm trying build spring boot rest api new project. want secure api before take on business logic.

this i'd achieve:

  • own database registered users stored

    it'll contain basic information queried ldap login name, given name, surname , email

  • authentication needs performed against ldap server

i thought having "/auth/register" endpoint, performs:

  • check authorization header credentials
  • authenticate against ldap
  • query user details ldap
  • write these details own database

after successful registration, user may login via "/auth/login" endpoint, check wether user exists in database , authenticate against ldap.

i have tried things out spring boot rest & security in last few days. however, i'm kinda confused spring magic going on under hood. examples i've found either hard way (like in regular jax-rs rest app) or configuration via xml. i'm unsure token mechanism use, jwt, oauth2 or custom implementation.

i'd love hear input on process , how can achieve given requirements


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

ios - Change Storyboard View using Seague -

verilog - Systemverilog dynamic casting issues -