Source code found in the book "OWIN and Microsoft Katana 101" by Badrinarayanan Lakshmiraghavan