NancyFx/Nancy — pull request #1567 by khellang (2014-06-13 07:55:11+00:00)
Title: Added user mapping to Tokenizer

Fixes #1566

This PR adds an equivalent to the forms authentication `IUserMapper` to allow users to provide a custom `IUserIdentity` implementation.

I'm not sure that `IUserMapper` is the best name though, since this doesn't map a `Guid` to an identity, but rather just creates an identity based on username and claims.
Any suggestions? `IUserIdentityFactory`? `IUserIdentityProvider`? `IUserIdentityResolver`?