Ejemplo n.º 1
0
 public AngularImplicitAuthModuleTemplate(IProject project, HostingConfigModel hostingConfig, IApplicationEventDispatcher applicationEvents, ISolutionEventDispatcher solutionEvents)
     : base(Identifier, project, null)
 {
     _decoratorDispatcher = new DecoratorDispatcher <IAngularImplicitAuthModuleDecorator>(project.ResolveDecorators <IAngularImplicitAuthModuleDecorator>);
     _hostingConfig       = hostingConfig ?? new HostingConfigModel()
     {
         UseSsl = true, SslPort = "44399"
     };
     _applicationEvents = applicationEvents;
     _solutionEvents    = solutionEvents;
     _solutionEvents.Subscribe(SolutionEvents.ResourceAvailable_IdentityServer, HandleIdentityServerAvailable);
 }
Ejemplo n.º 2
0
 public JwtAuthOwinStartupDecorator(ISolutionEventDispatcher solutionEvents)
 {
     _solutionEvents = solutionEvents;
     _solutionEvents.Subscribe(SolutionEvents.ResourceAvailable_IdentityServer, HandleIdentityServerAvailable);
 }
Ejemplo n.º 3
0
 public IdentityServerClientsTemplate(IProject project, ISolutionEventDispatcher solutionEventDispatcher)
     : base(Identifier, project, null)
 {
     solutionEventDispatcher.Subscribe(SolutionEvents.Authentication_ClientRequired, Handle);
 }