Duplicate foreign keys when renaming ASP.NET Identity tables
I am using asp.net identity for authentication and authorizationI have my User class:public class Usuario : IdentityUser<int, ApplicationUserLogin,ApplicationUserRole, ApplicationUserClaim> { }...
View ArticleMVC5 with simplememebership database model
i want to use my existing simplememebership database with my new MVC5 application for user membership , is it possible? or how can i migrate the database from my existing database the aspnet identity...
View ArticleUser.Identity.Name ="IIS Server user name instead client user name" IIS local...
Hi,I like to get client User.Identity.Name on our local network,we are using windows authentication.My web.confic<authentication mode="Windows" /> <authorization>...
View ArticleUsing On-Premises Authority without ADFS
I am finally trying out VS 2013 and love the new template options when creating a new project.But I have a question about On-Premises authentication. From what I read, it requires that you have FS...
View ArticleForms based authentication against an untrusted Active Directory.
I'm using this article: http://msdn.microsoft.com/en-us/library/ms998360.aspxWhen the user enters his user name and password, I query the AD domain controller with only port 389 or 636 open.The query...
View ArticleApplication_AuthorizeRequest Not Redirecting to specified web page
Hi,In my Global.asax.vb file, I have the following: Public Sub Application_AuthorizeRequest(sender As Object, e As EventArgs)...
View ArticleWindows Security Prompt is coming again and again when our users try to...
Hi All,I have hosted our Website with some custom URL in Windows Server 2012 R2 64 bit OS.To host the website with custom URL i have followed the steps provided in the below...
View ArticleASP.Net Identity 2.0 Can't Login after One user Logined
I use visual Studio 2013, ASP.Net Identity 2.0, Web Forms Application , I create simple Project Where Session["MySessionVariable"] value set in button click, after session is set I cannot to login in...
View ArticleSingle Sign on - Redirect to particular page
Hello All,I have a single sign appliction implemeneted in asp.net. This appliction posts the SAML assertion to the vendor sso url and the vendor sso url will authenticate and redirects to the end user...
View ArticleKey file in ProtectedData.Protect method
Im curious to know where actually the key file is getting stored when we are using the ProtectedData.Protect() method in the Cryptography namespace ? How is it accessing the key file in order to do the...
View ArticleIs there a way to tell browser don't save site authenication on local?
My site has a folder set with not allow anonymous request, all request need to be logon as domain user.So browser will popup a window to ask for username/password to proceed, my question is many...
View ArticleNoAccess web page pops up for authenticated users
Hi,I have restricted web pages for admin to manage users in my web app. In my web.config file, I have this:<location path="NoAccess.aspx"> <system.web> <authorization>...
View ArticleHow to access string before encryption in c#
Hi all I am encrypting a password on client side. I want to access it before encryption. How to do that. Below is my code, how I am encrypting the password. <script type="text/javascript"...
View ArticleFORM BASED AUTHENTICATION WITH DATABASE AND ASSIGNED ROLES
Below is my code .I have 3 columns in my database i.e 'UserName','Password','UserType'What I want to do is : if the usertype='admin' it will redirect to..aaa.aspx if...
View ArticleWhich is a better option bydefault login control or custom login option in...
I am creating a data driven website.Suggest which is a better option creating custom login or using by default Login control option in visual studio 2010 and microsoft sql server2005.
View ArticleCreating a website with users and administrator and how to set privileges and...
i am creating a website in which i need to create users of type administrator and user.I have to write a code which first identifies if the user is administrator or user.Based upon that redirect the...
View ArticleWhy are users losing their role assignment when DB is restored?
This is a follow-up to my earlier posting. I thought everything was working fine but today I learned that it was not.I performed a test today, which failed. Here's what occurred:My app is a C# /...
View ArticleCSRF - Anti Forgery Token in Web Forms
I am not sure if Anti Forgery Token is specific to ASP.NET MVC only.So, do we need (or can we use) Anti Forgery Token in ASP.NET Web Forms?If so, how do we implement it?Thanks
View ArticleQuestion Regarding Oauth
Hi,I created a new asp.net mvc 5 website where I am using asp.net identity to authenticate and authorize users. I am using my custom db here. This all works fine. Now I have been reading in many places...
View ArticleSecured Cookie not authenticated to Login
Hi,in my ASP.NET Applicaiton , i'm securing the cookie while logging in, but the cookies are autheticated, but the application is unable to login.i have specified the code in Application_EndRequest of...
View Article