Base solution for your next web application

Activities of "ivanosw1"

Ok, I got it.

Thank you very much.

Thank you @ismcagdas

And what happens if you choose two different sopendid servers (google and twitter) but only want one account on the ANZ?

I mean that if I have a Twitter ([email protected]) and a Google ([email protected]) account and the first time I choose Twitter for authentication, and the second time I choose Google, ANZ will create two differents accounts?

Ok, this configuration is correct. The email is mapped. Thank you very much.

Just one question about this: I noticed that the username is a hash value. Is it by design to deny direct access to ANZ with this account created by openid? And what happens if you choose two different sopendid servers (google and twitter) but only want one account on the ANZ?

I've removed the mapping but the login fails:

Hi, I've the same need: populate targerUrl field in a UserFriendlyException. There is a way to achieve that?

Thank you

Abp 9.3.0 Core + Angular

Hi @andmattia, our solution is more simple and less invasive. Abp still keeps it's own authentication system. We have enable identity server only for authenticate "service/not human" clients and created a custom authorization attribute to protect route using scopes.

Any news about this topic?

Hi @elferone

At the end we have separated Abp authentication from Identity Server. Each services talk directly to Identiy Server with client credential authentication to obtain a token. The service's endpoints are protected by a custom attribute that validate the token issued by identity server (scope, validity, issuer, end so on).

This seems to be a cleaner solution

[DependsOn(typeof(AbpQuartzModule))]
public class MyModule : AbpModule
{

    public MyModule()
    {
        // patch configuration before PreInitialize. 
        // Do not use IocManager property in the constructor as it is not populated 
        Abp.Dependency.IocManager.Instance.IocContainer.Register(
            Component
                .For<IAbpQuartzConfiguration, QuartzStartupConfiguration>()
                .LifestyleSingleton()
                .IsDefault());
    }

    // ..
}

Hi, this registration does work, but from the logs I can confirm the suspect that 2 different schedulers are initialized:

... 
INFO  2021-01-08 09:33:15,969 [1    ] Quartz.Impl.StdSchedulerFactory          - Default Quartz.NET properties loaded from embedded resource file
INFO  2021-01-08 09:33:16,021 [1    ] Quartz.Core.SchedulerSignalerImpl        - Initialized Scheduler Signaller of type: Quartz.Core.SchedulerSignalerImpl
INFO  2021-01-08 09:33:16,027 [1    ] Quartz.Core.QuartzScheduler              - Quartz Scheduler v.3.0.7.0 created.
INFO  2021-01-08 09:33:16,028 [1    ] Quartz.Simpl.RAMJobStore                 - RAMJobStore initialized.
INFO  2021-01-08 09:33:16,030 [1    ] Quartz.Core.QuartzScheduler              - Scheduler meta-data: Quartz Scheduler (v3.0.7.0) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'Quartz.Core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'Quartz.Simpl.DefaultThreadPool' - with 10 threads.
  Using job-store 'Quartz.Simpl.RAMJobStore' - which does not support persistence. and is not clustered.

INFO  2021-01-08 09:33:16,034 [1    ] Quartz.Impl.StdSchedulerFactory          - Quartz scheduler 'DefaultQuartzScheduler' initialized
INFO  2021-01-08 09:33:16,034 [1    ] Quartz.Impl.StdSchedulerFactory          - Quartz scheduler version: 3.0.7.0
INFO  2021-01-08 09:33:16,034 [1    ] Quartz.Core.QuartzScheduler              - JobFactory set to: Abp.Quartz.AbpQuartzJobFactory
WARN  2021-01-08 09:33:21,647 [1    ] tion.Repositories.EphemeralXmlRepository - Using an in-memory repository. Keys will not be persisted to storage.
WARN  2021-01-08 09:33:21,648 [1    ] taProtection.KeyManagement.XmlKeyManager - Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits.
INFO  2021-01-08 09:33:24,436 [1    ] Quartz.Util.DBConnectionManager          - Registering datasource 'UnoInsDataSource' with db provider: 'Quartz.Impl.AdoJobStore.Common.DbProvider'
INFO  2021-01-08 09:33:24,440 [1    ] Quartz.Impl.StdSchedulerFactory          - Using object serializer: Quartz.Simpl.JsonObjectSerializer, Quartz.Serialization.Json
INFO  2021-01-08 09:33:25,304 [9    ] Quartz.Core.SchedulerSignalerImpl        - Initialized Scheduler Signaller of type: Quartz.Core.SchedulerSignalerImpl
INFO  2021-01-08 09:33:25,305 [9    ] Quartz.Core.QuartzScheduler              - Quartz Scheduler v.3.0.7.0 created.
INFO  2021-01-08 09:33:25,311 [9    ] Quartz.Impl.AdoJobStore.JobStoreTX       - Detected usage of SqlServerDelegate - defaulting 'selectWithLockSQL' to 'SELECT * FROM QRTZ_LOCKS WITH (UPDLOCK,ROWLOCK) WHERE SCHED_NAME = 'Framework Scheduler' AND LOCK_NAME = @lockName'.
INFO  2021-01-08 09:33:25,311 [9    ] Quartz.Impl.AdoJobStore.JobStoreTX       - Using db table-based data access locking (synchronization).
INFO  2021-01-08 09:33:25,314 [9    ] Quartz.Impl.AdoJobStore.JobStoreTX       - JobStoreTX initialized.
INFO  2021-01-08 09:33:25,314 [9    ] Quartz.Core.QuartzScheduler              - Scheduler meta-data: Quartz Scheduler (v3.0.7.0) 'Framework Scheduler' with instanceId 'DEV-N00015.637456916052992244'
  Scheduler class: 'Quartz.Core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'Quartz.Simpl.DefaultThreadPool' - with 10 threads.
  Using job-store 'Quartz.Impl.AdoJobStore.JobStoreTX' - which supports persistence. and is clustered.
  ...

The Abp.Quartz indeed creates a default scheduler regardless of what I do in my PreInitialize

    public class AbpQuartzModule : AbpModule
    {
        public override void PreInitialize()
        {
            IocManager.Register<IAbpQuartzConfiguration, AbpQuartzConfiguration>();
    
            // this line creates the default in-memory scheduler even if i replace the IAbpQuartzConfiguration in my PreInitialize
            Configuration.Modules.AbpQuartz().Scheduler.JobFactory = new AbpQuartzJobFactory(IocManager);
        }

For the moment I am going to shut the default one down before replacing it with my own.

Showing 1 to 10 of 119 entries