Getting username from basic auth header for access logs #1069

Merged
merged 1 commit into from Jul 8, 2015

Projects

None yet

2 participants

@brk0v
brk0v commented Jul 7, 2015

Logging Basic auth username to access log:

curl -u brk0v: -i -k https://api.example.com/v1/api-call

Logs:

127.0.0.1 - brk0v [07/Jul/2015:23:37:34 +0300] "GET /v1/api-call HTTP/1.1" 200 307 "-" "curl/7.21.3 libcurl/7.21.3"
@berkerpeksag berkerpeksag merged commit 5f3dc8e into benoitc:master Jul 8, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@berkerpeksag berkerpeksag added a commit that referenced this pull request Jul 8, 2015
@berkerpeksag berkerpeksag Adda test case for #1069. da37bcf
@berkerpeksag
Collaborator

Merged and added a test in da37bcf.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment