public void EmptyAuthTest() { var auth = new Authenticator(GetBackend()); var resp = auth.Authorize(new AuthRequest("", "")); Assert.Equal(Backend.GetName(), resp.BackendName); }
public void OauthAuthTest() { var auth = new Authenticator(GetBackend()); var resp = auth.Authorize(new AuthRequest("oAuthUser", "oAuthPass")); Assert.Equal(OAuthBackend.GetName(), resp.BackendName); }
public void ApiAuthTest() { var auth = new Authenticator(GetBackend()); var resp = auth.Authorize(new AuthRequest("apiUser", "apiPass")); Assert.Equal(ApiBackend.GetName(), resp.BackendName); }
public void LdapAuthTest() { var auth = new Authenticator(GetBackend()); var resp = auth.Authorize(new AuthRequest("ldapUsername", "ldapPassword")); Assert.Equal(LdapBackend.GetName(), resp.BackendName); }