Integrating the LinkedIn Provider

July 11, 2020 ยท View on GitHub

Example

services.AddAuthentication(options => /* Auth configuration */)
        .AddLinkedIn(options =>
        {
            options.ClientId = "my-client-id";
            options.ClientSecret = "my-client-secret";
        });

Required Additional Settings

None.

Optional Settings

Property NameProperty TypeDescriptionDefault Value
EmailAddressEndpointstringThe address of the endpoint exposing the email addresses associated with the logged in user.LinkedInAuthenticationDefaults.EmailAddressEndpoint
FieldsISet<string>The fields to retrieve from the user's profile. The possible values are documented here.[ "id", "firstName", "lastName", "emailAddress" ]
MultiLocaleStringResolverFunc<IReadOnlyDictionary<string, string>, string?, string>A delegate to a method that returns a localized value for a field returned for the user's profile.A delegate to a method that returns either the preferredLocale, the value for Thread.CurrentUICulture or the first value.