Currently, the loop handling deletion of packages only attempts to retrieve an authentication token using basic authentication. If preferences have been set for client_id and client_secret, oauth should instead be used to get a token. This is handled using the added if/else block, which takes different actions based on configured preferences. The added block is identical to that found higher up on line 194 in this script.
Fixes #135
Currently, the loop handling deletion of packages only attempts to retrieve an authentication token using basic authentication. If preferences have been set for
client_id
andclient_secret
, oauth should instead be used to get a token. This is handled using the addedif/else
block, which takes different actions based on configured preferences. The added block is identical to that found higher up on line 194 in this script.