Ejemplo n.º 1
0
 public GetJwsPayload(
     IGrantedTokenValidator grantedTokenValidator,
     IJwtGenerator jwtGenerator,
     IClientRepository clientRepository,
     ITokenStore tokenStore)
 {
     _grantedTokenValidator = grantedTokenValidator;
     _jwtGenerator          = jwtGenerator;
     _clientRepository      = clientRepository;
     _tokenStore            = tokenStore;
 }
Ejemplo n.º 2
0
 public GetJwsPayload(
     IGrantedTokenValidator grantedTokenValidator,
     IGrantedTokenRepository grantedTokenRepository,
     IJwtGenerator jwtGenerator,
     IClientRepository clientRepository)
 {
     _grantedTokenValidator  = grantedTokenValidator;
     _grantedTokenRepository = grantedTokenRepository;
     _jwtGenerator           = jwtGenerator;
     _clientRepository       = clientRepository;
 }
Ejemplo n.º 3
0
 public UsersController(IGrantedTokenValidator grantedTokenValidator,
                        IGrantedTokenRepository grantedTokenRepository,
                        IRequestBuilder requestBuilder,
                        IHostingEnvironment hostingEnvironment,
                        IResourceOwnerRepository resourceOwnerRepository,
                        IAuthenticateResourceOwnerService authenticateResourceOwnerService,
                        ISumupClient sumUpClient)
 {
     _grantedTokenValidator            = grantedTokenValidator;
     _grantedTokenRepository           = grantedTokenRepository;
     _requestBuilder                   = requestBuilder;
     _hostingEnvironment               = hostingEnvironment;
     _resourceOwnerRepository          = resourceOwnerRepository;
     _authenticateResourceOwnerService = authenticateResourceOwnerService;
     _sumUpClient = sumUpClient;
 }
Ejemplo n.º 4
0
 public GrantedTokenHelper(ITokenStore tokenStore, IGrantedTokenValidator grantedTokenValidator)
 {
     _tokenStore            = tokenStore;
     _grantedTokenValidator = grantedTokenValidator;
 }
 private void InitializeFakeObjects()
 {
     _grantedTokenRepositoryStub = new Mock <ITokenStore>();
     _grantedTokenValidator      = new GrantedTokenValidator(_grantedTokenRepositoryStub.Object);
 }
Ejemplo n.º 6
0
 public GrantedTokenHelper(IGrantedTokenRepository grantedTokenRepository, IGrantedTokenValidator grantedTokenValidator)
 {
     _grantedTokenRepository = grantedTokenRepository;
     _grantedTokenValidator  = grantedTokenValidator;
 }