SOAP-1820: Fixed the NPE in OAuth 2 parameter validation, SOAP-1832: Fixed backward compatibility for basic authentication types