Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

NopAuthenticationDefaults.cs

using Microsoft.AspNetCore.Http;

namespace Nop.Services.Authentication;

/// 
/// Represents default values related to authentication services
/// 
public static partial class NopAuthenticationDefaults
{
    /// 
    /// The default value used for authentication scheme
    /// 
    public static string AuthenticationScheme => "Authentication";

    /// 
    /// The default value used for external authentication scheme
    /// 
    public static string ExternalAuthenticationScheme => "ExternalAuthentication";

    /// 
    /// The issuer that should be used for any claims that are created
    /// 
    public static string ClaimsIssuer => "nopCommerce";

    /// 
    /// The default value for the login path
    /// 
    public static PathString LoginPath => new("/login");

    /// 
    /// The default value for the access denied path
    /// 
    public static PathString AccessDeniedPath => new("/page-not-found");
    
    /// 
    /// Gets a key to store external authentication errors to session
    /// 
    public static string ExternalAuthenticationErrorsSessionKey => "nop.externalauth.errors";
}