Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

982 B
Raw Blame
using System.Security.Claims;

namespace Grand.Business.Core.Utilities.Authentication;

/// <summary>
///     External auth param
/// </summary>
public class ExternalAuthParam
{
    /// <summary>
    ///     Gets or sets the external authentication provider's system name
    /// </summary>
    public string ProviderSystemName { get; set; }

    /// <summary>
    ///     Gets or sets user id
    /// </summary>
    public string Identifier { get; set; }

    /// <summary>
    ///     Gets or sets user name
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    ///     Gets or sets access token
    /// </summary>
    public string AccessToken { get; set; }

    /// <summary>
    ///     Gets or sets user email
    /// </summary>
    public string Email { get; set; }

    /// <summary>
    ///     Gets or sets the additional user info as a list of a custom claims
    /// </summary>
    public IList<Claim> Claims { get; set; } = new List<Claim>();
}