thinktecture/Thinktecture.IdentityModel — pull request #10 by zlangner (2014-01-12 20:06:15+00:00)
Title: Update AuthenticationHandler.cs

If the principal has no claim for NameIdentifier the code fails because principal.FindFirst(ClaimTypes.NameIdentifier) equates to null and null has no value property. This same logic error happens in the next branch with "sub".