Questions tagged as 'asp.net-identity'

1
answer

How to direct each user to your page corresponding to your access profile using asp.net identity with roles

I have 3 profiles registered in the database SQL Server, they are Master, Admin and User, when you log in as you would for each user to be directed to your permission view. by default the route is loading the home / index. // POST: /Acc...
asked by 09.12.2016 / 21:02
1
answer

Error between Entity Framework Contexts

I'm using two Entity Framework contexts, one for the Identity (which is in the cross cutting layer) and another to my application (in the Data layer), both point to the same database. Date Layer: public class IdentityIsolationContext : DbCo...
asked by 17.10.2016 / 00:28
0
answers

How to perform access permissions via AuthorizeAttribute

I'm researching how to implement access control in my web application. I'm using Asp.Net MVC with identity, the idea is that a certain user can only access a certain page. So, in search I checked that we can use AuthorizeAttribute ,...
asked by 27.10.2016 / 18:31
1
answer

Linking Users to Companies and Bringing User-related Records Using ASP.NET Identity and Entity Framework

I have records in the database (for example, clients), and all records have a EmpresaID identifier. I'm using identity with entity framework to authenticate. In the user's registry I have an identifier "CompanyId". I would like to k...
asked by 17.08.2016 / 22:42
1
answer

Customize IdentityUserClaim

I'm trying to customize the Identity Claims table, through the IdentityUserClaim class. I'm using a mapping, through the EntityTypeConfiguration class, but I get the error: The configuration for type 'Microsoft.AspNet.Identity.EntityFramewo...
asked by 08.03.2016 / 18:54
0
answers

Include associated class objects (ApplicationUser and UserProfile) - ApplicationUserManager and OWIN

I have the following problem: Within method GrantResourceOwnerCredentials in class OAuthProvider : OAuthAuthorizationServerProvider I'm filling in custom properties to be returned along with the Token. However, the associated cl...
asked by 02.12.2015 / 15:56
0
answers

Use two User type classes in Identity

How to use 2 classes as User in Identity. Ex. The site will have an admin area, and will use the default class "ApplicationUser" which generates an Identity "AspNetUsers" table to log in. In this administration area, these users will be ab...
asked by 11.12.2015 / 03:02
1
answer

ASP.NET Identity and Web API - Problem to register new user

I have a Web API project and I'm using Identity to manage user accounts, in my controller it looks like this: public async Task<IHttpActionResult> Register([FromBody]RegisterDto model) { if (!ModelState.IsValid) { return...
asked by 19.05.2015 / 22:42
2
answers

User by Company - Asp.net Identity

I'd like some help with Identity please. Home Here the user registration is by Branch, I customized the ApplicationUser by putting the field FilialID and the field in the AspNetUsers table, but now at the time of login it would have to b...
asked by 20.07.2015 / 14:38
2
answers

How to Increase webform timeout time

How to increase the timeOut time, my session is falling around 5 min, it is not in the connection string. Asp.Net AspNet Identity Authentication <sessionState mode="InProc" timeout="20"/> <customErrors mode="Off"/> <a...
asked by 22.11.2017 / 11:11