Skip to content

Commit

Permalink
Bugfix/#837 add http authorization (#848)
Browse files Browse the repository at this point in the history
* Bugfix
- Fix: format initialization without composer
- Fix: Readme

* Make HTTP_AUTHORIZATION possible
- To hold backward compatibility HTTP_AUTHORIZATION and HTTP_AUTHANTICATION are possible
  • Loading branch information
Hanisch-IT authored and chriskacerguis committed Sep 23, 2017
1 parent 870a288 commit 3a5ba0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/REST_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2034,7 +2034,7 @@ protected function _prepare_basic_auth()

// Returns NULL if the SERVER variables PHP_AUTH_USER and HTTP_AUTHENTICATION don't exist
$username = $this->input->server('PHP_AUTH_USER');
$http_auth = $this->input->server('HTTP_AUTHENTICATION');
$http_auth = $this->input->server('HTTP_AUTHENTICATION') ?: $this->input->server('HTTP_AUTHORIZATION');

$password = NULL;
if ($username !== NULL)
Expand Down

0 comments on commit 3a5ba0d

Please sign in to comment.