public string Getkey()
        {
            var    getkey        = Request.Cookies["Authorization"];
            string validationKey = "9519CB28E5FDBD10FD7994FB3F6591789E31000D1F1A5C34343DB1297F5EF426DF3F436EFC0DA1F4C6F0D16EB7BA47422D57E79427B36036F4E52AA37446780E";
            string decryptionKey = "017942881237C93FE8440B4D245CA268377AAD569B872FA3BA63DF57EB8CEEFA";

            var ticket    = MachineKeyTicketUnprotector.UnprotectOAuthToken(getkey, decryptionKey, validationKey);
            var newTicket = AuthenticationTicketConverter.Convert(ticket, "UserInfo");
            var result    = AuthenticateResult.Success(newTicket);

            return(getkey);
        }
        public static byte[] UnProtect(byte[] data, params string[] purposes)
        {
            string validationKey  = "CA95473474DAA16A2E4B356439BB5AB4E8A375BDCB21BEC893DBF074F5E2B66332E2798F60FEF7823F5373CE717C524A6839A77663303DDE02E28366100E2F90";
            string decryptionKey  = "E851046E3A48F16CA03F56478B69E83411ECD1A67035B51F7798AC0FCF9ED153";
            string validation     = "SHA1";
            string decryption     = "AES";
            string primaryPurpose = "User.MachineKey.Protect";

            //public static readonly Purpose User_MachineKey_Protect = new Purpose("User.MachineKey.Protect"); // used by the MachineKey static class Protect / Unprotect methods
            //return MachineKeyTicketUnprotector.Unprotect(data, decryptionKey, validationKey, decryption, validation, primaryPurpose, purposes);
            return(MachineKeyTicketUnprotector.Unprotect(data, decryptionKey, validationKey, decryption, validation, primaryPurpose, purposes));
        }