Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

appsettings.json missing #3765


User avatar
0
trippycat created

I'm trying to enable social logins and the development guide references:

ASP.NET Zero supports social media logins. To enable it, we should change the following settings in appsettings.json file.

But I've looked high and low in the project, and it doesn't seem to be included. Is there a blank template to add it? I'm using the MVC version.


2 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    To enable it, you should change the following settings in the web.config file.

    <add key="ExternalAuth.Facebook.IsEnabled" value="false" /> <add key="ExternalAuth.Facebook.AppId" value="" /> <add key="ExternalAuth.Facebook.AppSecret" value="" />

    <add key="ExternalAuth.Twitter.IsEnabled" value="false" /> <add key="ExternalAuth.Twitter.ConsumerKey" value="" /> <add key="ExternalAuth.Twitter.ConsumerSecret" value="" />

    <add key="ExternalAuth.Google.IsEnabled" value="false" /> <add key="ExternalAuth.Google.ClientId" value="" /> <add key="ExternalAuth.Google.ClientSecret" value="" />

  • User Avatar
    0
    trippycat created

    thanks!