{"id":1163,"date":"2015-07-09T04:11:17","date_gmt":"2015-07-09T04:11:17","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=1163"},"modified":"2022-02-03T11:24:58","modified_gmt":"2022-02-03T17:24:58","slug":"roles-and-memerships-now-use-asp-net-identity-here-are-the-basics","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/","title":{"rendered":"Roles and Memerships now use ASP.NET Identity &#8211; here are the basics"},"content":{"rendered":"<p>First a question: Could this be made more difficult? I switched from VS 2012 to VS 2013 and the new system uses a whole different authentication engine. Once you get your head wrapped around roles and users in the new system it works the same for the individual web.config files in the directories to limit who can do what etc. We edit tables now and no longer use the web configurator tool. To just get going &#8230; look at the article with the *** below or <a href=\"http:\/\/www.asp.net\/web-forms\/overview\/getting-started\/getting-started-with-aspnet-45-web-forms\/membership-and-administrationv\" target=\"_blank\" rel=\"noopener noreferrer\">click &#8220;here&#8221;<\/a>.<\/p>\n<p>ASP.Net Identity introductions<\/p>\n<ul>\n<li><a href=\"http:\/\/typecastexception.com\/post\/2014\/04\/20\/ASPNET-MVC-and-Identity-20-Understanding-the-Basics.aspx\">http:\/\/typecastexception.com\/post\/2014\/04\/20\/ASPNET-MVC-and-Identity-20-Understanding-the-Basics.aspx<\/a><\/li>\n<li><a href=\"http:\/\/www.asp.net\/identity\/overview\/getting-started\/introduction-to-aspnet-identity\">http:\/\/www.asp.net\/identity\/overview\/getting-started\/introduction-to-aspnet-identity<\/a><\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>Migrating an old app<\/p>\n<ul>\n<li><a href=\"http:\/\/www.asp.net\/identity\/overview\/migrations\/migrating-an-existing-website-from-sql-membership-to-aspnet-identity\">http:\/\/www.asp.net\/identity\/overview\/migrations\/migrating-an-existing-website-from-sql-membership-to-aspnet-identity<\/a><\/li>\n<li><a href=\"http:\/\/anthonychu.ca\/post\/aspnet-identity-20---logging-in-with-email-or-username\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/anthonychu.ca\/post\/aspnet-identity-20&#8212;logging-in-with-email-or-username<\/a>\/<\/li>\n<li><a href=\"http:\/\/forums.asp.net\/t\/1948882.aspx?No+way+for+Administrator+to+Change+Password+\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/forums.asp.net\/t\/1948882.aspx?No+way+for+Administrator+to+Change+Password+<\/a><\/li>\n<li>MVC:\u00a0<a href=\"http:\/\/www.asp.net\/identity\/overview\/features-api\/account-confirmation-and-password-recovery-with-aspnet-identity\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.asp.net\/identity\/overview\/features-api\/account-confirmation-and-password-recovery-with-aspnet-identity<\/a><\/li>\n<li>Forms:\u00a0<a href=\"http:\/\/www.asp.net\/web-forms\/overview\/security\/create-a-secure-aspnet-web-forms-app-with-user-registration,-email-confirmation-and-password-reset\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.asp.net\/web-forms\/overview\/security\/create-a-secure-aspnet-web-forms-app-with-user-registration,-email-confirmation-and-password-reset<\/a><\/li>\n<\/ul>\n<p>Working with Roles:<\/p>\n<ul>\n<li><a href=\"http:\/\/www.codeproject.com\/Articles\/790720\/ASP-NET-Identity-Customizing-Users-and-Roles\">http:\/\/www.codeproject.com\/Articles\/790720\/ASP-NET-Identity-Customizing-Users-and-Roles<\/a><\/li>\n<\/ul>\n<p>Notes for NON MVC apps &#8211; most articles are for MVC &#8211; which is helpful &#8211; but lets get some for existing apps<\/p>\n<ul>\n<li>***\u00a0<a href=\"http:\/\/www.asp.net\/web-forms\/overview\/getting-started\/getting-started-with-aspnet-45-web-forms\/membership-and-administration\">http:\/\/www.asp.net\/web-forms\/overview\/getting-started\/getting-started-with-aspnet-45-web-forms\/membership-and-administration<\/a><\/li>\n<\/ul>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/23297712\/using-identity-and-roles-in-web-forms-in-asp-net-4-5-1\">http:\/\/stackoverflow.com\/questions\/23297712\/using-identity-and-roles-in-web-forms-in-asp-net-4-5-1<\/a><\/p>\n<p><a href=\"http:\/\/www.dotnetfunda.com\/articles\/show\/2898\/working-with-roles-in-aspnet-identity-for-mvc\">http:\/\/www.dotnetfunda.com\/articles\/show\/2898\/working-with-roles-in-aspnet-identity-for-mvc<\/a><\/p>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/19515890\/authentication-issue-when-debugging-in-vs2013-iis-express\">http:\/\/stackoverflow.com\/questions\/19515890\/authentication-issue-when-debugging-in-vs2013-iis-express<\/a><\/p>\n<p><a href=\"http:\/\/www.codeproject.com\/Articles\/762427\/ASP-NET-Identity-Setting-Up-Account-Validation-and\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.codeproject.com\/Articles\/762427\/ASP-NET-Identity-Setting-Up-Account-Validation-and<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>First a question: Could this be made more difficult? I switched from VS 2012 to VS 2013 and the new system uses a whole different authentication engine. Once you get your head wrapped around roles and users in the new system it works the same for the individual web.config files in the directories to limit [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1163","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Roles and Memerships now use ASP.NET Identity - here are the basics - ELB Solutions.com Inc.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Roles and Memerships now use ASP.NET Identity - here are the basics - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"First a question: Could this be made more difficult? I switched from VS 2012 to VS 2013 and the new system uses a whole different authentication engine. Once you get your head wrapped around roles and users in the new system it works the same for the individual web.config files in the directories to limit [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2015-07-09T04:11:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:24:58+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"Roles and Memerships now use ASP.NET Identity &#8211; here are the basics\",\"datePublished\":\"2015-07-09T04:11:17+00:00\",\"dateModified\":\"2022-02-03T17:24:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\\\/\"},\"wordCount\":235,\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\\\/\",\"name\":\"Roles and Memerships now use ASP.NET Identity - here are the basics - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2015-07-09T04:11:17+00:00\",\"dateModified\":\"2022-02-03T17:24:58+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Roles and Memerships now use ASP.NET Identity &#8211; here are the basics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Roles and Memerships now use ASP.NET Identity - here are the basics - ELB Solutions.com Inc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/","og_locale":"en_US","og_type":"article","og_title":"Roles and Memerships now use ASP.NET Identity - here are the basics - ELB Solutions.com Inc.","og_description":"First a question: Could this be made more difficult? I switched from VS 2012 to VS 2013 and the new system uses a whole different authentication engine. Once you get your head wrapped around roles and users in the new system it works the same for the individual web.config files in the directories to limit [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2015-07-09T04:11:17+00:00","article_modified_time":"2022-02-03T17:24:58+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"Roles and Memerships now use ASP.NET Identity &#8211; here are the basics","datePublished":"2015-07-09T04:11:17+00:00","dateModified":"2022-02-03T17:24:58+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/"},"wordCount":235,"articleSection":["General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/","url":"https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/","name":"Roles and Memerships now use ASP.NET Identity - here are the basics - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2015-07-09T04:11:17+00:00","dateModified":"2022-02-03T17:24:58+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/roles-and-memerships-now-use-asp-net-identity-here-are-the-basics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"Roles and Memerships now use ASP.NET Identity &#8211; here are the basics"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=1163"}],"version-history":[{"count":9,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1163\/revisions"}],"predecessor-version":[{"id":2737,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/1163\/revisions\/2737"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=1163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=1163"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=1163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}