I seem not to be able to wrap my head around this.. How can I read out the loginname that was used for http authentification using PHP, more specifically, cakePHP? I am using the Security Component of cakePHP.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Normally:
$_SERVER['PHP_AUTH_USER'];http://php.net/manual/en/features.http-auth.php
In Cake try this in the controller maybe:
$this->data['User']['username']http://book.cakephp.org/1.3/en/view/1261/login