Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting username from basic auth header for access logs #1069

Merged
merged 1 commit into from
Jul 8, 2015

Conversation

brk0v
Copy link

@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
berkerpeksag added a commit that referenced this pull request Jul 8, 2015
@berkerpeksag
Copy link
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants