Questions tagged [asp.net-identity-2]

The second release of the ASP.NET Identity system which was designed to replace the previous ASP.NET Membership and Simple Membership systems. Use this tag if your question deals specifically to ASP.NET Identity 2 features. The [asp.net-identity] tag should be used if your question is not specific to ASP.NET Identity 2.

Resources:

Announcing RTM of ASP.NET Identity 2.0.0

1064 questions
0
votes
2 answers

In a SPA, how does my browser get the feedback that it is Authenticated?

I have an ASP.NET MVC Single Page Application. On the page is a login area with a submit. When the submit is clicked the information is sent to a WebAPI controller and this authenticates on the server (ASP.NET Identity 2 and WebAPI 2). The server…
Alan2
  • 19,668
  • 67
  • 204
  • 365
0
votes
1 answer

How to add a user to a role?

There is existing code in my application that does this: if (HttpContext.Current.User.IsInRole("Customer Account Admin")) // { } else { …
user2471435
  • 1,584
  • 5
  • 32
  • 58
0
votes
1 answer

ASP.Net Identity - External logins without any UI from Web API

Note: Just learning Identity so please bear with me. We are developing a Web API for use by apps that we build and apps built by our clients. I have the local engine working the way I want so that any "client" app could use our API to login in. What…
Paul Speranza
  • 2,042
  • 7
  • 22
  • 43
0
votes
2 answers

ASP.NET Identity custom UserStore with identity key

I am trying to implement a custom UserStore that maps ASP.NET Identity to an existing (and rather convoluted) database model. The database has an existing table 'Contact' that I want to use to store user data. That table has an int identity(1,1)…
Maarten
  • 1,931
  • 1
  • 15
  • 14
0
votes
1 answer

Thinktecture Identity Server v2 using ASP.NET identity v2

I have already tried to use out of box of ASP.NET membership provider and MembershipReboot. but I also would like to know is there any way that I can integrate ASP.NET Identity V2?
Aggis Wu
  • 99
  • 1
  • 10
0
votes
1 answer

MVC5: Login form in Layout page

I'm quite new to MVC so please help me understand how to do the following. As you know when you create new MVC5 project it wants you to use Login page as a separate page when you want to log in (i.e. _LoginPartial view with ActionLink to Login…
dima
  • 1,181
  • 1
  • 9
  • 20
-1
votes
1 answer

Newly Added Fields in AspNetUsers Table not showing up in identityUser as prop

Please Help I am new to Asp.net Identity, this is asp.net core 2 web api , I am trying to register a user to my ASPNETUSER Table , and i successfully created new fields (FirstName,LastName,Address). the problem is whenever i try to map my input to…
-1
votes
1 answer

Sample for .NET Web API, .NET Identity, external login, and token authentication

Where can I find a complete code sample (the entire project) that includes the following: .NET Web Api 2 .NET Identity 2.0 External login provider Token authentication instead of cookies I have a Web API project working with an external login…
-1
votes
2 answers

Retrieve Identity Claims in a Single Sign On project

We have three ASP.NET MVC 5 projects working alongside. For authentication, we came up using Single Sign On, following the very simple tutorial: Implementation of Single Sign On (SSO) in ASP.NET MVC The main idea is to create a MachineKey shared…
-1
votes
1 answer

Null Reference Exception thrown in SignalR Asp.net Identity framework?

this is my chatHub class public class ChatHub : Hub { public void Send(string name, string message) { string position; if (Context.User.Identity.IsAuthenticated) { position = "Admin Manager"; …
Hoque MD Zahidul
  • 5,772
  • 2
  • 26
  • 34
-1
votes
2 answers

Validate expressjs api calls using ASP.net Identity 2

I am building a rest api using asp.net & identity 2. This is my primary data api. I am also building another api using expressjs for searching data stored in a search index. Angular spa will be consuming both these apis for data and searching…
-1
votes
1 answer

How can I expand ASP.NET Identity Samples with new role, e.g superuser?

I have downloaded this "Microsoft ASP.NET Identity Samples" https://www.nuget.org/packages/Microsoft.AspNet.Identity.Samples and can login as admin. when I'am logged in, I can create users. How can I increase this? Say I want to create a new role…
Xtreme
  • 1,420
  • 7
  • 25
  • 46
-1
votes
1 answer

what security approach should i apply?

my team developing a large scale web app . according to our analysis : some users should be be able to access page and using its controls for add, update , delete and approve etc.. and others should be able to access those pages with any ability to…
noor saif
  • 224
  • 1
  • 7
-2
votes
1 answer

Get IdentityUser by ID using MVC 5 Identity

When creating another model Testimonial I store the active user's Id as the Author which is a string looking like: 00b9c6aa-010c-4cbd-ac16-c72d05e7906a. In another view I want to display the name and other user information associated with that Id…
Samuel Davidson
  • 733
  • 5
  • 15
1 2 3
70
71