The HydroShare object intends to allows a user to create a session using oauth credentials. However, HydroShareSession's constructor enforces username and password as positional/keyword arguments without a default (see below). So, this causes a HydroShare object to fail to construct when passing in oauth credentials as it does not specify a username or password.
Having already talked to @sblack-usu about this, the proposed solution is to make the username, password,client_id, andtokenparameters keyword only arguments with a default value ofNone`. Ill ref the PR that implements this solution and should close this issue here.
The
HydroShare
object intends to allows a user to create a session using oauth credentials. However,HydroShareSession
's constructor enforcesusername
andpassword
as positional/keyword arguments without a default (see below). So, this causes aHydroShare
object to fail to construct when passing in oauth credentials as it does not specify ausername
orpassword
.See source
Having already talked to @sblack-usu about this, the proposed solution is to make the
username
,password,
client_id, and
tokenparameters keyword only arguments with a default value of
None`. Ill ref the PR that implements this solution and should close this issue here.