This PR deprecates the following methods on the connector/request
withTokenAuth
withBasicAuth
withDigestAuth
withQueryAuth
withHeaderAuth
withCertificateAuth
I would like to deprecate these methods as they were originally introduced into v1 as a convenient helper method to quickly add auth to an existing connector or request, but I feel that it goes against Saloon’s re-usability pattern.
In my opinion, authentication should always be defined in the defaultAuth method of the connector or request however this auth can still be applied using the authenticate method.
This PR deprecates the following methods on the connector/request
withTokenAuth
withBasicAuth
withDigestAuth
withQueryAuth
withHeaderAuth
withCertificateAuth
I would like to deprecate these methods as they were originally introduced into v1 as a convenient helper method to quickly add auth to an existing connector or request, but I feel that it goes against Saloon’s re-usability pattern.
In my opinion, authentication should always be defined in the defaultAuth method of the connector or request however this auth can still be applied using the authenticate method.