public ApplicationManager(IOpenIddictApplicationStore <Applications> applicationStore,
                           ILogger <OpenIddictApplicationManager <Applications> > logger,
                           ApplicationStore store
                           ) : base(applicationStore, logger)
 {
     Store = store;
 }
Ejemplo n.º 2
0
 public OpenIddictApplicationManager(
     [NotNull] IOpenIddictApplicationStore <TApplication> store,
     [NotNull] ILogger <OpenIddictApplicationManager <TApplication> > logger)
 {
     Store  = store;
     Logger = logger;
 }
 public AbpOpenIddictApplicationCache(
     IDistributedCache <OpenIddictApplicationModel> cache,
     IDistributedCache <OpenIddictApplicationModel[]> arrayCache,
     IOpenIddictApplicationStore <OpenIddictApplicationModel> store)
     : base(cache, arrayCache, store)
 {
 }
Ejemplo n.º 4
0
 public ApplicationApplicationManager(
     IOpenIddictApplicationStore <DynamoIdentityApplication> store,
     ILogger <OpenIddictApplicationManager <DynamoIdentityApplication> > logger)
     : base(store, logger)
 {
     _store = store as DynamoApplicationStore <DynamoIdentityApplication, DynamoIdentityToken>;
 }
Ejemplo n.º 5
0
 public ApplicationManager(
     IOpenIddictApplicationStore <TApplication> store,
     ILogger <OpenIddictApplicationManager <TApplication> > logger)
     : base(store, logger)
 {
     //Store = store;
     // = logger;
 }
 public OpenIddictApplicationManager(
     [NotNull] IServiceProvider services,
     [NotNull] IOpenIddictApplicationStore <TApplication> store,
     [NotNull] ILogger <OpenIddictApplicationManager <TApplication> > logger)
 {
     Context = services?.GetRequiredService <IHttpContextAccessor>()?.HttpContext;
     Store   = store;
     Logger  = logger;
 }
        public OpenIddictApplicationCache(
            [NotNull] IOptionsMonitor <OpenIddictCoreOptions> options,
            [NotNull] IOpenIddictApplicationStoreResolver resolver)
        {
            _cache = new MemoryCache(new MemoryCacheOptions
            {
                SizeLimit = options.CurrentValue.EntityCacheLimit
            });

            _signals = new ConcurrentDictionary <string, CancellationTokenSource>(StringComparer.Ordinal);
            _store   = resolver.Get <TApplication>();
        }
Ejemplo n.º 8
0
        public async Task <CreateAuthorizationPayload> CreateAuthorizationAsync(
            [Service] IOpenIddictApplicationStore <ApplicationAuthorization> service, AuthorizationInput input,
            CancellationToken cancellationToken)
        {
            var apiResource = input.Adapt <ApplicationAuthorization>();

            await service.CreateAsync(apiResource, cancellationToken);

            return(new CreateAuthorizationPayload
            {
                Authorization = apiResource
            });
        }
Ejemplo n.º 9
0
 public AbpOpenIddictApplicationStore_Tests()
 {
     _applicationStore = ServiceProvider.GetRequiredService <IOpenIddictApplicationStore <OpenIddictApplicationModel> >();
 }