fixed bug with improper checking of client_type in authentication oauth provider methods