No I can not use the example becuase I use the new security model from MS called asp.net Identity. It's not possible to mix the two
forms authentication and asp.net Identity.
As far as I can see theere is not an easy way to handle security trimming in asp.net Identity
No I can not use the example becuase I use the new security model from MS called asp.net Identity. It's not possible to mix the two
forms authentication and asp.net Identity.
As far as I can see theere is not an easy way to handle security trimming in asp.net Identity
It's same as before. One thing that eveyone might have noticed that the “ASP.Net Web Configuration Manager” is no longer in Visual Studio 2013 Preview. This is due to the removal of the Visual Studio Development Server (or Cassini) from the product. However,
we understand that many people have gotten used to using the Tool, and so here are the steps by which you can still run the manager. Note that these instructions only work for sites running on the .NET Framework 4.0 and above.
Open the Command Prompt (not as administrator)
Navigate to the folder where IIS Express is installed on your machine.
In the command line spin up a IISExpress site with the following prompt: “iisexpress.exe /path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\ASP.NETWebAdminFiles /vpath:”/ASP.NETWebAdminFiles” /port:[port] /clr: 4.0 /ntlm” using the following values for
the [param]:
[port] – any port you have free in IISExpress (I use 8082 in the example below)
This should launch an IISExpress instance of the Configuration Manager Site<br/>
Open your browser
In the URL enter the following “http://localhost:8082/asp.netwebadminfiles/default.aspx?applicationPhysicalPath=[appPath]&applicationUrl=/” substituting the [appPath] with the absolute path to the Visual Studio Project folder with the solution file in it.
Secondly,
Visual Studio 2013 with Identity offers several authentication options for the Web Forms, MVC, and Web API templates:
If you select No Authentication, the sample application will contain no web pages for logging in, no UI indicating who is logged in, no entity classes for a membership database, and no connection string for a membership database.
Individual User Accounts
If you select Individual User Accounts, the sample application will be configured to use ASP.NET Identity (formerly known as ASP.NET membership) for user authentication. ASP.NET Identity enables a user to register an account, by creating
a username and password on the site or by signing in with social providers such as Facebook, Google, Microsoft Account, or Twitter. The default data store for user profiles in ASP.NET Identity is a SQL Server LocalDB database, which you can deploy to SQL
Server or Windows Azure SQL Database for the production site.
Organizational Accounts
If you select Organizational Accounts, the sample application will be configured to use Windows Identity Foundation (WIF) for authentication based on user accounts in Windows Azure Active Directory (WAAD, which includes Office 365) or
Windows Server Active Directory. For more information, see
Organizational account authentication options later in this topic.
Windows Authentication
If you select Windows Authentication, the sample application will be configured to use the Windows Authentication IIS module for authentication. The application will display the domain and user ID of the Active directory or local machine
account that is logged into Windows but won't include user registration or log-in UI. This option is intended for Intranet web sites.
Member
75 Points
540 Posts
security trimming when using asp.net Identity
Apr 04, 2014 04:13 PM|Tojo|LINK
Note I'm not using form authentication because I'm using the new security model that is called asp.net Identity.
Now to my question I have used security trimming before when I used forms authentication but when I now use asp.net identity it doen't work
to use the old way.
I just want to find out how to I use security trimming whwn I use asp.net Identity.
//tony
Member
465 Points
306 Posts
Re: security trimming when using asp.net Identity
Apr 04, 2014 04:53 PM|asif iqbal|LINK
please see the link below.
http://msdn.microsoft.com/en-us/library/ms178428.ASPX
- Asif
Member
75 Points
540 Posts
Re: security trimming when using asp.net Identity
Apr 04, 2014 07:01 PM|Tojo|LINK
No I can not use the example becuase I use the new security model from MS called asp.net Identity. It's not possible to mix the two
forms authentication and asp.net Identity.
As far as I can see theere is not an easy way to handle security trimming in asp.net Identity
//Tony
Star
10596 Points
1379 Posts
Re: security trimming when using asp.net Identity
Apr 11, 2014 06:08 AM|Sam - MSFT|LINK
Hi Tony,
It's same as before. One thing that eveyone might have noticed that the “ASP.Net Web Configuration Manager” is no longer in Visual Studio 2013 Preview. This is due to the removal of the Visual Studio Development Server (or Cassini) from the product. However, we understand that many people have gotten used to using the Tool, and so here are the steps by which you can still run the manager. Note that these instructions only work for sites running on the .NET Framework 4.0 and above.
Secondly,
Visual Studio 2013 with Identity offers several authentication options for the Web Forms, MVC, and Web API templates:
No Authentication
If you select No Authentication, the sample application will contain no web pages for logging in, no UI indicating who is logged in, no entity classes for a membership database, and no connection string for a membership database.
Individual User Accounts
If you select Individual User Accounts, the sample application will be configured to use ASP.NET Identity (formerly known as ASP.NET membership) for user authentication. ASP.NET Identity enables a user to register an account, by creating a username and password on the site or by signing in with social providers such as Facebook, Google, Microsoft Account, or Twitter. The default data store for user profiles in ASP.NET Identity is a SQL Server LocalDB database, which you can deploy to SQL Server or Windows Azure SQL Database for the production site.
Organizational Accounts
If you select Organizational Accounts, the sample application will be configured to use Windows Identity Foundation (WIF) for authentication based on user accounts in Windows Azure Active Directory (WAAD, which includes Office 365) or Windows Server Active Directory. For more information, see Organizational account authentication options later in this topic.
Windows Authentication
If you select Windows Authentication, the sample application will be configured to use the Windows Authentication IIS module for authentication. The application will display the domain and user ID of the Active directory or local machine account that is logged into Windows but won't include user registration or log-in UI. This option is intended for Intranet web sites.
For more information refer to the POST - http://forums.asp.net/t/1959601.aspx?Managing+access+to+folders+based+on+roles+in+asp+net+Identity+VS2013
Best Regards!