[#181][finished] generalized create authentication method
[#181][finished] updated tests for changed methods