title: Setting Up LinkedIn/OAuth Authentication in ASP.NET Core 2.0
body: <p>I'm trying to add LinkedIn authentication to my ASP.NET Core 2.0 app but getting the following error:</p>
  
  <blockquote>
    <p>No authentication handler is configured to handle the scheme: LinkedIn</p>
  </blockquote>
  
  <p>Here's how I add LinkedIn/OAuth authentication in the <code>ConfigureServices</code> in <code>Startup.cs</code>:</p>
  
  <pre><code>services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
     .AddCookie("internal_cookie", options =&gt; {
           options.AccessDeniedPath = "/Account/Forbidden/";
           options.LoginPath = "/Account/Login";
      })
     .AddCookie("external_cookie")
     .AddOAuth("LinkedIn", options =&gt; {
  
           options.SignInScheme = "external_cookie";
           options.ClientId = "1234567890";
           options.ClientSecret = "1234567890";
           options.CallbackPath = "/linkedin-callback";
  
           options.AuthorizationEndpoint = "https://www.linkedin.com/oauth/v2/authorization";
           options.TokenEndpoint = "https://www.linkedin.com/oauth/v2/accessToken";
           options.UserInformationEndpoint = "https://api.linkedin.com/v1/people/~:(id,first-name,last-name,email-address,picture-url,picture-urls::(original))";
  
           options.Scope.Add("r_basicprofile");
           options.Scope.Add("r_emailaddress");
  
           options.Events = new OAuthEvents
           {
               OnCreatingTicket = OnCreatingTicketLinkedInCallBack,
               OnTicketReceived = OnTicketReceivedCallback
           };
      })
      .AddFacebook(options =&gt;
      {
            options.AppId = "1234567980";
            options.AppSecret = "1234567890";
            options.Events = new OAuthEvents
            {
               OnCreatingTicket = OnCreatingTicketFacebookCallback,
               OnTicketReceived = OnTicketReceivedCallback
            };
       })
       .AddGoogle(options =&gt;
       {
             options.ClientId = "1234567890";
             options.ClientSecret = "1234567890";
             options.CallbackPath = "/google-callback";
             options.Events = new OAuthEvents
             {
                OnCreatingTicket = OnCreatingTicketGoogleCallback,
                OnTicketReceived = OnTicketReceivedCallback
             };
  });
  </code></pre>
  
  <p>Where's my error?</p>
  
  <p>UPDATE:
  After making the corrections suggested, I'm now getting the following error:</p>
  
  <blockquote>
    <p>No IAuthenticationSignInHandler is configured to handle sign in for
    the scheme: social_login</p>
  </blockquote>