[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-561865-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-561865-en":130,"doc-similar-561865":143},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","mimembershipprovider-class-myimpactmembershipprovider-membershipprovider-login-control-only","MIMembershipProvider - Class MyImpactMembershipProvider : MembershipProvider - Login control only","","Implements a custom CSLA-compatible membership provider by extending MembershipProvider. The core logic overrides ValidateUser to authenticate a fixed username via UserPrincipal.Login, then stores Csla.ApplicationContext.User in HttpContext.Current.Session under CslaPrincipal. All other abstract members required by MembershipProvider are intentionally not supported and throw NotSupportedException, indicating the provider is designed solely to support the Login control rather than full user-management operations.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/mimembershipprovider-class-myimpactmembershipprovider-membershipprovider-login-control-only/561865/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/mimembershipprovider-class-myimpactmembershipprovider-membershipprovider-login-control-only/561865.png","ImageObject",300,407,{"name":42,"@type":43},"Fans","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","text/plain","2026-12-04","2026-10-12",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What does the ValidateUser override do in this provider?","Question",{"text":62,"@type":63},"It authenticates using UserPrincipal.Login with a fixed username value, then writes Csla.ApplicationContext.User to HttpContext.Current.Session[\"CslaPrincipal\"]. It returns the login result.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"Why do most MembershipProvider methods throw NotSupportedException?",{"text":67,"@type":63},"Because the provider is intended for use with the Login control only. The remaining abstract members are required by the base class but are not needed for the targeted login scenario.",{"name":69,"@type":60,"acceptedAnswer":70},"Where is the authenticated user stored for later use?",{"text":71,"@type":63},"After successful validation, the code assigns Csla.ApplicationContext.User to HttpContext.Current.Session[\"CslaPrincipal\"].","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},561865,1791807117,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":22,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":79,"read_time":30,"preview_page_count":4},5909892330395,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Hi,\n\nI've made a class called MIMembershipProvider. Here is the code: \n\n1     class MyImpactMembershipProvider : MembershipProvider\n2        {\n3    \n4           public override bool ValidateUser(String username, String password)\n5            {\n6                String myusername = \"nrk16\";\n7                //username = \"nrk16\";    \n8                bool result = UserPrincipal.Login(myusername);\n9             \n10               HttpContext.Current.Session[\"CslaPrincipal\"] = Csla.ApplicationContext.User;\n11               return result;\n12           }\n13   \n14          #region Non-Implemented Members\n15   \n16          // the following members must be implemented due to the abstract class MembershipProvider,\n17          // but not required to be functional for using the Login control.\n18          public override bool ChangePassword(string username, string oldPassword, string newPassword)\n19          {\n20              throw new NotSupportedException(\"The method or operation is not implemented.\");\n21          }\n22   \n23          public override bool ChangePasswordQuestionAndAnswer(string username, string password, string newPasswordQuestion, string newPasswordAnswer)\n24          {\n25              throw new NotSupportedException(\"The method or operation is not implemented.\");\n26          }\n27   \n28          public override MembershipUser CreateUser(string username, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, object providerUserKey, out MembershipCreateStatus status)\n29          {\n30              throw new NotSupportedException(\"The method or operation is not implemented.\");\n31          }\n32   \n33          public override bool DeleteUser(string username, bool deleteAllRelatedData)\n34          {\n35              throw new NotSupportedException(\"The method or operation is not implemented.\");\n36          }\n37   \n38          public override bool EnablePasswordReset\n39          {\n40              get { throw new NotSupportedException(\"The method or operation is not implemented.\"); }\n41          }\n42   \n43          public override bool EnablePasswordRetrieval\n44          {\n45              get { throw new NotSupportedException(\"The method or operation is not implemented.\"); }\n46          }\n47   \n48          public override MembershipUserCollection FindUsersByEmail(string emailToMatch, int pageIndex, int pageSize, out int totalRecords)\n49          {\n50              throw new NotSupportedException(\"The method or operation is not implemented.\");\n51          }\n52   \n53          public override MembershipUserCollection FindUsersByName(string usernameToMatch, int pageIndex, int pageSize, out int totalRecords)\n54          {\n55              throw new NotSupportedException(\"The method or operation is not implemented.\");\n56          }\n57   \n58          public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords)\n59          {\n60              throw new NotSupportedException(\"The method or operation is not implemented.\");\n61          }\n62   \n63          public override int GetNumberOfUsersOnline()\n64          {\n65              throw new NotSupportedException(\"The method or operation is not implemented.\");\n66          }\n67   \n68          public override string GetPassword(string username, string answer)\n69          {\n70              throw new NotSupportedException(\"The method or operation is not implemented.\");\n71          }\n72   \n73          public override MembershipUser GetUser(string username, bool userIsOnline)\n74          {\n75              throw new NotSupportedException(\"The method or operation is not implemented.\");\n76          }\n77   \n78          public override MembershipUser GetUser(object providerUserKey, bool userIsOnline)\n79          {\n80              throw new NotSupportedException(\"The method or operation is not implemented.\");\n81          }\n82   \n83          public override string GetUserNameByEmail(string email)\n84          {\n85              throw","cbCaicxSmsAViZUM","https://ap.wps.com/l/cbCaicxSmsAViZUM","txt",7125,"English","# Custom membership provider\n## ValidateUser authentication flow\n## Session principal storage\n## Non-implemented MembershipProvider members","[{\"question\":\"What does the ValidateUser override do in this provider?\",\"answer\":\"It authenticates using UserPrincipal.Login with a fixed username value, then writes Csla.ApplicationContext.User to HttpContext.Current.Session[\\\"CslaPrincipal\\\"]. It returns the login result.\"},{\"question\":\"Why do most MembershipProvider methods throw NotSupportedException?\",\"answer\":\"Because the provider is intended for use with the Login control only. The remaining abstract members are required by the base class but are not needed for the targeted login scenario.\"},{\"question\":\"Where is the authenticated user stored for later use?\",\"answer\":\"After successful validation, the code assigns Csla.ApplicationContext.User to HttpContext.Current.Session[\\\"CslaPrincipal\\\"].\"}]","MIMembershipProvider - Class MyImpactMembershipProvider : MembershipProvider - Login control only | TXT",{"list":144,"token":11},[145,152,159,165,172,179,186,193,200,207],{"doc_id":146,"doc_title":147,"file_type":148,"home_preview_img_url":149,"slug":150,"view_count":127,"category_name":29,"create_tm":151},496752,"SAP ASE Security Administration Guide - Public - March 15 2015","pdf","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229929938737/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796407259&Signature=UYNcDo5GO2k4gbN7U8hfbiODnPY%3D","sap-ase-security-administration-guide-public-march-15-2015",1790939458,{"doc_id":153,"doc_title":154,"file_type":148,"home_preview_img_url":155,"slug":156,"view_count":157,"category_name":29,"create_tm":158},395888,"Customs Broker License Management System (CBLMS) - User Manual - Application for Renewal of Custom Pass on CBLMS Portal","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229918412913/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796407259&Signature=nlQCU8UXgcTKPEQhvfSVgakySwg%3D","customs-broker-license-management-system-cblms-user-manual-application-for-renewal-of-custom-pass-on-cblms-portal",29,1790425805,{"doc_id":160,"doc_title":161,"file_type":148,"home_preview_img_url":162,"slug":163,"view_count":105,"category_name":29,"create_tm":164},687122,"SAP Mobile Start - User Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001251243/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796407259&Signature=OXti01xo10bHw45XfVvYfGd%2FpKs%3D","sap-mobile-start-user-guide",1794081607,{"doc_id":166,"doc_title":167,"file_type":148,"home_preview_img_url":168,"slug":169,"view_count":170,"category_name":29,"create_tm":171},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796407259&Signature=CktOwBB3vV6bTRS%2BGi0umOYc%2BnQ%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",983,1785472614,{"doc_id":173,"doc_title":174,"file_type":148,"home_preview_img_url":175,"slug":176,"view_count":177,"category_name":29,"create_tm":178},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796407259&Signature=AS7rGfo3%2Bl8uoeeA6h4fqDnSdA8%3D","the-candlestick-trading-bible-trading-guide",873,1789767270,{"doc_id":180,"doc_title":181,"file_type":148,"home_preview_img_url":182,"slug":183,"view_count":184,"category_name":29,"create_tm":185},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796407259&Signature=iXFhEHC5WlexlMk%2F7JT09iS%2Fr1w%3D","xnx-universal-transmitter-installation-manual",869,1776135954,{"doc_id":187,"doc_title":188,"file_type":148,"home_preview_img_url":189,"slug":190,"view_count":191,"category_name":29,"create_tm":192},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796407259&Signature=2EOWjDEpn12RGBUR6e%2BNKKYgXrc%3D","free-fire-proxy-server",574,1776135932,{"doc_id":194,"doc_title":195,"file_type":148,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":29,"create_tm":199},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796407259&Signature=mV3YP7g3gLBcNsLdXhFDcjgOuEo%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",514,1786012506,{"doc_id":201,"doc_title":202,"file_type":148,"home_preview_img_url":203,"slug":204,"view_count":205,"category_name":29,"create_tm":206},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796407259&Signature=ajKQiXIsvI7iIOHhKAszZ%2BiEndw%3D","tiktok-content-tricks-from-0-to-fyp",500,1776338393,{"doc_id":208,"doc_title":209,"file_type":148,"home_preview_img_url":210,"slug":211,"view_count":212,"category_name":29,"create_tm":213},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796407259&Signature=V86Hj26jl5gpVLRMlFYU2yYt9AI%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",479,1790287169]