Skip to main content

Questions tagged [asp.net-identity]

The ASP.NET Identity system is designed to replace the previous ASP.NET Membership and Simple Membership systems. Use the ASP.NET Core Identity tag for questions about Identity in ASP.NET Core.

Filter by
Sorted by
Tagged with
0 votes
2 answers
1k views

I have created a number of examples but can't find how the new tables are created. I am familiar with the code first approach and with the way they are automatically created with MVC4. Can anyone ...
user avatar
2 votes
1 answer
778 views

Why there is async and sync versions of UserManagerExtensions (like CreateLocalUser and CreateLocalUserAsync) but only async methods on RoleManagerExtensions? How I suppose to add user to a role from ...
graycrow's user avatar
  • 3,725
3 votes
1 answer
9k views

Hi I'm currently trying to write an MVC5 application that will have the ability to store the token received for the user after authorizing with facebook or twitter. I'd like to store this in the ...
Ian Rathbone's user avatar
2 votes
1 answer
3k views

I'm just trying to authentication a user with Asp.Identity in DelegatingHandler. Like this code above: ...
João Mello's user avatar
7 votes
1 answer
3k views

I have been struggling with the new Forms Identity process Microsoft introduced with the One Asp.Net implementation -- in particular with regards to Asp.NET MVC5. My issues are twofold: How to ...
Gustyn's user avatar
  • 2,164
31 votes
6 answers
35k views

I am developing a web site in ASP.NET MVC 5 (using RC1 version currently). The site will use Facebook for user authentication and for retrieving initial profile data. For the authentication system I ...
Konamiman's user avatar
  • 50.5k
0 votes
1 answer
1k views

I dont know asp.net identity work with EF, but I can override to I use Nhibernate. currently I use custom roles by using filter in my project, I do not need to use anotations roles = "admin", because ...
Rod's user avatar
  • 211
1 vote
3 answers
3k views

I have an Asp.Net MVC 5 application. I want to use user roles to authorize only some people to use a specific action. I've changed my Web.config file like this: <...
Alireza Noori's user avatar
7 votes
2 answers
10k views

I have installed the nightly build of the AspNet-identity assemblies from here It seems that the AuthenticationManager class from the RC version is gone from the ...
Olav Nybø's user avatar
  • 11.6k
2 votes
1 answer
2k views

Since there are a lot of changes between each version of Asp.Net Identity, is there a way to get early access to any upcoming changes going forward?
Hao Kung's user avatar
  • 28.2k
45 votes
6 answers
89k views

Edit: This question is outdated The Identity Framework was a moving target at the moment I asked this. The authors changed quite a few things and they have decoupled several others, making everything ...
Leonardo Herrera's user avatar
11 votes
3 answers
9k views

I am working in Visual Studio 2013 RC and am testing Forms Authentication using new Microsoft.AspNet.Identity.* packages. I would to integrate these concepts (...
zam6ak's user avatar
  • 7,299
3 votes
3 answers
9k views

I'm trying to get the current user in a web forms project using the new Visual Studio 2013 Preview for Web. I'm able to get the username using Page.User, but trying to get the user id is where I'm ...
Jack's user avatar
  • 950
0 votes
1 answer
1k views

While learning C# and MVC, I'm using the stock MVC template in VS2013 Preview, I'm trying to get a reference to the User class (what the templates creates in the IdentityModel.cs file) of both the ...
Sean's user avatar
  • 3
19 votes
3 answers
21k views

MVC5 uses a new Identity System. How can I get all role names? I try do access it via IdentityStore but without success.
daniel's user avatar
  • 35.9k
0 votes
2 answers
766 views

In my ASP.Net MVC 5 project, I have a custom initializer class: class CustomInitializer : DropCreateDatabaseIfModelChanges<GhazanetContext> I want to seed ...
Alireza Noori's user avatar
1 vote
1 answer
963 views

I am aware that MVC 5 uses Microsoft.AspNet.Identity, however I am still very confused working around it and I cant seem to figure how to do the equivalent of: ...
NelsonR's user avatar
  • 23
3 votes
3 answers
1k views

After Microsoft updated ASP.NET Identity framework to version 1.0.0-rc1, I can't find any documentation or guide how to use it. There is 2 sample projects on github (one, two), but they not covering ...
graycrow's user avatar
  • 3,725
163 votes
9 answers
227k views

How can I get the id of the currently logged in user in MVC 5? I tried the StackOverflow suggestions, but they seem to be not for MVC 5. Also, what is the MVC 5 best practice of assigning stuff to ...
Adam Szabo's user avatar
  • 11.4k
0 votes
2 answers
362 views

Please have patience I am new at MVC. I have created a model called "Book" which represents a text book, in my IdentityModel I added this: ...
Victorio Berra's user avatar
11 votes
1 answer
2k views

After Upgrading Microsoft.AspNet.Identity.Core to 1.0.0-rc1 several errors appear in the AccountController.cs And AppModel.cs classes which are generated by the default MVC5 templates in Visual Studio ...
Tim's user avatar
  • 7,461
5 votes
3 answers
2k views

Last night, I decided to try and implement SignalR to my application, and because I use MVC 5, I had to use the 2.0 beta of SignalR. And oh boy, what a timing. Last night, Microsoft also decided to ...
Inrego's user avatar
  • 1,561
4 votes
3 answers
5k views

Updated from entityframework 6.0.0-beta1 to 6.0.0-rc1 and when logging into my MVC5 application i get the following error ...
Tim's user avatar
  • 7,461
2 votes
0 answers
461 views

I'm trying to implement new ASP.NET Identity in my old project. I have an existing table called tda_Contacts in the database. The following code works fine without table attribute and creates all new ...
graycrow's user avatar
  • 3,725
23 votes
7 answers
52k views

I am using the ASP.NET Identity Sample from the Asp-Team, and i am trying to change the database for the IdentityDbContext... I tried it with the constructor <...
Nefarion's user avatar
  • 881
1 vote
0 answers
198 views

In another question, I explain my goal to create 2 different types of users with different capabilities in my ASP.Net MVC 5 website. I wonder how I would be able to modify my current database models ...
Alireza Noori's user avatar
13 votes
1 answer
25k views

Asp.Net MVC 4 Internet Application uses SimpleMembership. When you create a new MVC project on Visual Studio 2013 Preview, I think MVC 5 uses the new one. Do you know anything about it?? ...
yusuf's user avatar
  • 1,263
40 votes
14 answers
68k views

Microsoft recently introduced new ASP.NET Identity - replacement for old (Simple)Membership. Unfortunately, I can't use this new membership system in my old project because it throws System....
graycrow's user avatar
  • 3,725
2 votes
2 answers
1k views

I'm using ASP.Net MVC 5 from Visual Studio. I want to create a user profile with complex types. I have modified the code of the User class in ...
Alireza Noori's user avatar
0 votes
1 answer
537 views

How would I go about resetting the database that backs a Microsoft.AspNet.Identity.EntityFramework.IdentityAuthenticationManager. I went to go add ...
Adam Schiavone's user avatar
30 votes
7 answers
20k views

I'm trying to use the new MVC5 framework in VS 2013 preview. The membership authentication framework has been overhauled and replaced with OWin. In particular, I ...
mobiletonster's user avatar
22 votes
3 answers
16k views

I've been trying to implement a custom version of the new Identity features in ASP.NET 4.5 (Microsoft.AspNet.Identity), using Visual Studio 2013. After many hours of playing around with this, I've ...
Vito's user avatar
  • 520
0 votes
1 answer
433 views

I am new for 2013 MVC 5. I am trying to initial an user in seed of the configuration. However I don't not how to encrypt the secret in the context.Secrets.AddOrUpdate( i => i.UserName, new ...
user2609120's user avatar
5 votes
1 answer
2k views

I have created a new MVC5 application in Visual Studio 2013 (preview) with the latest ASP.NET and Web Tools 2013 Preview Refresh (1.0.0-beta1). I noticed that the IdentityConfig.cs is gone, together ...
Howie's user avatar
  • 367
10 votes
1 answer
9k views

I've looked through the current literature but I'm struggling to workout exactly how to make the new IdentityStore system work with your own database. My database'...
Tim's user avatar
  • 7,461
19 votes
4 answers
3k views

I'm currently building a new ASP.NET MVC 5 project which I want to release around September. I need to choose a membership system, but I'm currently quite confused about which direction should I take. ...
Martin Zikmund's user avatar
2 votes
1 answer
9k views

Using the Vs2013 preview, i created a c# webapp selecting MVC and WebAPI from the dialog. It compiled ok. If i update the references from the nuget package manager to the beta2 versions (include ...
Tim's user avatar
  • 7,461
5 votes
3 answers
2k views

With the new ASP.NET MVC 5 Preview released, how do I configure the Users context/table? In MVC 4 I would just use my own User class and then point the WebSecurity initialize to it, tike this: ...
Martin's user avatar
  • 1,634
12 votes
4 answers
15k views

I've got some ASP.NET MVC controller code that checks if a user is authenticated and if so, it checks to see if it has a specific claim. Works fine. I've got some ...
Pure.Krome's user avatar
  • 87.6k

1
177 178 179 180
181