Example #1
0
 public BearerAuthorizeFilter(/*IAuthCodeGrantRepository authCodeGrantRepository*/)
 {
     _authCodeGrantRepository = new AuthCodeGrantRepository(new DataContext());
 }
Example #2
0
 public OAuthController(CryptographicService cryptographicService, IConfigRepository configRepository, IAuthCodeGrantRepository accessTokenRepository)
 {
     _accessTokenRepository = accessTokenRepository;
     _config        = configRepository.GetConfig();
     _cryptoService = cryptographicService;
 }