Questions tagged [identity]

An inherent property of an entity that distinguishes that entity from all others. Frequently used to refer to user identity and authentication.

Identity typically refers to user identity in authentication scenarios.

2969 questions
1
vote
1 answer

ASP.Net Identity using DevExpress ORM instead of Entity Framework

I'm implementing ASP.Net Identity for my MVC web application. Could someone profide hints on how to use DevEx ORM and not Entity Framework? Thanks in advance.
Muris
  • 158
  • 8
1
vote
2 answers

Securing WebAPI with [Authorize] attribute vs. User.Identiy.IsAuthenticated

I have a WebAPI controller that requires users to be authenticated and I'm using MS Identity 2.0 for authentication. The controller looks somewhat like this: [Route("MyRoute")] [Authorize] [HttpPost] public HttpResponseMessage Post([FromBody] string…
frenchie
  • 51,731
  • 109
  • 304
  • 510
1
vote
2 answers

Login and register using Asp.net Identity C# MVC Need to add our own table too

I am using ASP.NET Identity for login mechanism. In register Page I have to store some more details from another model also. My Question is, can I add details in my own table with system provided membership table(s) in same time? Please guide me…
b_in_U
  • 640
  • 2
  • 7
  • 22
1
vote
5 answers

id columns or clustered primary keys/database consistency

If I had a table with the columns: Artist Album Song NumberOfListens ...is it better to put a clustered primary key on Artist, Album, and Song or to have an autoincrementing id column and put a unique constraint on Artist, Album, and Song. How…
Sarah
  • 25
  • 1
  • 3
1
vote
2 answers

ASP.NET Identity, cannot access current logged in user

The problem seems so ridiculous. I am trying to get the id of current logged in user here but get error "The type or namespace name 'User' does not exist in the namespace 'Microsoft.AspNet.Identity' (are you missing an assembly reference?) if I try…
chris544
  • 889
  • 2
  • 10
  • 21
1
vote
1 answer

ASP.NET Identity v2.0 IdentityUser properties missing

I've been using ASP.NET identity 1.0 in my previous application and by following simple tutorials like this did manage to implement custom properties into my user class: public class CustomUser : IdentityUser { public string ContactName { get;…
Bartosz
  • 4,542
  • 11
  • 43
  • 69
1
vote
1 answer

OutputCache stopping my username from displaying in header

On my website I have a header defined in my _Layout.cshtml. In that file, I'm doing this:
1
vote
3 answers

Retrieve the Id of recently inserted record

I currently have this SQL insert code in code behind Dim con As New SqlConnection Dim conString As String conString = ConfigurationManager.ConnectionStrings("MyConnection").ConnectionString con = New SqlConnection(conString) con.Open() Dim cmd As…
SeRo
  • 77
  • 4
  • 15
1
vote
0 answers

MVC 5.1 identity 2 add new Role to myself need to log out

When I add new Role to my own account I have to log out and log back in so this role will start working. Is there a way to re-load roles on the fly (after adding/deleting) ? I'm using Individual Accounts stored in Ms SQL Server 2012 in MVC 5.1.2 and…
Adam W
  • 263
  • 1
  • 4
  • 12
1
vote
1 answer

Looking for a simple way to implement basic user roles

I'm building an intranet application using Windows authentication and I have pulled my users to my local DB, keeping only the information I need from Active Directory. I would like to assign roles to my users (Admin or user) and restrict the admin…
Orphu.of.io
  • 125
  • 1
  • 16
1
vote
2 answers

Insert - Select keeping identity mapping

I have 2 tables, and im trying to insert data from one to another and keepeng the mappings between ids. I found here someone with the same problem, but the solution isnt good for me. here is the example: the two tables CREATE TABLE [source] (i INT…
BFigueiredo
  • 176
  • 1
  • 7
1
vote
3 answers

Database-wide equivalent of SET IDENTITY_INSERT OFF

In my eternal saga to insert 1.4 million rows of data from a SQL script, I've written a basic WinForms app that takes each line of the script and executes it individually. However, because the original script contained SET IDENTITY_INSERT [Table]…
tags2k
  • 82,117
  • 31
  • 79
  • 106
1
vote
1 answer

How do I get this MVC5 client to Login via a remote WebApi2 app?

I'm creating an application in 2 parts. On one server is a .net Webapi2 using Owin. On another server is an MVC5 website with currently no login that will act as a front end for the api. It would also be a nice selling point to show that the app…
DasAmigo
  • 333
  • 3
  • 12
1
vote
0 answers

Asp.net MVC5 Method for Custom Properties

Hi I am using identity in my project and i can easily get the user name of the user on _layout page with the below code part : @User.Identity.GetUserName But i have more properties to get. Here is my extended user class.. using…
umki
  • 769
  • 13
  • 31
1
vote
1 answer

Asp.net identity 2.0 password policy change no MVC

I am recreating a project in asp.net 4.5 without MVC but using Identity 2.0. There are no examples on the net about changing the Identity password policy without using MVC... sadly. Does anyone know how to go about this?
1 2 3
99
100