Closed tommilligan closed 1 year ago
Twitter supports both Confidential and Public clients for OAuth apps. Public clients do not require a client secret for use; see on this page, the "Confidential Clients" section: https://developer.twitter.com/en/docs/authentication/oauth-2-0/authorization-code
Currently, Oauth2Client requires a client secret for use, when this is not actually required by the underlying api.
Oauth2Client
This PR adds a new constructor, Oauth2Client::new_public, which maintaining the type signature of Oauth2Client::new for back-compatibility.
Oauth2Client::new_public
Oauth2Client::new
Twitter supports both Confidential and Public clients for OAuth apps. Public clients do not require a client secret for use; see on this page, the "Confidential Clients" section: https://developer.twitter.com/en/docs/authentication/oauth-2-0/authorization-code
Currently,
Oauth2Client
requires a client secret for use, when this is not actually required by the underlying api.This PR adds a new constructor,
Oauth2Client::new_public
, which maintaining the type signature ofOauth2Client::new
for back-compatibility.