Class project exercising OAuth 2.0 and OpenId from PHP using raw HTTP