What is the way to do the aboslute same app BUT with user authentication? https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/?view=aspnetcore-2.1
If I just select the user authentication in the beginning, the migrations get messed up and MvcMovie link remains unresponsive.
Thanks!
Try to read this blog from Microsoft. This will help you start how to implement Identity and Authentication
Related
I'm trying to rewrite an old mvc1 application as a vNext app in vs2014. Application authenticates against the company's active directory. Here's a bit of a background to help clarify where my confusion is coming from.
I wrote one app in mvc4 which authenticates the following way:
1. Vs template had account login post action with isValid method
2. I wrote my membership provider and registered it through web.config
3. When I run application isValid is now calling my override that does authentication
Now I'm in vNext and here's what I see
1. Same account and login method except there's some signinmanager and user manager passed into it. I'm yet to see where it's coming from exactly. I suspect it's through startup.cs
2. I see that isValid is replaced with something like Passwordsigninasync which I think I need to override to login the user.
Here's my question how do I make Passwordsigninasync authenticate to our AD? I can go solo and ignore the framework to make it work but I'm sure there's an easy way to do it and I'm just missing some understanding of how plumbing works in vNext. Appreciate any help in the right direction.
It sounds like you have the default implementation of ASP.NET Identity setup, but want it to use Active Directory rather than individual accounts.
See the following for a walkthrough: On-Premises Organizational Authentication
I am just a beginner of ASP.NET MVC. I have done some page by asp.net mvc but now I need to do form log in by using MVC. The login user name and password are store in database. Can anyone propose or share me some idea of how to do that? I really have no idea about that. Thanks.
Since you are new to Asp.net MVC, I would suggest you to follow a tutorial which will provide a great insight of how things shape up in this new framework. You can follow the Tutorial MVC Music Store from asp.net
It contains all the basic ingredients of a web application from user authentication to CRUD operations.
You may configure your web-app via Form Authentication. Take a look at tutorial - Authenticating Users with Forms Authentication. and SO thread - User authentication and authorisation in ASP.NET MVC
Hi does someone have a link or can offer some guidance on HOW the facebook C# SDK could be used to provide access credentials to facebook along side ASP.Net membership?
Basically what i would like to do is have some kind of connect button on my profile view that when clicked opens the facebook app authorization window, if the user signs in and agrees the facebook auth cookie is returned or accessible so i can store in locally in my DB.
I originally tried to figure out how to do this using dotnetopenauth about 9 months ago and eventually gave up. ANY help is appreciated. thanks!
I haven't done it, but it shouldn't be too hard I think.
I'm assuming you already know how to "authenticate" users with Facebook using the C# SDK. At that very point where you consider them "authenticated" hook into it and perhaps use FormsAuthentication.SetAuthCookie() to manually authenticate the user from the default ASP.NET membership's perspective.
I have a project with login.aspx view.aspx etc etc....In the login page, after the user has been authorized, I have to open a Dynamic Data Entities application.
The problem is how to pass the value of the session containing the username while keeping the same sessionID?
Help :-)
You can not share a asp.net session between two web applications I'm afraid.
You might want to have a look at the link below - very good summary of ASP.net single sign on options:
http://blogs.neudesic.com/blogs/michael_morozov/archive/2006/03/17/72.aspx
How exactly can one implement a Log off function when using ASP.NET Forms Authentication on an intranet application?
How will this work if I am an administrator and want to log in "as someone else" into the application?
Please share your ideas
FormsAuthentication.SignOut(); ;)
The preferred authentication for an intranet application is to use windows authentication instead of forms authentication.
In which case you can just log off of windows and login as "someone" else.
Don't forget to also add Session.Abandon() to ensure session data is purged as well