services.AddAuthentication(options => /* Auth configuration */)
.AddLinkedIn(options =>
{
options.ClientId = "my-client-id";
options.ClientSecret = "my-client-secret";
});None.
| 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. |