Check if a client is authorized