Claim based authorization using policies - not found AddAuthorization()
Hi All,I am trying to implement Claim based authorization using Policies. I added following code in startup.cs but I am getting an error like AddMvc()/AddPolicy not found. Also I install the...
View ArticleAuthenticating front end phone/web app and backend web api
I've created a Web API (using ASP .Net Core MVC 1.1). Now we are about to start developing two front ends - a phone app (using Ionic) and a Web App (using ASP .Net Core MVC 1.1)I am trying to wrap my...
View ArticleActiveDirectoryMemberShipProvider and COMException (0x8007203A): The server...
I have an ASP.Net 2.0 website configured to use Active Directory for forms authentication via the ActiveDirectoryMemberShipProvider. Configuration is as...
View Articleadding users to a role
Dear reader,As many people on the internet I have some troubles with adding users to roles. What is a useful solution to this problem?This is my controller: public ActionResult Toevoegen(string RoleID)...
View ArticleAsp NetIdentity Customizing Fields Name
Hello Every BodyI would like to inherit from IdentityUser which is provided with AspNet.Identity and then rename fields which are already present in the IdentityUser such as :Email =>...
View ArticleCan to login successfully but still showing the "Register" and "Login"
Hi,I have created a new web application project for web form. Upon creation, there are a list of web form in the "Account" folder. So I went on to Register and after registration, my record is inserted...
View ArticleProblems Securing Site
Hello everyone and thanks for your help in advance. I am new to Identity and am trying to create my first project using OWIN, however what I have created does not seem to secure any of the pages. I...
View ArticleOWIN Authentication, ExpireTimeSpan not working
Hi ,I am using Owin Authentication. I want my application to redirect to login page after specified time. So i have set the expiration time in CookieAuthenticationOptions.Here is my...
View ArticleMVC 4 Custom Membership Providers With 3rd field for login
Hello,I'm trying to learn ASP.Net MVC. I'm already decent at just plain c# for desktop applications and php. So I figured I would take a stab at learning the web side of the .NET now.I figured I would...
View ArticleComponent Service
Hi,I created a component service in server, it is working fine. However, it will auto stop running and cause front end application at client side can't work. I require to access server to restart the...
View Articledynamic solution with security and without on same project?
Hi,I would like to set up my web project with login.aspx and without based on the url entered.lets say if someone access www.mywebsite.com/A - can make a search without login...
View Articleasp.net secured site
Hi, I am working on a project where client request a fetature where user only able to login from system if that system is used for signup in user site, I have tried several ways, tries to traceout...
View ArticleReceiving incorrect access token from authentication server (Auth0)
I have an ASP .Net Core 1.1 MVC Web App which accesses a web API (also written in ASP .NET 1.1 MVC).The Auth0 authenticaion I believe is working fine on the API side. But I am struggling on the web app...
View ArticleChoosing correct authentication flow for ASP .Net Core MVC web app
I'm very new to OAuth2/OpenId (in fact very new to web development in general). I'm trying to understand which authentication flow I should be using. I have created a web API on the back-end, and on...
View ArticleWhat is signin-auth?
I am developing an ASP .Net Core MVC web app which calls a web API using the "Authorization Code Grant Flow". I am using Auth0 for the authentication server. I see in a lot of their examples, the...
View ArticleAny advice for installing Identity in existing MVC project?
My app is a single layer project targeting .NET 4.5 and MVC 5.2.3. I would like to install Identity on an existing MVC project. I plan to just... install these packages: Microsoft.AspNet.Identity.Core...
View ArticleHow to manage Windows Authentication in Mvc5 with manual Roles
For my company, I am working on a MVC Intranet application using Windows Authentication. My company has hundreds of employee. With respect to this, I want to know the following:1. How can I get the...
View ArticleMVC External Login via Microsoft not workking
I have an ASP.NET MVC 5 site that uses OWIN external logins from Microsoft, Facebook, and Google. Everything has been working fine for many months. About a month ago I upgraded to Microsoft.Owin...
View ArticleAntiforgery tokens are reusable/not invalidated
Hi,I posted my question on Stack Overflow, but because of the lack of response, I thought I'd try out the forums.We use ASP.NET MVC's default Antiforgery technique. Recently a security company did a...
View Article