Beispiel #1
0
        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);
        }
Beispiel #2
0
        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;
        }