Someone on FPC mailing list implemented OAuth 2.0 and also OpenId4FPC. Check this topic for links:http://lists.freepascal.org/pipermail/fpc-pascal/2014-April/041619.html