Added a scope option to the authentication process