Quantcast
Channel: Security
Browsing all 4737 articles
Browse latest View live

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 Article


Can 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 Article


how 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 Article

Windows 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 Article

ASP.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 Article


AD 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 Article

User.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 Article

Form 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 Article


How 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 Article


Windows 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 Article

2014-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 Article

OWA 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 Article

HttpContext.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 Article


Approaches 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 Article

Could 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 Article


Authentication 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 Article

Unable 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 Article


How 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 Article

Need 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 Article

Where 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
Browsing all 4737 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>