Exemplo n.º 1
0
 public ResourceOwnerPasswordValidator(
     ILogger <ResourceOwnerPasswordValidator> logger,
     IEventService events,
     IUniApiClient uniApiClient
     )
 {
     _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
     _events       = events ?? throw new ArgumentNullException(nameof(events));
     _uniApiClient = uniApiClient ?? throw new ArgumentNullException(nameof(uniApiClient));
 }
Exemplo n.º 2
0
 public AccountService(
     IOptionsSnapshot <IdentityServerConfiguration> identityServerCommonOptions,
     [NotNull] IHttpContextAccessor contextAccessor,
     [NotNull] IUniApiClient uniApiClient,
     [NotNull] IIdentityServerInteractionService interaction
     )
 {
     _identityServerCommonOptions = identityServerCommonOptions?.Value?.Common ??
                                    throw new ArgumentNullException(nameof(identityServerCommonOptions));
     _contextAccessor = contextAccessor ?? throw new ArgumentNullException(nameof(contextAccessor));
     _uniApiClient    = uniApiClient ?? throw new ArgumentNullException(nameof(uniApiClient));
     _interaction     = interaction ?? throw new ArgumentNullException(nameof(interaction));
 }
Exemplo n.º 3
0
 public ProfileService([NotNull] IUniApiClient uniApiClient)
 {
     _uniApiClient = uniApiClient ?? throw new ArgumentNullException(nameof(uniApiClient));
 }