Table of Contents

Class ConnectionOptionsLinkedin

Namespace
Auth0.ManagementApi
Assembly
Auth0.ManagementApi.dll

Options for the 'linkedin' connection

[Serializable]
public record ConnectionOptionsLinkedin : IJsonOnDeserialized, IJsonOnSerializing, IEquatable<ConnectionOptionsLinkedin>
Inheritance
ConnectionOptionsLinkedin
Implements
Inherited Members
Extension Methods

Properties

AdditionalProperties

[JsonIgnore]
public AdditionalProperties AdditionalProperties { get; set; }

Property Value

AdditionalProperties

BasicProfile

Request the LinkedIn lite profile scope (r_liteprofile) to retrieve member id, localized first/last name, and profile picture. Off by default.

[JsonPropertyName("basic_profile")]
public bool? BasicProfile { get; set; }

Property Value

bool?

ClientId

[JsonPropertyName("client_id")]
public string? ClientId { get; set; }

Property Value

string

ClientSecret

[JsonPropertyName("client_secret")]
public string? ClientSecret { get; set; }

Property Value

string

Email

Request the email address scope (r_emailaddress) to return the member's primary email. Off by default.

[JsonPropertyName("email")]
public bool? Email { get; set; }

Property Value

bool?

FreeformScopes

[JsonPropertyName("freeform_scopes")]
public IEnumerable<string>? FreeformScopes { get; set; }

Property Value

IEnumerable<string>

FullProfile

Request the legacy full profile scope (r_fullprofile) for extended attributes. Deprecated by LinkedIn; use only if enabled for your app. Off by default.

[JsonPropertyName("full_profile")]
public bool? FullProfile { get; set; }

Property Value

bool?

Network

Request legacy network access (first-degree connections). Deprecated by LinkedIn and typically unavailable to new apps. Off by default.

[JsonPropertyName("network")]
public bool? Network { get; set; }

Property Value

bool?

NonPersistentAttrs

[JsonPropertyName("non_persistent_attrs")]
public IEnumerable<string>? NonPersistentAttrs { get; set; }

Property Value

IEnumerable<string>

Openid

Request OpenID Connect authentication support (openid scope). When enabled, the connection will request the 'openid' scope from LinkedIn, allowing the use of OpenID Connect flows for authentication and enabling the issuance of ID tokens. This is off by default and should only be enabled if your LinkedIn application is configured for OpenID Connect.

[JsonPropertyName("openid")]
public bool? Openid { get; set; }

Property Value

bool?

Profile

Always-true flag that ensures the LinkedIn profile scope (r_basicprofile/r_liteprofile/profile) is requested.

[JsonPropertyName("profile")]
public bool? Profile { get; set; }

Property Value

bool?

Scope

[JsonPropertyName("scope")]
public IEnumerable<string>? Scope { get; set; }

Property Value

IEnumerable<string>

SetUserRootAttributes

[JsonPropertyName("set_user_root_attributes")]
public ConnectionSetUserRootAttributesEnum? SetUserRootAttributes { get; set; }

Property Value

ConnectionSetUserRootAttributesEnum?

StrategyVersion

The strategy_version property determines which LinkedIn API version and OAuth scopes are used for authentication. Version 1 uses legacy scopes (r_basicprofile, r_fullprofile, r_network), Version 2 uses updated scopes (r_liteprofile, r_basicprofile), and Version 3 uses OpenID Connect scopes (profile, email, openid). If not specified, the connection defaults to Version 3.

[JsonPropertyName("strategy_version")]
public int? StrategyVersion { get; set; }

Property Value

int?

UpstreamParams

[JsonPropertyName("upstream_params")]
public Optional<Dictionary<string, ConnectionUpstreamAdditionalProperties?>?> UpstreamParams { get; set; }

Property Value

Optional<Dictionary<string, ConnectionUpstreamAdditionalProperties>>

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.