OAuth2 client allows to override secrets

Implemented changes requested in issue #82, included test suite.