CNAME: 401 - Unauthorized: Access is denied due to invalid credentials
I'm using a CNAME to redirect access to my site to DDNS service. While I can access the home page of my app, and other static content pages, I get the error below whenever I try to access a .aspx page....
View ArticleAsp.net.Identity with identityserver3 and Mysql
I am building a Identityserver3 with AspNet.Identity and MySql database. I have build the identityserver stand alone, and it worked. Then I build the AspNet.Identity with Mysql and it worked. Now I am...
View ArticleAn operations error occurred - using (PrincipalContext pc = new...
HiI have code that works great in Visual Studio but as soon as I publish to IIS, it gives me an error stating: An operations error occurred.If I comment out:UserPrincipal usr =...
View ArticleExternal Provider Name after logged in asp.net identity
Hi, i am using asp.net identity in my MVC application.I add google,twitter,Microsoft etc login providers.Is there any way to know after logged in, from which logged in provider i am currenly logged in...
View ArticleWhen is full trust not full trust?
Hi, and I hope I've got this in the correct forum area for this question...First up, I don't want to get into a debate about full trust and why not to use it ;) For the site in question I think I am...
View Articleconsidering 2 ways to connect ajax call to server
hello. asp.net.4.5 web-form, application.using the built in membership provider form authentication (without SSL). after authentication success the user redirect to a aspx page that the client run...
View ArticleWebmatrix ver 3.0 and reCAPTCHA v2
How can I implement reCAPTCHA v2 using Webmatrix ver. 3.0?I've received an email to upgrade to v2 but I can't seem to work out how to do it.Miguel
View ArticleOpenIdConnectNotification when user already have a cookie
I am using an OpenId Connect provider (Thinktecture Identity Server) with OWIN/Katana in ASP.Net MVC application. I need to log some information to the database when a user login to the application. I...
View ArticleLogin for windows auth?
Hi,I would like to use a login page for system. It uses windows auth method to validate the login. Then, the login should pass to SQL server (SQL server uses windows auth to login). And system will use...
View ArticleRegisterExternalLogin doesn't register external login
I've set up openauth providers Google, FB and Twitter. They all succeed in authenticating the user on those sites and provide an email address, and possibly other info, back to my site. But the email...
View ArticleLogin System
Hello guys.So I'm not sure if my login system is ok or not, i am using ASP.NET MVC API, and this is how I;m handling it:when someone has logged on, You get an encrypted cookie with ur username and...
View ArticleControllers and API controllers security
Hi all.I created an ASP.NET MVC5 web site that uses ASP.NET Identity for security. It allows the use of both local accounts and social accounts. It's a pretty out-of-the-box implementation of...
View ArticleShould I encrypt data and/or should I verify it against the database?
Sup people! I really don't know how to google this, so here it goes:I'm currently encrypting somewhat sensitive data (Some products IDs which are available to all users) and putting it in the HTML...
View ArticleSite keeps prompting for login
I have a site that has started prompting for login for no reason. If you just press the link again it work and then not and then ok, no real need to log in again. So it seems the system knows the...
View ArticleUser.IsOnline question
I'm currently using For Each myuser As MembershipUser In Membership.GetAllUsers() If myuser.UserName = strMemberName Then IsUserOnline = myuser.IsOnline End If Nextwhich looks extremely inefficient...
View ArticleProblem using OAuth Refresh Tokens with Identity and Web API
I must first state, I am shaking on Identity in general, especially with the notion of using refresh tokens.Here is my OAuth Configuration in my Owin.Startup classpublic void ConfigureOAuth(IAppBuilder...
View ArticleIntegrating Owin Identity into existing DBCntext
Hi,There is an existing DbContext in the system as I am using Entity Framework Code First. After implementing Owin authentication, system has one more DbContext, IdentityDbContext, for Owin iteself....
View ArticleWindows authentication ALWAYS pop out
Hi,Can any one tell me how to set up SII and webconfig to always pop out and ask user for login and password?Lets say I login to my windows account as admin123 / password123 - I have been authenticated...
View ArticleIs user logged in?
I have a function that contains the following code that checks a list of users of the site and not just the current user. 'is user online? Dim u As MembershipUser u = Membership.GetUser(strMemberName,...
View ArticleCreate user, causes System.Security.SecurityExceptionDim newUser As...
I have a .net 4 web form application. Windows 2012, IIS8. When running the following line;Dim newUser As MembershipUser = Membership.CreateUser(Username, password.Text, email.Text, SecretQ, SecretA,...
View Article