Seed data for roles
Hi guys. How can I use seed data to add always admin and user roles in a Asp.Net MVC project with Individual User Account. I have made the user part how I wanted, now I want to automatically create...
View ArticleWhy can I access secure page in protected folder with server.transfer?
I am redirected to login page when using the postbackurl attribute of linkbutton control while attempting to access secure page in folder with authorisation deny="*"If I use...
View ArticleWhere AspNet identity stores UserTokens?
I have ASP.Net MVC5 application. While creating application when you select Individual Authentication visual studio use scaffolding and adds code for Login, Create User, Forgot Password etc. I am using...
View ArticleLogin Page
Hello everyone,I created a simple web application that consists of several webforms. The initial startup page is Login.aspx and it has several controls (textboxes for username and password and buttons...
View ArticleHow to show profile icon for logged in user?
Im using the default web application project mvc 5 with asp.net identity, i have added a property for profile image in the ApplicationUser model : public class ApplicationUser : IdentityUser { public...
View ArticleLogin with either email or username
Hi guys, I made a project, where the admin can add users and manage them. I added the FirstName and LastName column for it and made the UserName to be choosen by the admin, not to be the email also as...
View Articleerror while trying to seed data for user and role
While I try to update the database with the seed data for user and role I get a "Validation failed for one or more entities. See 'EntityValidationErrors' property for more details." error. The roles...
View ArticleWindows authenticated site with a small public part
I've already posted on the IIS forums and figured the following:There are two ways to enable windows authentication on IIS:system.web/authenticationThis is ASP.NET specific and can only be configured...
View ArticleProblems with AD Authentication
Hi, I'm not sure what I'm doing wrong here, but I know my flag is always returning false?AuthenticateUser cls = newAuthenticateUser("LDAP://spimi.com");//Set Active Directory Path bool flag =...
View ArticleRoles not working (not persisting?)
So I'm working on essentially a legacy app. I've built a log in page which seems to work fine, code is: if (Membership.ValidateUser(nameTest, passwordLogIn.Text)) { if (Roles.IsUserInRole(nameTest,...
View ArticleAsp.net MVC Authorization
Hi Guys,I have to deal with an existing MVC4 application's authorization code. The code is relying on Asp.net IPrincipal and the class goes like thispublic class CustomPrincipal :IPrincipal { public...
View ArticleCan I use Asp.Net Identity in WCF?
Hi All,I am new to Asp.Net Identity; in most of my application we are using web service for the database activity. I go through many online Asp Net Identity article but everywhere they are creating...
View ArticleHow to set an access denied error page?
I'm working on a Asp.Net MVC 5 project with its own Individual User Account template. I set roles for users. I authorized only specific roles for specific action methods. But the problem is, even when...
View ArticleException logging in with ASP.NET Identity
A coworker and I are working on a Web Forms application that uses ASP.NET Identity. We have found that when one of us registers a user, the other person isn't then able to log in as that user. We also...
View ArticleCustom authentication with ADFS(Not multifactor)
I need a good advise and wanted to know whether a solution is feasible or not. Right now one of my customer has a common login application which is based on Forms authentication(ASP.NET) using...
View ArticleProgrammaticaly encrypting the connection string with asp net 3.5
QuestionI am trying to programmaticaly encrypt the connection string in the web config file usingaspnet 3.5This worked fine with 2.0 but when I do this with 3.5 the connection string is encrypted and...
View Articleretrive Claims in a Single Sign On sulotion using Identity 2
We have three ASP.NET MVC 5 projects working alongside. for authentication, we came up using Single Sign On, following the very simple tutorial bellow:Implementation of Single Sign On (SSO) in ASP.NET...
View ArticleHow can I access accepting ActiveDirectories in my ASP.NET app for membership?
Hi all;We have a hosted ASP.NET Web API 2 application that many companies use. We are adding more sophisticated user authorization which will lead to these companies need to add a lot of users. And...
View Articlepassword to be encrypted...
HelloI have a database connection string which needs to be encrypted(only password)How do I do it....I don't have access/permission to decrypting it on the server...the only thing I need to do is donot...
View ArticleNot able to login SSO using ADFS for first time, and secound time onwards...
Timestamp: 11/08/2016 06:32:56 Message: HandlingInstanceID: cc950c46-0cda-4ad0-8faf-617772bfddf6 An exception of type 'ALERT.Utilities.DetailedException' occurred and was caught....
View Article