B2SHARE's B2ACCESS OAuth2 implementation don't support %-sign in client secret. The problem is b2access_basic_auth variable, where client secret has not been encoded properly. Added urllib.parse.quote function to encode client secret.
Added Content-Type header for good practice. The header can also be found in flask-oauthlib/client.py line 666. B2SHARE implementation overrides these functionalities and thus the header is not automatically added.
B2ACCESS test server has been changed to integration B2ACCESS server due to removal of old test server. Changed server address to B2SHARE config.py file.
B2SHARE's B2ACCESS OAuth2 implementation don't support %-sign in client secret. The problem is
b2access_basic_auth
variable, where client secret has not been encoded properly. Addedurllib.parse.quote
function to encode client secret.Added
Content-Type
header for good practice. The header can also be found in flask-oauthlib/client.py line 666. B2SHARE implementation overrides these functionalities and thus the header is not automatically added.B2ACCESS test server has been changed to integration B2ACCESS server due to removal of old test server. Changed server address to B2SHARE config.py file.
closes #1868 , closes #1867