Skip to content

Commit

Permalink
allow for null subject
Browse files Browse the repository at this point in the history
  • Loading branch information
brockallen committed Oct 30, 2014
1 parent d534033 commit 1328dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Core/Models/Token.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public string SubjectId
{
get
{
return Claims.Single(x => x.Type == Constants.ClaimTypes.Subject).Value;
return Claims.Where(x => x.Type == Constants.ClaimTypes.Subject).Select(x => x.Value).SingleOrDefault();
}
}

Expand Down

0 comments on commit 1328dc0

Please sign in to comment.