I am moving our existing app from codeigniter to laravel api. In my electron app, I have username and password fields. I am able to post to my oauth login and get password grant tokens from my api using those fields (not email).
Some of my existing clients have LDAP as their login system. Currently, when they enter their username and password, our system binds to their LDAP server and validates against those values. How should I go about writing this functionality to my api?
I am new to this and I just want to have my electron app submit to my login on the server with username and password. Server needs to handle LDAP binding when necessary or just validate against my own users table. Should I use JWT instead?