protected override bool OnAuthenticationRequested(BaseAuthenticationInfo info, IIPCameraClient client) { Log.Write("Authentication requested."); if (info.AuthName != "admin") { return(false); } var success = CheckPassword(info, "admin"); return(success); }
public static BaseAuthenticationInfo LocateService() { BaseAuthenticationInfo authInfornation = null; authInfornation = LocateOpenIdResponse(); if (authInfornation == null) { authInfornation = LocateFacebookResponse(); } if (authInfornation == null) { authInfornation = LocateLinkedinResponse(); } if (authInfornation == null) { authInfornation = LocateTwitterResponse(); } return(authInfornation); }
protected override bool OnAuthenticationRequested(BaseAuthenticationInfo info, IIPCameraClient client) { Log.Write("Authentication requested."); if (info.AuthName != "admin") return false; var success = CheckPassword(info, "admin"); return success; }