Update Resource.php

Adding a boolean flag enabling the implementation to decide whether to drop support for query params. Passing true to isValid determines that the implementation has decided to only support the Authorization header.