Adjusted auth method to accept params.
Store client id and secret internally.