[#70561992] Refactored client to let the authorization method be configu...

...rable for development