Provide the username of the authenticated user in the callback. #9

Merged
merged 1 commit into from Jan 28, 2012

2 participants

@mogsie

This change makes it possible for the callback to provide
the username that was authenticated, avoiding the need to
parse the Authorization header again. How else would you
know who has logged in, so you can provide different levels
of access to different users.

Note, I have only used the digest code (since that's what I use)...

@mogsie mogsie Made it possible for the authenticated callback to provide
the username that was authenticated, avoiding the need to
parse the Authorization header again. How else would you
know who has logged in, so you can provide different levels
of access to different users.
6b70285
@gevorg gevorg merged commit e46d8fe into http-auth:master Jan 28, 2012
@gevorg
http-auth member

Thanks a lot!

I will add some unit tests and release it with next version.

Gevorg.

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