Implement OAuth hook to get userid from username

Implements hook from Ie17cacd68452ffea808d63b3d5b74078577c75be

Change-Id: Ib29dbb32e1e43c24416f2b2149f147248fea074b
Merge "Implement OAuth hook to get userid from username"