Login Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

A class representing an external login, e.g. Active Directory, Google, Windows etc.

public class Login
Inheritance:
System.Object → Login

Constructors

Login()

Properties

Claims Gets or sets the claims received from the external login provider.
Email Gets or sets the email claim from the external login provider.
Id Gets the login id.
Iss Gets or sets the issuer of the login.
Sub Gets or sets the unique user id in the external systwem.
SyncedAt Gets the time the User was last synchronized with the authentication provider.
Type Gets or sets the authentication type.
UserId Gets or sets the id of the associated User.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.