public PlatformSigningOutContext(
     HttpContext context,
     PlatformAuthenticationOptions options,
     AuthenticationProperties properties,
     CookieOptions cookieOptions)
     : base(context, options)
 {
     CookieOptions = cookieOptions;
     Properties    = properties;
 }
        public BasePlatformContext(
            HttpContext context,
            PlatformAuthenticationOptions options)
            : base(context)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            Options = options;
        }
예제 #3
0
        public PlatformValidatePrincipalContext(HttpContext context, AuthenticationTicket ticket, PlatformAuthenticationOptions options)
            : base(context, options)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            if (ticket == null)
            {
                throw new ArgumentNullException(nameof(ticket));
            }

            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            Principal  = ticket.Principal;
            Properties = ticket.Properties;
        }
 public PlatformRedirectContext(HttpContext context, PlatformAuthenticationOptions options, string redirectUri, AuthenticationProperties properties)
     : base(context, options)
 {
     RedirectUri = redirectUri;
     Properties  = properties;
 }