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

Image may be NSFW.
Clik here to view.

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 Article


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


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

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

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


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

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

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


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


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

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

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

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


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

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


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

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


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

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

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


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