Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.36 KB

linkedin.md

File metadata and controls

24 lines (18 loc) · 1.36 KB

Integrating the LinkedIn Provider

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 Name Property Type Description Default Value
EmailAddressEndpoint string The address of the endpoint exposing the email addresses associated with the logged in user. LinkedInAuthenticationDefaults.EmailAddressEndpoint
Fields ISet<string> The fields to retrieve from the user's profile. The possible values are documented here. [ "id", "firstName", "lastName", "emailAddress" ]
MultiLocaleStringResolver Func<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.