![]() |
token based Authentification with LDAP - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: token based Authentification with LDAP (/showthread.php?tid=66439) |
token based Authentification with LDAP - SirTom - 10-22-2016 Hello everybody, I hope, somebody can help me. For my past projects I always used Ion-Auth for the authentification. Now I start an new android webapp project. For the web-views I use Codeigniter and I want to implement the authentification with tokens. For this I get all user data from a ldap-server. The connection to the ldap-server works fine and I can authenticate direct by using sessions. Now I want to connect the Webapp. For this I sent the user und password to the server and receive a json string (JWT): PHP Code: $user = $_POST['userl']; The webapp will store the token in a sqlite database. Logout will clear the database. For the view calls I alway check the token: Code: decode($_POST['token'], 'secret_server_key'); Combined The workflow goes like
I hope, sombody can help me. Thanks Thomas |