when using OAUTH2 as STORAGE_API with use of credentials such as client_id, client_secret etc, access_token is first fetched and further requests use fetched token to perform request until it expires.
regex used to parse response and get access_token had an extra trailing space, which is not present in response causing amanda to not parse it hence sending empty access_token i.e Authorization : Bearer (null).
this fixes parsing, further enables users using OAUTH2 as authentication mechanism.
fixes #214.
Changes:
Fix regex's parsing response to get valid set of credentials
[x] Testing Changes.
[x] account of no or more trailing space in regex's
[ ] make setting HTTP requests to 1.1 if user wishes to, by allowing settings another configuration in .conf
when using
OAUTH2
as STORAGE_API with use of credentials such asclient_id
,client_secret
etc,access_token
is first fetched and further requests use fetched token to perform request until it expires.regex used to parse response and get
access_token
had an extra trailing space, which is not present in response causing amanda to not parse it hence sending emptyaccess_token
i.eAuthorization : Bearer (null)
.this fixes parsing, further enables users using
OAUTH2
as authentication mechanism.fixes #214.
Changes:
Fix regex's parsing response to get valid set of credentials
[x] Testing Changes.
[x] account of no or more trailing space in regex's
[ ] make setting HTTP requests to 1.1 if user wishes to, by allowing settings another configuration in .conf