Two different types of user
My application needs to handle two different types of user (lets call them Internal and External). Both could use the standard identity provided backed off to SQL Server, meaning that I can take...
View ArticleCan I Register a new user and not have them automatically logged in?
In my site there is an administrator role and only the administrator can register users. However whenever the administrator user registers a new user, the administrator is automatially logged out and...
View Articlehow to remove or add roles on users
Hi, I want to add or remove roles for users in the table aspnet_UsersInRoles but I know how to do it. My code: For Display all Roles:private void DisplayRolesInGrid() { var allroles = from t1 in...
View ArticleWindows Single Sign-On Disappeared
I have a very simple site, basically the MVC 4 Intranet App template with some of the content changed.When I first set it up and deployed it to a test server it would automatically sign in and...
View ArticleASP.NET WEB API 2 Authentication setting missing
Hi All,I am trying to create an ASP.NET Web API 2 test project using VS 2013 RTM and I want to use local Win Server 2012 R2 Active Directory Federation Service for user authentication.While creating...
View ArticleAD current user username
I am developing a window service application, i have the below code in C# to get the active directory username of the current userpublic string GetUserID(){using (var domainContext = new...
View ArticleUser.IsInRole() does not work for custom Role Provider
I setup a relative simple role provider. The problem is that User.IsInRole() fails. I have this test code:Debug.WriteLine(Roles.Provider.IsUserInRole(Membership.GetUser.UserName, "Portal"))...
View ArticleForm Authentication
Experts!Till date i was not using asp.net form authentication to register users in website.I used to make form manually and store data in sql server using stored procedures.Now i want to use asp.net...
View ArticleHow to enable Windows Azure Authentication ?
When I try to follow Rick Anderson's article to enable Windows Azure Authentication, I do not get "Enable Windows Azure Authentication" item in Project menu. When I install Microsoft ASP.NET Tools for...
View ArticleWindows authentication with custom login page
Hello,we have a page running with windows authentication. If the page is accessed the browser asks for login information with the usual popup from the browser. One of the decison maker wants a...
View Article2014-01-16 Nightly Build blew away UserManager.PasswordResetTokens,...
One speck of documentation would go a long way. A short sample of how to implement password reset validation and user confirmation would be greatly appreciated.The following code worked until this...
View ArticleOWA Custom Authentication Module
Developing a custom authentication module for Outlook Web Access (OWA) 2010. For now, this module is always going to log in with a static userid (jdoe@staging.local); i.e. anybody accessing the OWA...
View ArticleHttpContext.Current.User.Identity.Name Returns wrong user name
It is a Plain ASP.NET application using SQL Membership Provider for authentication. While application runs good most of the time. We have recently seeing complains from users saying they are seeing...
View ArticleApproaches I can follow to authenticate my asp.net MVC web application from...
I have the following scenario:-Our asp.net MVC intranet web application is inside DomainAOur Active Directory is inside DomainB.Users login to our internal network from their machines which are under...
View ArticleCould not load type 'Carental.MyRoleProvider'.
Dear FriendsGot this error evry time since i started provide roles, this is my web.config and myprovider class<roleManager enabled="true" defaultProvider="shayProvider"><providers><add...
View ArticleAuthentication via LDAP - self-signed-certificate
Hi!I have implemented a custom membership-provider for my web-application which performs authentication via ldap. Using a non-ssl connection works fine.The test-environment uses a...
View ArticleUnable to go to the site
Hi, When going to the site http://my-friend.co/Start I get no problem on the machine. But while doing the same thing on another machine, on which I am connecting as my-friend\administrator on the...
View ArticleHow to create online attendance system?
Hi..I have tried using asp.net createuserwizard and login control.But i m not able to customized them according to my liking.so i created my own user registration webform and login control with the...
View ArticleNeed to impersonate Windows Authentication in Web.config file in VB.NET 2008
Hi,My current code is as below:<system.web><authentication mode="Windows" /><identity impersonate="true" userName="user_name" password="pwd" /></system.web>If I remove the...
View ArticleWhere is access control managed for Cloud - Single Organization...
I am creating a new web app in visual strudio 2013 and it's very cool that I can pick my Office 365 deployment for the authentication option, but where do I manage what users have access to the app?...
View Article