ASP.NET MVC with Facebook Connect template project - asp.net

I'm looking for template project that uses Facebook Connect instead of ASP.NET Membership service with ASP.NET MVC 1.0/2.0/3.0. It should support connect (login) and logof and storing user data to the database. Is there something like that?
And second question: Would YOU like to participate in building such tamplate? (if similar project doesn't exist)

Not a template, but take a look at Janrain Engage. It's a connector for several social networking sites, Facebook included.

Maybe you can try this one http://facebooktoolkit.codeplex.com/

Related

ASP.NET VB Web app using azure authentication

I have a basic website created using VB.NET. I need to add authentication and, as we use Azure Active Directory, I thought I could connect it to that.
All I need to do is be able to have the username of the current user, so I can then turn on or off buttons etc depending who they are.
All the examples I can find are for ASP.NET Web applications.
How do I add to a standard site?
Thanks
Gareth

will Microsoft.Identity.Web work with Asp.net web apps with aspx pages?

will Microsoft.Identity.Web work with Asp.net web apps with aspx pages? if supports how do I register the authentication?.
In .NetCore Startup.cs
services.AddAuthentication().AddMicrosoftIdentityWebApp(Configuration.GetSection("AzureAdB2C"), "b2c", "cookiesB2C");
The above line we use in .net core to configure the identity web.
In Asp.net Webapp which uses aspx
how do we register?
According to this, yes you can do this:
https://learn.microsoft.com/en-us/aspnet/identity/overview/getting-started/adding-aspnet-identity-to-an-empty-or-existing-web-forms-project
I don't know if user database (table of users), and then a roles table is to be created, but the above outlines the steps required, and thus this is possible.
According to above, then YES a database table of users is required, and created.
so how to set this up is a bit much for a SO simple answer, but at least the above does outline the steps.

Asp.NET and Asp.NET Core Identity model over the same database

I have two applications, one in asp.net and the other in asp.net core. I want to share a common database, as well as the same login. Ie, a user can register via asp.net application, and then their identity will be shared with asp.net core application.
Is this possible? I notice that each have their own identity models, and I am looking for a way of sharing this, ie. some documentation to resolve this.
Looking for:
- Is this possible?
- Documentation and more information on implementation (how to)
I am resolving by use of Identity Server, which both applications will hook into. Will just take a bit of re-jigging.

How to setup RIA Services to use an existing ASP.Net membership base

I'd like to make an OOB Silverlight app based on the Silverlight Business Application template in Visual Studio. The template uses the default ASP.Net membership provider. I understand how to use that to add users and roles, etc. I've found plenty of tutorials on that. What I'd like to be able to do, is configure the Silverlight template so that it uses an existing ASP.Net membership base. We'd like this app to have a companion website (ASP.Net based).
To clarify: We've been able to setup an ASP.Net website and have created a SQL database with the required tables (aspnet_Users, aspnet_Membership, etc.). I'd like to configure a Silverlight app to access the same users and roles that are in those tables.
Can anyone help me out in terms of what I'd need to put in the Web.config? Do I just need a connection string? I'm new to ASP.Net authentication, but I'd rather use what ASP.Net gives me out of the box than have to write my own authentication service. I feel like this should be really easy, and is just a matter of pointing the Silverlight app in the right direction.
I'd like to use Silverlight 5 and .Net 4.5 if I can but I don't mind using an older version of either if it makes things easier.
You can just point the connection string to the existing database.
From this answer:
You can point your connection string for authentication to a database that all application can access.
So if you have the default database that .NET creates, you can point your other application to that as well for authentication.

Is there a web application layer over AdventureWorks?

I'm wondering if anyone has implemented a web UI on top of the AdventureWorks database? IOW, I'm not looking for just a application data layer on top of the schema. Rather, I'm wondering whether anyone has created an ecommerce front end on top the AdventureWorks schema?
Sounds like a good chance to try ASP.NET Dynamic Data (point it at a database and generate a web application that supports basic CRUD procedures).
The SQL Server Samples Portal Page has an end-to-end product sample called Storefront which uses the AdventureWorks database as the backend:
Scenario
A developer wants to implement an e-commerce Web site. The Web site
should offer additional product recommendations based on the contents
of the shopping cart (product up sell).
Languages
Transact-SQL, XML, XSD, Visual C#, and Visual Basic.
You can easily generate one with Subsonic (free)
There are commercial products that can generate an entire application by pointing at a database, IronSpeed, for example. (Has a trial version)

Resources