public void Run(IAppBuilder app)
        {
            MappingConfiguration.Configure();

            Mapper.AssertConfigurationIsValid();

            var adminUsername = this.configService.GetSetting<string>("AdminUsername", null);
            var adminPassword = this.configService.GetSetting<string>("AdminPassword", null);
            var identityManagerUri = this.configService.GetSetting<string>("IdentityManagerUri", null);
            var identityAdminUri = this.configService.GetSetting<string>("IdentityAdminUri", null);

            var options =
                new IdentityServerOptionsService(
                    adminUsername, 
                    adminPassword, 
                    identityManagerUri, 
                    identityAdminUri,
                    userService,
                    externalIdentityProviderService).GetServerOptions();

            app.UseIdentityServer(options);
        }
Beispiel #2
0
        public void Run(IAppBuilder app)
        {
            MappingConfiguration.Configure();

            Mapper.AssertConfigurationIsValid();

            var adminUsername      = this.configService.GetSetting <string>("AdminUsername", null);
            var adminPassword      = this.configService.GetSetting <string>("AdminPassword", null);
            var identityManagerUri = this.configService.GetSetting <string>("IdentityManagerUri", null);
            var identityAdminUri   = this.configService.GetSetting <string>("IdentityAdminUri", null);

            var options =
                new IdentityServerOptionsService(
                    adminUsername,
                    adminPassword,
                    identityManagerUri,
                    identityAdminUri,
                    userService,
                    externalIdentityProviderService).GetServerOptions();

            app.UseIdentityServer(options);
        }