コード例 #1
0
 public AccountService(
     IIdentityServerInteractionService interaction,
     IHttpContextAccessor httpContextAccessor,
     IClientStore clientStore)
 {
     _interaction         = interaction;
     _httpContextAccessor = httpContextAccessor;
     _clientStore         = clientStore;
 }
コード例 #2
0
 public AccountController(
     IIdentityServerInteractionService interaction,
     IClientStore clientStore,
     IAuthenticationSchemeProvider schemeProvider,
     IEventService events,
     IIdentityService identityService,
     SignInManager <User> signInManager,
     TestUserStore users = null
     )
 {
     // if the TestUserStore is not in DI, then we'll just use the global users collection
     // this is where you would plug in your own custom identity management library (e.g. ASP.NET Identity)
     _users           = users ?? new TestUserStore(TestUsers.Users);
     _identityService = identityService;
     _signInManager   = signInManager;
     _interaction     = interaction;
     _clientStore     = clientStore;
     _schemeProvider  = schemeProvider;
     _events          = events;
 }