Administration: Set up external STS login
You can setup Sitefinity CMS 6.0 and above to use external Security Token Service (STS), such as Facebook, Google, or Amazon.
PREREQUISITES: You must be running your project on IIS. For more information, see Run projects on IIS.
This way, your user do not need to explicitly register in Sitefinity CMS, but can use their Facebook, Google, or Amazon credentials.
- Download and install NuGet from https://nuget.org/.
- Download and extract the zip file from https://github.com/Sitefinity/Sitefinity-External-STS-Integration.
- Open you Sitefinity CMS project in Visual Studio.
- In the Solution Explorer, in the context menu of your solution, click Add... » Existing Project…
- Open the extracted archive, find and select OauthExternalAuthentication.csproj file.
The OauthExternalAuthentication project is added to your solution.
- In the Solution Explorer, under OauthExternalAuthentication project, open the context menu of References and click Add Reference…
- Select Browse tab and browse to the folder with your Sitefinity CMS project.
- Open the bin folder of your Sitefinity CMS project and select the following .dll files:
- Telerik.Sitefinity
- Telerik.Sitefinity.Model
- Telerik.Sitefinity.Utilities
- Telerik.OpenAccess
- Click OK.
- In Visual Studio, open the Package Management Console, by clicking Tools » Library Package Manager » Package Management Console.
The console opens. Perform the following:
- In Default project: dropdown box, select OauthExternalAuthentication and perform the following:
- In the console, enter Install-Package Microsoft.AspNet.Membership.OpenAuth and press ENTER.
- In the console, enter Install-Package DotNetOpenAuth.AspNet and press ENTER.
- In Default project: dropdown box, select SitefinityWebApp and perform the following:
- In the console, enter Install-Package Microsoft.AspNet.Membership.OpenAuth and press ENTER.
- In the console, enter Install-Package DotNetOpenAuth.AspNet and press ENTER.
- If you are running a Sitefinity CMS 6.1 project, in the console, enter Install-Package Newtonsoft.Json and press ENTER.
- Under your SitefinityWebApp project, open the context menu of References folder.
- On the Projects tab, select OauthExternalAuthentication and click OK.
- Build you solution.
- Login to your Sitefinity CMS backend and click Administration » Modules & Services » Install a module.
- In Name, enter OauthExternalAuthentication.
- In Type, enter OauthExternalAuthentication.OAuthAuthenticationModule, OauthExternalAuthentication
- Click Save.
The OAE module is registered as a module and has its own configuration section.
- To configure the parameters of the login providers, click Administration » Settings » Advanced.
- In the treeview on the left, click OAE and perform the following:
- Click Save changes.
- On your login page, instead of the Login widget, drop the OAutLogin widget.
- Click its Edit button and click Select a page.
- You can select a page where the Profile widget is added.
This way your users will be able to create and complete their profiles in Sitefinity.
The page that you selected is the page where the users are redirected after authenticating.
- Restart your application.