Change access modifier for methods buildProfile and doAuth to public.

With this the user can implement it's own authentication flow and it is easier to test.