How to Customize ASP.NET SqlMemberShip Provider using RavenDB and MVC4.From where i can start??I have searced a lot about this.Please provide me with good turorials links.
Thanks in advance..
I think you can not customize SqlMembershipProvider, but you can create your own Membership that works with RavenDb.
There's a good example created by Martijn Boland, check http://blogs.taiga.nl/martijn/2010/11/25/raven-db-asp-net-membership-provider/
You can download the Membership source code, it works with an embedded database, I think you can change that if needed, and it has a sample web aplication. Here is the link for the download page
https://github.com/martijnboland/RavenDBMembership
Related
I am trying to authenticate user against existing database. I found that I need to implement IUserStore. I am trying to create Custom User implementing IUser, I can find IUser is in Microsoft.AspNet.Identity assembly. Is there equivalent interface in asp.net core?
Any help is appreciated.
Thanks,
I have just been Googling for the same and I have found this closed issue on GitHub https://github.com/aspnet/Identity/issues/948
From the comments it seems that the interfaces don't exist, but we still have to provide the methods on our UserStore... sounds a bit confusing to me.
I have also found https://learn.microsoft.com/en-us/aspnet/core/security/authentication/cookie which describes cookie middleware without ASP.NET Core Identity.
These are also good reading https://andrewlock.net/introduction-to-authentication-with-asp-net-core/ and https://andrewlock.net/exploring-the-cookieauthenticationmiddleware-in-asp-net-core/
I am somewhat of a novice application developer, certainly very new to MVC4 and have been through a number of handy tutorials to learn the core principles of MVC. I do get lost with terminology as someone who is entirley self taught.
I am trying to replace an application I wrote previously that uses ASP.net membership which I was able to create myself. This application is an issue logging and reporting system that does a lot with an SQL database.
I have no concern dropping all the users and rebuilding the user database in the new simplemembership provider. Although, I am not sure where to start.
I feel as though using the ready made "internet application" template means I end up with loads of files / folders I do not need (or understand), so my question is, how to I start with MVC4 and simplemembership, ideally without using the "internet application" template.
Thank you.
The Internet template does not add that many unnecessary files. It will add controllers, views, and models you will need for handling user log-on and registration. If you start from an Empty MVC project you will have to create these items from scratch. If you want to start from scratch I would take a look at the open source project SimpleSecurity that decouples SimpleMembership from your MVC application. There is an article here that describes this approach which will make it easier to incorporate SimpleMembership into an Empty MVC project. You can look at the example in the SimpleSecurity project so you can copy the controllers, views and models you will need. The example adds email confirmation and other features that are not available in the Internet template.
There are some unnecessary files, but it depends on how you define "unnecessary".
If you don't care about signing in with a facebook or google account, and you don't care about WebApi, and you don't care about knockout.js and other stuff, you're free to delete it. You can use Nuget to uninstall the Webapi stuff. And you can also remove the OpenId stuff, but you will have to modify your AccountController to remove the code that makes use of it.
It would help if you could ask specific questions.. vague questions like this are hard to answer because we don't know what's unnecessary for you.
Thanks for your help, I know my question was vague, but I was only able to build my new site from an empty template by following this guide.
I have changed a few things (i.e. an instance of SQL rather than local DB) and it all worked.
How to add ASP.NET Membership Provider in a Empty MVC 4 Project Template?
I need to develop custom membership provider in Sitefinity Project.
I have to shown my users (from my custom table not Sitefinity's inbuilt table) to Sitefinity Backend of the site.
How to do this?
Thanks in advance.
Have you taken a look at the Sitefinity documentation: http://www.sitefinity.com/documentation/documentationarticles/creating-a-custom-membership-provider
this has a complete tutorial on building a custom membership provider that uses external data to manage users.
I hope this is helpful!
I am create a new asp.net website and I need to use a few authentication provider. I easily got all the providers working (thanks to this awesome template and scotts vid). I'm a little stuck with getting this to work with a linked in account. I assume it would be just as easy as it was for face book but I can't find any tutorials or snippets. I'm sure I'm not the first guy to try this. Please assist
Thank you
In the AuthConfig class under the RegisterAuth method call the method
OAuthWebSecurity.RegisterLinkedInClient("xxxxx","xxxxxxx");
with the appropriate inputs you receive from LinkedIn. Also another thing, I received an error when trying to log in using linkedin. I came across a post on stack overflow(wish I can give the link), you need to update
dotnetopenauth, I used nuget to update it. Thanks PinnyM.
I'm pretty much a newbie in programming C# and I've been looking for quite some time now.
I need help with page authentication in a Silverlight navigation application.
I have a SQL Database running and a WCF service that gets the credentials out of that database. When the user is logged in he needs to see a link in the upper right corner with his profile.
How can I do this without using any help from silverlight? Is this even possible? Can I write a class that says "this user is authenticated and can see the following pages" on my own?
This is a really urgent issue. So thanks in advance for anyone's help!
Firstly use AspNet Membership ,
Most of classes you need implemented yet.
This link shows you how to setup membershipt tables to your SQL Server DB.
http://weblogs.asp.net/sukumarraju/archive/2009/10/02/installing-asp-net-membership-services-database-in-sql-server-expreess.aspx
In membership struct you can register,delete, lock - unlock ,store user details operations,... and more easier.
Here is an article explains implementation of membership for you,
http://blogs.msdn.com/b/kylemc/archive/2010/05/10/using-asp-net-membership-in-silverlight.aspx