updated stubs, added sample and testcase for reauthorization