C# Class Microsoft.AspNetCore.Builder.BuilderExtensions

显示文件 Open project: joeaudette/cloudscribe

Public Methods

Method Description
SetupAppCookie ( this app, SiteAuthCookieValidator siteValidator, string scheme, bool useRelatedSitesMode, SiteContext tenant, CookieSecurePolicy cookieSecure = CookieSecurePolicy.SameAsRequest ) : CookieAuthenticationOptions
SetupOtherCookies ( this app, string scheme, bool useRelatedSitesMode, SiteContext tenant, CookieSecurePolicy cookieSecure = CookieSecurePolicy.None ) : CookieAuthenticationOptions
UseCloudscribeCoreDefaultAuthentication ( this builder, ILoggerFactory loggerFactory, MultiTenantOptions multiTenantOptions, SiteContext tenant, CookieSecurePolicy applicationCookieSecure = CookieSecurePolicy.SameAsRequest ) : IApplicationBuilder
UseSocialAuth ( this app, SiteContext site, CookieAuthenticationOptions externalCookieOptions, bool shouldUseFolder ) : IApplicationBuilder

Method Details

SetupAppCookie() public static method

public static SetupAppCookie ( this app, SiteAuthCookieValidator siteValidator, string scheme, bool useRelatedSitesMode, SiteContext tenant, CookieSecurePolicy cookieSecure = CookieSecurePolicy.SameAsRequest ) : CookieAuthenticationOptions
app this
siteValidator cloudscribe.Core.Identity.SiteAuthCookieValidator
scheme string
useRelatedSitesMode bool
tenant cloudscribe.Core.Models.SiteContext
cookieSecure CookieSecurePolicy
return CookieAuthenticationOptions

SetupOtherCookies() public static method

public static SetupOtherCookies ( this app, string scheme, bool useRelatedSitesMode, SiteContext tenant, CookieSecurePolicy cookieSecure = CookieSecurePolicy.None ) : CookieAuthenticationOptions
app this
scheme string
useRelatedSitesMode bool
tenant cloudscribe.Core.Models.SiteContext
cookieSecure CookieSecurePolicy
return CookieAuthenticationOptions

UseCloudscribeCoreDefaultAuthentication() public static method

public static UseCloudscribeCoreDefaultAuthentication ( this builder, ILoggerFactory loggerFactory, MultiTenantOptions multiTenantOptions, SiteContext tenant, CookieSecurePolicy applicationCookieSecure = CookieSecurePolicy.SameAsRequest ) : IApplicationBuilder
builder this
loggerFactory ILoggerFactory
multiTenantOptions cloudscribe.Core.Models.MultiTenantOptions
tenant cloudscribe.Core.Models.SiteContext
applicationCookieSecure CookieSecurePolicy
return IApplicationBuilder

UseSocialAuth() public static method

public static UseSocialAuth ( this app, SiteContext site, CookieAuthenticationOptions externalCookieOptions, bool shouldUseFolder ) : IApplicationBuilder
app this
site cloudscribe.Core.Models.SiteContext
externalCookieOptions CookieAuthenticationOptions
shouldUseFolder bool
return IApplicationBuilder