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

asp.net 4.5 Framework Identity Block anonymous users

I  am trying to set the security for a new site and I  am trying to set the allows in my web.config.  The issue I am having is when I add    <system.web>      <authorization>...

View Article


reference for user role in asp application

I have a web application, I need to set assign user role (different users have different roles after they logon). How can I start?I use ASP.NET and C#.if you have some examples or reference links,...

View Article


"No IUserTokenProvider is registered." When calling...

I tried to generate a password reset token with the following code: string Id = UserManager.FindByName("userName").Id; string code = UserManager.GeneratePasswordResetToken(Id);This resulted in the...

View Article

Multiple Client Certificates

We're working with an application that requires a specifc client certificate on an ipad to be able to log-in. It all works fine as long as there is only one certificate for that domain on the device...

View Article

Using cookies for web security

Please I have been trying to use the web security helper and it is really giving me issues and i have a deadline. Please how can I just the the register, login and forgot  password thing manually...

View Article


Internet Explorer Get Current User

I am trying to get Internet Explorer's "sign in as different user" and then get the username of the logged in user (not computer user). For example, i sign in as different user "LLL" and when i start a...

View Article

web.config and login using AD

Hi there,I'm using Windows Authentication and ASP.NET Impersonation is enabled for my ASP.NET app. I'm using AD to allow login.  When a user goes to login the web form automatically grabs the username...

View Article

Authorize for specific record

I have a class Account that contains Users and Departments. A User can belong to multiple Departments within the same Account. I am wanting the user to only be able to access records within its...

View Article


basic authentication 404 status code error

Dear all, I am writing to seek help, in understanding where I may be going wrong in the following code below.  I am trying to login as trial user, but it gives a 401 error on the client end.  however,...

View Article


OAuth controller never being invoked on ASP.NET MVC web site?

I have an ASP.NET web site that I am trying to get working with Twitter OAuth using the Microsoft OWin package. I did not use the main ASP.NET project wizard to start the site because I wanted to take...

View Article

Image may be NSFW.
Clik here to view.

LoginStatus Logout not working

I am at wits end here.I have a loginstatus control on a master page. <asp:LoginStatusrunat="server"id="LoginStatus1"/>When logged in using Forms Auth,  I click LogOut and I get the following page...

View Article

Unable to write file and send to User

This code works when I am debugging in Visual Studio: private void writeToDatFile(string[] lines) { string filePath = @"C:\Randomization.dat"; string fileName = txt_FileName.Text; FileInfo fi = new...

View Article

Confirm user is logged in?

Hi all,I want to confirm that a user is the logged in user before submission of sensitive data.So, the user has already logged in (using membership/ roles) and when they click a button I want them to...

View Article


Sending recover password link for one time throw Email using Membership asp.net

Dears,I want application to send user link in his email when he forget password to reset his passwordThank you

View Article

WebClient.DownloadData to access a pdf in unfriendly domain with windows auth...

I am trying to download a pdf in my dmz, and my credentials for that domain do not seem to work. I think it is because I am using Windows Authentication, which I must use.I have even tried creating my...

View Article


How to forbid the acces of the app through url

Hey,what I want is to just let the acces through the authentification form .

View Article

Security trimming stripping menu items I should have

I've done this forever on multiple apps successfully:  Attach roles from my own source in the global.asax.  Have a sitemap provider in the web.config with securityTrimmingEnabled set to true, and have...

View Article


ASP.NET non-persistent cookie (aka session cookie) not time out for some users

I have an ASP.NET MVC Web project that uses non-persistent cookie (aka session cookie). The requirement is that a logged in session will time out either after 30 mins of inactivity or, users closes the...

View Article

Application authenticating to Azure AD

helloI am working on a new MVC web site and would like the authentication to come from a azure AD. We have this working for accounts created in the Azure 'AD', these show asSourced from Windows Azure...

View Article

MVC5 Application Cookie expires when session ends

I have a MVC5 web application up and running on my dev machine with IISExpress .In the Startup.Auth I have overrideen the cookie defaults and set an expiration time of 1 day.When I debug the...

View Article
Browsing all 4737 articles
Browse latest View live


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