Class UserExternalLoginProviderModel
Represents information about an external login provider and its association with a user.
Inheritance
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class UserExternalLoginProviderModel
Constructors
View SourceUserExternalLoginProviderModel(string, bool, bool, string?)
Initializes a new instance of the UserExternalLoginProviderModel class.
Declaration
public UserExternalLoginProviderModel(string providerSchemeName, bool isLinkedOnUser, bool hasManualLinkingEnabled, string? providerKey)
Parameters
| Type | Name | Description |
|---|---|---|
| string | providerSchemeName | The authentication scheme name of the provider. |
| bool | isLinkedOnUser | Indicates whether the provider is linked to the user. |
| bool | hasManualLinkingEnabled | Indicates whether manual linking is enabled for this provider. |
| string | providerKey | The provider-specific key for the user, if linked. |
Properties
View SourceHasManualLinkingEnabled
Gets a value indicating whether manual linking is enabled for this provider.
Declaration
public bool HasManualLinkingEnabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
When enabled, users can manually link/unlink their account with this provider.
IsLinkedOnUser
Gets a value indicating whether this external login provider is linked to the user.
Declaration
public bool IsLinkedOnUser { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ProviderKey
Gets or sets the provider-specific key identifying the user with this provider.
Declaration
public string? ProviderKey { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The provider key, or |
ProviderSchemeName
Gets the authentication scheme name of the external login provider.
Declaration
public string ProviderSchemeName { get; }
Property Value
| Type | Description |
|---|---|
| string |