For the complete documentation index, see llms.txt. This page is also available as Markdown.

ExternalLoginService

The ExternalLoginService is used to store the external login info and can be replaced with your own implementation.

  • Namespace: Umbraco.Cms.Core.Services

  • Assembly: Umbraco.Core.dll

All samples in this document will require references to the following dll:

  • Umbraco.Core.dll

All samples in this document will require the following using statements:

using Umbraco.Cms.Core.Services;

Getting the service

Dependency Injection

If you wish to use the entity service in a class, you need to specify the IExternalLoginService interface in your constructor:

public class MyClass
{
 private IExternalLoginService _externalLoginService;

 public MyClass(IExternalLoginService externalLoginService)
 {
  _externalLoginService = externalLoginService;
 }
}

In Razor views, you can access the entity service through the @inject directive:

Last updated

Was this helpful?