Esempio n. 1
0
 public IdentityConfigurationAppSettingsDecorator(AppSettingsTemplate template, IApplication application)
 {
     _template    = template;
     _application = application;
     _appName     = application.Name;
     _application.EventDispatcher.Subscribe <HostingSettingsCreatedEvent>(Handle); // This is just temporary. Need to store these settings in a solution-wide accessible space for each app.
 }
Esempio n. 2
0
        private void TransformAppSettings(SmartAppInfo manifest)
        {
            var authenticationKeys = _context.DynamicContext.AuthenticationKeys as IDictionary <string, string>;
            var template           = new AppSettingsTemplate(manifest, authenticationKeys);

            _writingService.WriteFile(Path.Combine(_context.BasePath, template.OutputPath), template.TransformText());
        }
Esempio n. 3
0
 public InteropAppSettingsDecorator(AppSettingsTemplate template, IApplication application)
 {
     _template    = template;
     _application = application;
     _application.EventDispatcher.Subscribe <SwaggerOAuth2SchemeEvent>(Handle);
     _application.EventDispatcher.Subscribe <SecureTokenServiceHostedEvent>(Handle); // This is just temporary. Need to store these settings in a solution-wide accessible space for each app.
     _swaggerSchemes = new List <SwaggerOAuth2SchemeEvent>();
 }
 public ConfigurationSettingsJWTDecorator(AppSettingsTemplate template, IApplication application)
 {
     _template    = template;
     _application = application;
     application.EventDispatcher.Subscribe <OverrideBearerTokenConfigurationEvent>(evt =>
     {
         _stsIsSelfHostedInThisApplication = true;
     });
     _application.EventDispatcher.Subscribe <SecureTokenServiceHostedEvent>(Handle); // This is just temporary. Need to store these settings in a solution-wide accessible space for each app.
 }
Esempio n. 5
0
 public SwashbuckleAppSettingsDecorator(AppSettingsTemplate template, IApplication application)
 {
     _template    = template;
     _application = application;
 }
 public X509CertSigningAppSettingsDecorator(AppSettingsTemplate template, IApplication application)
 {
     _template    = template;
     _application = application;
 }