Moved the Create Provider method

Moved the Create Provider method to the authentication sample and
removed that method from the other samples.