Click here to Skip to main content
14,975,553 members
Everything / Security / Identity

Identity

Identity

Great Reads

by Maximiliano Rios
How to use the new Identity framework with external authentication services such as Google, Facebook, Twitter and so forth, retrieving information from users profiles. Including NInject integration.
by John Atten
In a previous post, we took a high-level look at using Identity 2.0 in the context of a Web Api application. We essentially poked and prodded the default Visual Studio Web Api project template, learned where things live, and got a basic sense for how it all is supposed to work.
by Maximiliano Rios
In the first two articles, we could go through the process of creating and setting up an MVC project with Identity Framework 2.0. Now it's turn to handle external logins that are bundled already in the default project, we just need to activate them.
by John Atten
Earlier this year we looked at Implementing Group-Based Permissions Management using the ASP.NET Identity 1.0 framework. The objective of that project was to gain a little more granular control of application authorization, by treating the now-familiar Identity Role as more of a "permission" which c

Latest Articles

by Mostafa Asaduzzaman
How to replace User.Identity.Name (Email) by Full Name in AspNet Identity 2.0
by John Atten
This is the third post in a series in which we have built up a minimal, self-hosted, OWIN-based Web Api application essentially from scratch. In this post we'll pull in a minimal ASP.NET Identity implementation.
by Maximiliano Rios
In the first two articles, we could go through the process of creating and setting up an MVC project with Identity Framework 2.0. Now it's turn to handle external logins that are bundled already in the default project, we just need to activate them.
by Maximiliano Rios
Creating our database context and extending roles

All Articles

Sort by Score

Identity 

Please Sign up or sign in to vote.
22 Jan 2015
Maximiliano Rios
How to use the new Identity framework with external authentication services such as Google, Facebook, Twitter and so forth, retrieving information from users profiles. Including NInject integration.
Please Sign up or sign in to vote.
13 Aug 2014
Amol_B
4 alternatives  
Hello ,I am facing a weird issue with tables in my database.Tables in my application are created with a primary key defined (with Clustered index).Identity seed is a one for all tables in my database (IDENTITY(1,1)).CRUD operations are done on these databases using stored procedure...
Please Sign up or sign in to vote.
13 Aug 2014
Gupta Poonam
You might find your answer here..[^]
Please Sign up or sign in to vote.
13 Aug 2014
OriginalGriff
Never seen or heard of that as a problem: and SQL Identity fields are used so often I'm pretty sure it would show up.Are you sure that is exactly what is happening? It would be easy to see that kind of change if rows are deleted for example, since the identity values will not be...
Please Sign up or sign in to vote.
13 Aug 2014
Amol_B
SQL Server 2012 Auto Identity Column Value Jump Issue[^]
Please Sign up or sign in to vote.
19 Mar 2015
Sergey Alexandrovich Kryukov
I already explained why your problem is not quite suitable for expert's help. That cannot be a solution, so it was just a comment.But I do have some tentative solution.Georgi Kostadinov wrote:I'm not interested so much in programming but that's the task so I just want to finish it on...
Please Sign up or sign in to vote.
21 Mar 2015
Afzaal Ahmad Zeeshan
You should try wrapping the name between [] and then trying it again. Such as, [ApplicationName] and then try. If doesn't work, please change the column's name inside your database table and try something else.
Please Sign up or sign in to vote.
18 Aug 2014
tony_01
1 alternative  
I have this sample stored procedure(below) for inserting data in a table. Basically, in this query, it will NOT insert the data if the employee ID already exists. My code works fine in VB6, I was able to insert record using the stored proc, but I don't know how to check if the record already...
Please Sign up or sign in to vote.
18 Aug 2014
Mycroft Holmes
This tip may be of use to you Combining Insert/Update to one Procedure[^]I will forgo the obligatory rant about using a dead language.
Please Sign up or sign in to vote.
19 Aug 2014
Terence van Schalkwyk
I have been searching for an answer on the web for this and cant seem to find one, not sure if I am wording my search incorrectly or not.If I have a contact table:FirstName | LastName | OwnerOwner links to the ASP Identity tableHow when my user logs in will can I make it that it...
Please Sign up or sign in to vote.
16 Oct 2014
Member 10494041
1 alternative  
First of all, this error does not appear while testing the application locally on visual studio. It only appears in the production. And most importantly "IT DOES NOT APPEAR EVERYTIME". If that error occurs and we re-run the application and repeat the same steps then the error won't occur again....
Please Sign up or sign in to vote.
16 Oct 2014
George Jonsson
I think you should add some control statements in your code and throw exceptions and/or write to a log file if something is amiss.You can do this in several places in order to narrow down where your error origins.1. Check if the property AUSORD.DataAccess.Common.LoginName is changed...
Please Sign up or sign in to vote.
4 Nov 2014
sujithkumarsl
2 alternatives  
I am new to ASPNET Identity 2.0. I would like to know the way to customize Identity 2.0 to work with two databases. One db for authentication (like and IDP but I can query this db). Another one for authorization (role table). Any help?He the authentication table is the centralized Identity...
Please Sign up or sign in to vote.
9 Nov 2014
Suraj Sahoo | Coding Passion
DotNet tricks[^]Extending Identity Accounts and Implementing Role-Based Authentication in ASP.NET MVC 5[^]A Beginner's Tutorial on Custom Forms Authentication in ASP.NET MVC Application[^]The above links are some very good links/articles on Authentication and authorization.These would...
Please Sign up or sign in to vote.
24 Nov 2014
NAPorwal(8015059)
Hello,I want to implement account confirmation feature in my project. I am referring below url to make the things happen.http://www.asp.net/web-forms/overview/security/create-a-secure-aspnet-web-forms-app-with-user-registration,-email-confirmation-and-password-reset[^]Since I am very...
Please Sign up or sign in to vote.
11 Jan 2015
sandeep nagabhairava
1 alternative  
Hi,I need a requirement to create a project in MVC5 using Web Api2 with identity and views in the same project. I'm new to this topics, how can i customize identity and how can i get values from ApiController to Views. for this i searched a lot but no one have example with above three. ...
Please Sign up or sign in to vote.
11 Jan 2015
Suraj Sahoo | Coding Passion
ASP.NET Identity 2.0: Introduction to Working with Identity 2.0 and Web API 2.2[^]Go through this article, you will get the understanding of what you need.Thanks
Please Sign up or sign in to vote.
5 Feb 2015
Alexandru-Marius Dobre
Hello, I have a unsolutioned problem for the past days. I have an WebForms application wich uses individual accounts for login using Idendity 2.0. After I deployed the application to production environment I noticed that the users are not logged in after a certain amount of time (approx...
Please Sign up or sign in to vote.
13 Feb 2015
Chad Cromer
Hello,I am working through some MVC 6 and ASP.NET 5 samples and I am having issues finding any worthy documentation on using bearer tokens to secure API's. I am able to make such samples work with VS 2013, MVC 5 but I am unable to port these over to VS 2015 and MVC 6. Does anyone know of...
Please Sign up or sign in to vote.
17 Feb 2015
Lus Oliveira
1 alternative  
Hello.I wonder how to use Identity ASP.NET on a n-tier design.I have a DLL that provides all the business logic, except authentication and authorization.I would like to implement it using ASP.NET Identity, but I'm finding it difficult to expose the classes of this DLL to the MVC...
Please Sign up or sign in to vote.
17 Feb 2015
Abhinav S
This is generally done by hosting OWIN files in another virtual directory and exposing these services either through WCF or WebApi.In this case, you want to integrate authentication into the business dll and so you will need to find a mechanism to host the dll as a service.I'm not aware of...
Please Sign up or sign in to vote.
23 Mar 2015
Member 11513753
Hi All,I am trying to implement Asp.net Identity in my web (MVC5) application. In User Authentication method I am authenticating user, if user exist then I am manually creating Claims Identity and Principal in my application (Authentication.cs). After that I am assigning the Claims Principal...
Please Sign up or sign in to vote.
24 Mar 2015
Madelinelise
I'm currently learning asp.net using web forms. Currently I am working on a basic profile system for a logged in user than can directly edit the information the user registered with.Upon doing some research I decided to use the identity feature built right in to the standard web forms...
Please Sign up or sign in to vote.
11 Apr 2015
jaylisto
4 alternatives  
i want to develop a web base parking systemi want to retrieve the newly inserted or latest generated identity from sql server database.after filling up and saving the new inserted data to the tablei want to display that identity value from the browser.how may i suppose to do...
Please Sign up or sign in to vote.
11 Apr 2015
OriginalGriff
Start by looking at your SP and see exactly what it does. Concentrate on the output parameter.If that's all ok (and you can test it in SSMS to check) then you need to start looking at the code where you use the return value - which you don't show...
Please Sign up or sign in to vote.
11 Apr 2015
Abhinav S
Check out six different to get the last identity - 6 Different Ways To Get The Current Identity Value in SQL[^].
Please Sign up or sign in to vote.
11 Apr 2015
Member 10996912
Check out to get the last identity @@identity
Please Sign up or sign in to vote.
11 Apr 2015
ShahidRiaz
Try to user ExecuteScalar instead of using ExecuteNonQuery.Its reason is that ExecuteNonQuery returns number of records affected.While the ExecuteScalar returns the record from the first column of the first row of a given query. So if your query is returning the correct value, then...
Please Sign up or sign in to vote.
13 Apr 2015
Madelinelise
Alright, I've searched and searched and even checked out the similar questions here. None of them are getting me what I need.I currently have a Web Forms application that is using Identity. Right now I am trying to allow someone who is registering to choose from two different roles. One is...
Please Sign up or sign in to vote.
13 May 2015
Ahsen Mehmood Rana
1 alternative  
Hi,I've to use Oracle 11g with ASP.NET MVC 5 and Entity Framework 6. I'm trying to use ASP.NET Identity to do user and role management and want to store this data in my Oracle 11g DB. I've Oracle.ManagedDataAccess and ODP.NET in my project. What is the best way to use Identity with Oracle in...
Please Sign up or sign in to vote.
13 May 2015
Kornfeld Eliyahu Peter
When you are choosing identity management of ASP.NET, all the data goes thru a single connection string, so if you point that string to an Oracle database your identity will be stored in Oracle...This is a sample of common usage of...
Please Sign up or sign in to vote.
2 Jun 2015
Member 11733471
In reply to all comments, yeah I did migrations (but nothing was added) and this is the error I'm getting (and yes it is about migrations):http://i.imgur.com/6NBiYXc.jpg[^]
Please Sign up or sign in to vote.
1 Jun 2015
Member 11733471
1 alternative  
During the whole day I just tried to add a single property to my AspNetUsers table generated by identity. I wanted that property to be a foreign key to a "Clients" table so that each client has it's own user and all the data of the client is in that respective clients table.So here is what...
Please Sign up or sign in to vote.
11 Jun 2015
vezo11
1 alternative  
Hi,I'm using existing (generated) mechanism for login (i was created new web form - web application project).I added tables for identity in my database and changed the conn string.Functionality for registration works very fine, but when I log out, I can not log in again. I get the...
Please Sign up or sign in to vote.
12 Jun 2015
vezo11
The problem was in the database. The solution can be found here:- entity framework 4.1 invalid column name[^]- Invalid column name “User_Id”[^]Thanks
Please Sign up or sign in to vote.
7 Aug 2015
TejashDesai
Hi,I am developing 3 application in MVC4. I want to use OpenId Connect, ASPnet Identity 2.2 and Thinktecture for authentication and authorization as well as for SSO. Following is my use case:Every application have their own login page. When user enter username and password in application...
Please Sign up or sign in to vote.
19 Aug 2015
Afzaal Ahmad Zeeshan
You must ask such questions under the article or blog post itself, it helps the authors to maintain their article contents to help the readers and can also help any other reader if he has the same question. Asking a question on a separate forum doesn't help you, readers or anyone. ASP.NET...
Please Sign up or sign in to vote.
6 Oct 2015
Airbag
1 alternative  
I am generating a EmailConfirmationToken for email confirmation. The generated token looks like this:...
Please Sign up or sign in to vote.
6 Oct 2015
Richard Deeming
It looks like you've forgotten to URL-encode the code when you created the confirmation URL. For backwards-compatibility, browsers treat a + in the query-string as an encoded space.When you generate the URL, you need to use the HttpUtility.UrlEncode method[^] to encode the parameters....
Please Sign up or sign in to vote.
6 Oct 2015
Airbag
1 alternative  
I'm trying to implement a registration prozess for my webapp. I am using this process for generating a EmailConfirmationToken and sending it via email to the user. if (result.Succeeded) { string code = await userManager.GenerateEmailConfirmationTokenAsync(user.Id); Uri baseUri...
Please Sign up or sign in to vote.
6 Oct 2015
Member 12003400
For unique token create GUIDstring strToken = Convert.ToBase64String(Guid.NewGuid().ToByteArray());Or you can use date time time stamp and generate token.byte[] time = BitConverter.GetBytes(DateTime.UtcNow.ToBinary());byte[] key = Guid.NewGuid().ToByteArray();string token =...
Please Sign up or sign in to vote.
6 Apr 2021
Richard Deeming
The foreach block in your view makes no sense - why would a class representing a single user implement IEnumerable? But the problem appears to be in your action: // Find the user with the specified ID, and store it in the MyUser property:...
Please Sign up or sign in to vote.
13 Jul 2021
markmark01
1 alternative  
I have the code below Javascript and HTML I am implementing buttons for a queue of customers, each button that is clicked will increase a number. Until then I managed to solve. I want to identify each button that is clicked. For example. When...
Please Sign up or sign in to vote.
13 Jul 2021
Chris Copeland
All of your buttons are making calls to the JS uppass() method, but how do you identify which of the buttons made the click? You can add support for this by adding a parameter to your method: function uppass (key) { Then you can pass the value...
Please Sign up or sign in to vote.
19 Nov 2014
John Atten
In a previous post, we took a high-level look at using Identity 2.0 in the context of a Web Api application. We essentially poked and prodded the default Visual Studio Web Api project template, learned where things live, and got a basic sense for how it all is supposed to work.
Please Sign up or sign in to vote.
3 Feb 2015
Maximiliano Rios
In the first two articles, we could go through the process of creating and setting up an MVC project with Identity Framework 2.0. Now it's turn to handle external logins that are bundled already in the default project, we just need to activate them.
Please Sign up or sign in to vote.
16 Sep 2014
John Atten
Earlier this year we looked at Implementing Group-Based Permissions Management using the ASP.NET Identity 1.0 framework. The objective of that project was to gain a little more granular control of application authorization, by treating the now-familiar Identity Role as more of a "permission" which c
Please Sign up or sign in to vote.
22 Dec 2014
Siddharth R Barman
Implementing a custom UserStore for ASP.NET MVC5 authentication
Please Sign up or sign in to vote.
6 Nov 2014
John Atten
In recent posts, I've covered a lot of ground using ASP.NET Identity 2.0 in the context of an MVC application. Since it's RTM in March of this year, Identity 2.0 has offered a substantial expansion of the Authentication/Authorization . toolset available to MVC applications. Similarly, Identity 2.0
Please Sign up or sign in to vote.
23 Mar 2015
John Atten
This is the third post in a series in which we have built up a minimal, self-hosted, OWIN-based Web Api application essentially from scratch. In this post we'll pull in a minimal ASP.NET Identity implementation.
Please Sign up or sign in to vote.
15 May 2015
Mostafa Asaduzzaman
How to replace User.Identity.Name (Email) by Full Name in AspNet Identity 2.0
Please Sign up or sign in to vote.
25 Jan 2015
Maximiliano Rios
Creating our database context and extending roles
Please Sign up or sign in to vote.
24 Dec 2014
salemAlbadawi
i have a database contain a user table i need to force identity (CRUD) users methods to take action on tis table not on the AspNetUsers table how can i do this ????
Please Sign up or sign in to vote.
27 Jun 2015
Member 11283893
I want to use ASP.NET Identity for several websites that i have created, and i do want to use the same database on each of them.When i try to register two users with the same email, i get the "Name ****** is already taken." I have already set the field "RequireUniqueEmail = false" in...
Please Sign up or sign in to vote.
13 Aug 2014
Gupta Poonam
Not Sure but it happens if you are trying to insert a data and sql error occurred while inserting the data the identity get used. Next time when you insert it uses the next identity no.But this reason can explain missing of 1 or 2 identity entries.
Please Sign up or sign in to vote.
27 Feb 2015
Member 11380736
C# Visual Studio windows form...I'm experimenting on how to access other applications. I want to be able to click other application buttons through my program.I can't get this code right!It should click the number 2 in the calculator, but it clicks the "," sign.WinSpy++ shows that...
Please Sign up or sign in to vote.
21 Mar 2015
fahd951
1 alternative  
Hi Developers, Hope everybody doing well .. I'm trying to work with ASP.net membership also integrated with my APP,first I've created a sample web app to create the new users to membership table I've Added the membership tag to web.config and change the connection string to my...
Please Sign up or sign in to vote.
18 Jun 2015
Member 9769841
I want to know if it is possible to achieve the following using ASP.Net Identity and Asp.net mvc on an opinion polls where user will either vote up a question or vote it down. 1)Users can vote up/down after supplying there Username and password for Facebook.2)Post on that User's Wall.
Please Sign up or sign in to vote.
19 Aug 2015
lokopi.nagar
1 alternative  
I came across a Article on Web for Asp.net Identity here.They have this code:public class AppUserManager : UserManager { public AppUserManager(IUserStore store) : base(store) { } public static AppUserManager Create( ...
Please Sign up or sign in to vote.
6 Apr 2021
Banana Life
2 alternatives  
I try to add my user to role but its not working . What I have tried: [BindProperty] public MyUser MyUser { get; set; } public async Task OnPostAsync(string id, UserManagerrole) { if (id == null) { ...
Please Sign up or sign in to vote.
6 Apr 2021
Banana Life
//this is my view users list(IEnumerable)for super admin public IList MyUser { get; set; } public async Task OnGetAsync() { MyUser = await _context.Users.ToListAsync(); ...