Answer the question
In order to leave comments, you need to log in
How to authenticate with a pair of cryptographic keys in Laravel?
Hello.
I want to make authentication based on asymmetric encryption in a Laravel project - no mail and passwords - just give the user a private key, and store the public key in the database. Well, or through pass-phrase to somehow implement, that's not the point.
I'm new to Laravel - I don't know where to even start with this.
Maybe there are ready-made solutions?
In general, I will be glad to any advice.
Thank you.
Answer the question
In order to leave comments, you need to log in
I don’t know ready-made solutions, but all this can be done by rewriting the logic yourself. To do this, it is enough to override all methods from AuthenticatesUsers in the LoginController controller and add the create and validator methods to RegisterController. Thus, you can exclude the login password check and write your own authorization logic for the token.
For example: https://tighten.co/blog/creating-a-password-less-m...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question