Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of <see cref="CookieAnonymousUserManager"/>.
 /// </summary>
 /// <param name="httpContextAccessor">The http context accessor.</param>
 /// <param name="anonUserFactory">The anonymous user factory.</param>
 /// <param name="sharedUserSession">The shared session.</param>
 /// <param name="anonOptions">The anonymous options.</param>
 public CookieAnonymousUserManager(
     IHttpContextAccessor httpContextAccessor,
     IAnonymousUserFactory anonUserFactory,
     ISharedUserSession sharedUserSession,
     AnonymousIdentityServerOptions anonOptions)
 {
     _httpContextAccessor        = httpContextAccessor;
     _anonUserFactory            = anonUserFactory;
     _sharedUserSession          = sharedUserSession;
     _checkAnonymousIdCookieName = anonOptions.CheckAnonymousIdCookieName;
 }
 public AnonymousAuthorizeRequestValidator(
     Decorator <IAuthorizeRequestValidator> decorator,
     AnonymousIdentityServerOptions options,
     ISharedUserSession userSession,
     IAnonymousUserManager anonUserManager,
     IAnonymousSignInManager anonSignInManager,
     IAnonymousUserFactory anonUserFactory)
 {
     _inner             = decorator.Instance;
     _options           = options;
     _userSession       = userSession;
     _anonUserManager   = anonUserManager;
     _anonSignInManager = anonSignInManager;
     _anonUserFactory   = anonUserFactory;
 }