samedi 24 décembre 2016

Authentication using X.509 certificates in Laravel 5

I am working on Laravel (5.3) web app, where currently, there is only basic username/password login. I would like to add authorization using X.509 certificate for admin users, while still keeping the basic login for other users.

I do not have a lot of experience with this kind of authentication and even with PHP itself. I have read this post, but I have no idea of how to approach this in Laravel.

What I've tried so far is to generate self-signed certificate and add SSLCACertificateFile to apache config, with SSLVerifyClient optional, but now I am stuck and don't know how to move on. I know it's a lot to ask, but how can I do something like this? I would be glad for any resources or examples about this, so I can at least get moving again.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire