示例#1
0
 private void Handle(SolutionEvent @event)
 {
     Applications.Add(new AuthenticationClient(
                          authenticationType: @event.GetValue("AuthenticationType"),
                          applicationName: @event.GetValue("ApplicationName"),
                          applicationUrl: @event.GetValue("ApplicationUrl")));
 }
示例#2
0
        private void HandleIdentityServerAvailable(SolutionEvent @event)
        {
            _applicationEvents.Publish(ApplicationEvents.AngularJs_ConfigurationRequired, new Dictionary <string, string>()
            {
                { "Key", "identity_authority_url" },
                { "Value", @event.GetValue("AuthorityUrl") },
            });

            // TODO: This is dubious
            _decoratorDispatcher.Dispatch(x => x.OnIdentityServerAvailable(@event.GetValue("BaseUrl"), @event.GetValue("AuthorityUrl")));
        }
示例#3
0
 private void HandleIdentityServerAvailable(SolutionEvent @event)
 {
     _solutionEvents.Publish(ApplicationEvents.Config_AppSetting, new Dictionary <string, string>()
     {
         { "Key", "IdentityServer.Issuer.Name" },
         { "Value", @event.GetValue("AuthorityUrl") }
     });
 }