I posted some steps on how I’ve integrated OAuth into my builds, hopefully this helps for your use case.